feat(py_wheel): add custom metadata fields and PEP 639 license support - #4065
Draft
rickeylev wants to merge 2 commits into
Draft
feat(py_wheel): add custom metadata fields and PEP 639 license support#4065rickeylev wants to merge 2 commits into
rickeylev wants to merge 2 commits into
Conversation
Propose design for py_wheel to support PEP 639 license metadata, configurable metadata_fields, metadata_file merging, and generalized distinfo_files path transformations.
`py_wheel` lacked support for custom Core Metadata headers, external metadata merging, PEP 639 license expressions, and flexible .dist-info/ subpath mapping. Add `license_expression`, `metadata_fields`, and `metadata_file` attributes to `py_wheel`, update `wheelmaker.py` with RFC 822 merging and PEP 639 metadata handling, enhance `extra_distinfo_files` to support `strip_prefix|prefix` syntax, and add comprehensive tests. Closes bazel-contrib#4042
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Currently,
py_wheellacks flexible support for custom Core Metadatafields (such as multiple
License-FileorClassifierentries),external RFC 822
METADATAfile merging, PEP 639 license expressions,and structured subpath mapping in
extra_distinfo_files.Add
license_expression,metadata_fields, andmetadata_fileattributes to
py_wheel, updatewheelmaker.pywith RFC 822 mergingand PEP 639 metadata handling, enhance
extra_distinfo_filesto supportstrip_prefix|prefixsyntax, and add comprehensive tests.Closes #4042