-
Notifications
You must be signed in to change notification settings - Fork 1k
PEP 740: add provenance to simple API #16801
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
20 commits
Select commit
Hold shift + click to select a range
0da7e43
remove Provenance.provenance_digest
woodruffw d0b1e7a
WIP route for provenance retrieval
woodruffw bb5d6b7
connect persistence, get tests passing
woodruffw 43f939f
bring coverage up
woodruffw f0afb8b
tests, warehouse: switch to a better route
woodruffw c333e65
rename route, content negotiation
woodruffw 13f5258
attestations.views -> api.integrity
woodruffw f560350
Add provenance to simple API
woodruffw 47c57dd
api: unit level test for provenance in simple API
woodruffw ba557ee
api: functional test for provenance in simple API
woodruffw 7993e2d
fixup tests
woodruffw 1d93b0c
unused import
woodruffw 484bccd
Merge branch 'main' into ww/pep740-simple-api
woodruffw 904c691
Apply suggestions from code review
woodruffw ba9cddd
test_simple: clean up route_url
woodruffw 252c483
Merge branch 'main' into ww/pep740-simple-api
woodruffw 584922f
fix lint
woodruffw bcbdc7f
test: refactor test case to provide clearer routes
miketheman a869e20
Merge pull request #3114 from miketheman/miketheman/pep740-test
woodruffw 1964ae1
Merge branch 'main' into ww/pep740-simple-api
miketheman 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
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
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
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 don't know enough yet about incrementing this value and what that does.
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.
This comes from the PEP itself:
(Via https://peps.python.org/pep-0740/#json-based-simple-api)
In this context, all incrementing it does is signal to a client that the index is now serving PEP 740 objects. Clients are expected to handle this gracefully, since
api-version
is intended to be a semantic version.(I can find a cite for that last claim if you'd like, although I'd have to go digging. But for context, this was just bumped a few weeks ago from
1.1
to1.2
with no client breakage due to PEP 708.)