Skip to content

Comments

Add initial support for license-files#705

Merged
takluyver merged 4 commits intopypa:mainfrom
cdce8p:license-files
Feb 7, 2025
Merged

Add initial support for license-files#705
takluyver merged 4 commits intopypa:mainfrom
cdce8p:license-files

Conversation

@cdce8p
Copy link
Member

@cdce8p cdce8p commented Nov 20, 2024

Add support for the license-files key in pyproject.toml.
https://peps.python.org/pep-0639/#add-license-files-key
https://peps.python.org/pep-0639/#add-license-file-field

This PR only adds the required validation and ensures the license files are properly packaged in the .dist-info/licenses folder. It doesn't add the License-File key to the metadata as that requires full support for metadata version 2.4.

Work on #692

@cdce8p
Copy link
Member Author

cdce8p commented Nov 21, 2024

@takluyver Would love to get your opinion here. I do plan to continue working on the PEP 639 support afterwards.

Copy link
Member

@takluyver takluyver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I think this basically looks good, but there are a few extra checks that I think should occur on the config.

@cdce8p cdce8p requested a review from takluyver February 7, 2025 00:40
@takluyver takluyver merged commit dc30bf8 into pypa:main Feb 7, 2025
16 checks passed
@takluyver
Copy link
Member

Thanks!

@takluyver takluyver added this to the 3.11 milestone Feb 7, 2025
@cdce8p cdce8p deleted the license-files branch February 7, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants