Skip to content

Add initial support for license-files#705

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

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

Conversation

@cdce8p

@cdce8p cdce8p commented Nov 20, 2024

Copy link
Copy Markdown
Member

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

cdce8p commented Nov 21, 2024

Copy link
Copy Markdown
Member Author

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

Comment thread flit_core/flit_core/config.py Outdated
Comment thread doc/pyproject_toml.rst Outdated
Comment thread flit_core/flit_core/config.py Outdated
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>

@takluyver takluyver left a comment

Copy link
Copy Markdown
Member

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.

Comment thread flit_core/flit_core/config.py Outdated
Comment thread flit_core/flit_core/config.py
Comment thread flit_core/flit_core/config.py
Comment thread flit_core/flit_core/config.py Outdated
Comment thread flit_core/tests_core/test_config.py Outdated
Comment thread flit_core/tests_core/test_wheel.py Outdated
@cdce8p cdce8p requested a review from takluyver February 7, 2025 00:40
@takluyver takluyver merged commit dc30bf8 into pypa:main Feb 7, 2025
@takluyver

Copy link
Copy Markdown
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