-
Notifications
You must be signed in to change notification settings - Fork 283
Support enriched metadata #686
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
55 commits
Select commit
Hold shift + click to select a range
6a8885b
Implement `Metadata` for `version` and `summary`
brettcannon 1b76382
Add a missing period to a comment
brettcannon 1d53b9c
Add a `validate` argument to `utils.canonicalize_name()`
brettcannon b93dfaf
Support `name`
brettcannon 7b06d75
Support `Platform`
brettcannon 8de6334
Support `Supported-Platform`
brettcannon a1d9f32
Support `Description-Content-Type`
brettcannon 7396421
Handle simple cases
brettcannon 26d39d2
Fix some names
brettcannon 47a859a
Support `Project-URL`
brettcannon bd0431b
Support `Requires-Python`
brettcannon d92e29f
Another test for `Requires-Python`
brettcannon af34d9f
Support `Requires-External`
brettcannon 64c8356
Introduce `utils.is_normalized_name()`
brettcannon f667527
Tweak the exception message for validation failure in `utils.canonica…
brettcannon 137ac60
Support `Provides-Extra`
brettcannon 448fe7c
Support `requires-dist`
brettcannon 773be9a
Add support for `Dynamic`
brettcannon e775ee8
Support `Metadata-Version`
brettcannon 872dee2
Add a `from_raw()` class method
brettcannon e04cd19
Record the metadata version a field was added in
brettcannon 5162614
Convert some `XXX` to `TODO`
brettcannon 49276f8
Add type hints to pass mypy
brettcannon fe2cb25
Tighten typing
brettcannon 1c4ce33
Ditch validators
brettcannon c60a675
Drop an unused import
brettcannon 54e496e
Rename `_LIST_STRING_FIELDS`
brettcannon 8621a47
Drop the concept of converters
brettcannon 644d8bb
Simplify processing methods
brettcannon a11022c
Make content-type comparison case-insensitive
brettcannon 4d4a5e6
Don't consider metadata version 2.0 as valid
brettcannon 5661266
Don't return the normalized name for `name`
brettcannon 59c118a
Make the `validate` parameter for `canonicalize_name()` keyword-only
brettcannon 5ca8db6
Remove an outdated comment
brettcannon 9cbb9e2
Check for unparsed data
brettcannon 78ca137
Validate raw metadata
brettcannon 1455e37
Make the linters happy
brettcannon 4db271f
Tweak a comment
brettcannon 9c9b71f
Check that fields are not used with metadata versions that they did n…
brettcannon d9c7e9b
Make mypy happy
brettcannon 32d4337
Add Python 3.8 compatibility
brettcannon 0144c91
Get code coverage to 100%
brettcannon e6e6f7a
Merge branch 'main' into enriched-metadata
brettcannon 8dc07b5
Make mypy happy
brettcannon 181ba6b
Merge branch 'main' into enriched-metadata
brettcannon 41bdb34
Remove positional-only parameters for Python 3.7 compatibility
brettcannon 9d885b3
Document `packaging.metadata.Metadata`
brettcannon 36b6664
Add new hypterlink targets for core metadata fields
brettcannon ef1be86
Fix reST markup error
brettcannon ef64e08
Add support for `requires`, `provides`, and `obsoletes`
brettcannon 9963bf8
Add tests for `ExceptionGroup`
brettcannon 110638e
Merge branch 'main' into enriched-metadata
brettcannon 8a0b0e2
Normalize all validation exceptions to `InvalidMetadata`
brettcannon 7d4e6ad
Python 3.7 doesn't like positional-only parameters
brettcannon ea3a10f
Update the changelog
brettcannon 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
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.
Uh oh!
There was an error while loading. Please reload this page.