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

4.0.0: License key is missing in METADATA of wheel #29

Closed
Mscht opened this issue Nov 18, 2021 · 3 comments
Closed

4.0.0: License key is missing in METADATA of wheel #29

Mscht opened this issue Nov 18, 2021 · 3 comments

Comments

@Mscht
Copy link

Mscht commented Nov 18, 2021

I've noticed that the "License" attribut is missing since the migration from setup.py to pyproject.toml. This field is required to automatically detect the license of the resulting wheel.

Can you please try to convince Flit to add License: PSF to METADATA?

@AA-Turner
Copy link
Member

AA-Turner commented Nov 25, 2021

I don't think this is currently possible with PEP 621 metadata, although the PSF licence trove classifier is there, which could be tested for?

Flit does seem to support it in 'old style' metadata, but there is a note that this didn't seem to work (when I was testing the new build-system) with standards based metadata, sadly.

A

@JelleZijlstra
Copy link
Member

I spent a bit of time looking into this and it doesn't seem like there's much more we can do. We do have the trove classifier and the LICENSE file in the wheel; @Mscht is that enough?

@Mscht
Copy link
Author

Mscht commented Dec 1, 2021

Thank you for your efforts looking into it. I think the trove classifier offer the required information. It is just important for me that I do not have to parse a free text license file.
Just as note: If I understand it correct, e.g. poetry is one step ahead of PEP 621 because it already accepts a string value for license and refers to the SPDX defined license identifiers.

@srittau srittau transferred this issue from python/typing May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants