Skip to content
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

Add initial support for license-files #705

Merged
merged 4 commits into from
Feb 7, 2025
Merged

Conversation

cdce8p
Copy link
Contributor

@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
Contributor 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.

doc/pyproject_toml.rst Outdated Show resolved Hide resolved
flit_core/flit_core/config.py Outdated Show resolved Hide resolved
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
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.

flit_core/flit_core/config.py Outdated Show resolved Hide resolved
flit_core/flit_core/config.py Show resolved Hide resolved
flit_core/flit_core/config.py Show resolved Hide resolved
flit_core/flit_core/config.py Outdated Show resolved Hide resolved
flit_core/tests_core/test_config.py Outdated Show resolved Hide resolved
flit_core/tests_core/test_wheel.py Outdated Show resolved Hide resolved
@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