-
Notifications
You must be signed in to change notification settings - Fork 324
Switch to packaging for parsing metadata and support metadata 2.4 #1180
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
7 commits
Select commit
Hold shift + click to select a range
a12a594
Remove "content" from set of specially handled metadata fields
dnicolodi a037f9c
Remove "attestations" from the set of specially handled metadata fields
dnicolodi 5e4e9a5
Refactor code a tiny bit
dnicolodi 4ae9088
Switch from pkginfo to packaging for parsing distribution metadata
dnicolodi 46df293
Enable some more mypy checks
dnicolodi 93b6992
Move monkeypatching of metadata 2.0 support to a more proper place
dnicolodi f122a32
Accommodate for invalid metadata produced by setuptools
dnicolodi 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- ``packaging`` is used instead of ``pkginfo`` for parsing and validating | ||
metadata. This aligns metadata validation to the one performed by PyPI. | ||
``packaging`` version 24.0 or later is required. Support for metadata | ||
version 2.4 requires ``packaging`` 24.2 or later. ``pkginfo`` is not a | ||
dependency anymore. | ||
- With ``packaging`` version 24.2 or later, metadata fields added with | ||
metadata version 2.4 as defined by PEP 639 are now sent to the package index | ||
when a distribution is uploaded. This results in licensing information to | ||
appear correctly on the package page on PyPI when uploading packages using | ||
metadata version 2.4. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Metadata-Version: 2.4 | ||
Name: BeagleVote | ||
Version: 1.0a2 | ||
Platform: ObscureUnix | ||
Platform: RareDOS | ||
Supported-Platform: RedHat 7.2 | ||
Supported-Platform: i386-win32-2791 | ||
Summary: A module for collecting votes from beagles. | ||
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM | ||
Keywords: dog,puppy,voting,election | ||
Home-page: http://www.example.com/~cschultz/bvote/ | ||
Download-URL: …/BeagleVote-0.45.tgz | ||
Author: C. Schultz, Universal Features Syndicate, | ||
Los Angeles, CA <[email protected]> | ||
Author-email: "C. Schultz" <[email protected]> | ||
Maintainer: C. Schultz, Universal Features Syndicate, | ||
Los Angeles, CA <[email protected]> | ||
Maintainer-email: "C. Schultz" <[email protected]> | ||
License: This software may only be obtained by sending the | ||
author a postcard, and then the user promises not | ||
to redistribute it. | ||
License-Expression: Apache-2.0 OR BSD-2-Clause | ||
License-File: LICENSE.APACHE | ||
License-File: LICENSE.BSD | ||
Classifier: Development Status :: 4 - Beta | ||
Classifier: Environment :: Console (Text Based) | ||
Provides-Extra: pdf | ||
Requires-Dist: reportlab; extra == 'pdf' | ||
Requires-Dist: pkginfo | ||
Requires-Dist: PasteDeploy | ||
Requires-Dist: zope.interface (>3.5.0) | ||
Requires-Dist: pywin32 >1.0; sys_platform == 'win32' | ||
Requires-Python: >=3 | ||
Requires-External: C | ||
Requires-External: libpng (>=1.5) | ||
Requires-External: make; sys_platform != "win32" | ||
Project-URL: Bug Tracker, http://bitbucket.org/tarek/distribute/issues/ | ||
Project-URL: Documentation, https://example.com/BeagleVote | ||
Provides-Dist: OtherProject | ||
Provides-Dist: AnotherProject (3.4) | ||
Provides-Dist: virtual_package; python_version >= "3.4" | ||
Dynamic: Obsoletes-Dist | ||
|
||
This description intentionally left blank. |
Binary file not shown.
Oops, something went wrong.
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.