-
Notifications
You must be signed in to change notification settings - Fork 292
Fix TUTORIAL.md and add regression testing for future issues #775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
2d2c527
Add a regression test for the tutorial instructions
awwad e2ec3ef
Remove keystore/ use from TUTORIAL.md and test_tutorial
awwad 56f14c4
Remove add_restricted_paths from TUTORIAL.md and test_tutorial.py
awwad b947a6b
Have test_tutorial.py copy metadata.staged to metadata
awwad 608e377
Exclude leading '/' for target fnames in tutorial and its tester
awwad e24525c
In repo tutorial, fix consistent snapshots instructions
awwad 3a37189
Use os.path.join instead of '/' in test_tutorial.py for compat
awwad 8e22de5
Correct remove_target() call in TUTORIAL.md and test_tutorial.py
awwad 6c850e0
Test: correctly test use of non-TUF-generated signatures in tutorial
awwad bfcdfd5
Test: Correctly test target addition in tutorial despite #774
awwad 14500a8
Correct test_tutorial to use '/' in filepaths on all platforms
awwad b86b4aa
doc: Remove Python prompt tutorial snippet
eed9003
doc: Add "continuing..." line in tutorial snippets
5616fd2
doc: Fix repo.status() output in tutorial snippet
654e8dc
doc: Fix targets file paths in tutorial snippets
45c4f4c
doc: Update "Dump Metadata and ..." tutorial
bd813d8
doc: Update delegation-related tutorial sections
ca8e9cc
doc: Fix repo.dirty_roles() output in tutorial
bb6a32a
doc: Comment out "Consistent Snapshots" snippet
512c62d
doc: Update "How to Perform an Update" in tutorial
e7d3dd4
test: Run tutorial tests in a temporary directory
647f712
roledb: Make get_dirty_roles() return sorted list
dc7bb96
test: Add mock test dependency for Py <3.3
de9851f
test: Adopt tutorial changes in test_tutorial.py
e6ddac9
test: Update setuptools for appveyor builds
9375885
docs: Fix typos in tutorial code snippet comments
5a8dbd4
doc: Update delegation section in tutorial
fc23496
doc: Update "Delegate to Hashed Bins" in tutorial
031bd1b
test: Assert tutorial delegate_hashed_bins output
7e8b7e5
doc: Explicitly mark roles dirty in tutorial
da26e9a
doc: Revert accidental space deletion in tutorial
cb8a4c4
test: Install mock in appveyor on Python 2.7
fc74cf2
test: Misc update in test_tutorial
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,9 +25,10 @@ init: | |
|
|
||
| install: | ||
| - set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH% | ||
| - python -m pip install -U pip | ||
| - python -m pip install -U pip setuptools | ||
| - pip install -e . | ||
| - pip install securesystemslib[crypto,pynacl] | ||
| - if %PYTHON_VERSION%==2.7 pip install mock | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does the trick, nice work @lukpueh. |
||
|
|
||
| build: false | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to explicitly install mock for Python 2.7 on appveyor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. Let me fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshuagl, do you happen to know how to install the dependency only for Python 2.7 builds on appveyor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not off the top of my head, but I think we should be able to use
for.matrix.only/.except:https://www.appveyor.com/docs/build-configuration/#specializing-matrix-job-configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Maybe 932c025 works too.