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

feat: Add pep 639 compatibility #226

Conversation

SMoraisAnsys
Copy link

PEP 639 has been recently validated and has started to be used by well known packages. While there was a problem at first to correctly pass the new metadata format (2.4) to PyPI (when using twine), this is no longer the case and the metadata is available on PyPI. However, pip-licenses is not able to leverage this new metadata and multiple packages licenses are now returned as "UNKNOWN".

This PR adds some changes to leverage the new metadata field "License-Expression", see https://peps.python.org/pep-0639/#add-license-expression-field
I tested it locally on packages which moved to this new standard, e.g. referencing v0.36.2 or attrs v25.1.0, and it worked correctly, see below

image

Feel free to let me know if you have any remarks / questions :)

@stefan6419846
Copy link

This has already been proposed in #213.

@SMoraisAnsys
Copy link
Author

This has already been proposed in #213.

Oh I didnt saw the previous PR, thanks for pointing that out. I'll have a look at it and close this one afterward (in a few hours)

@SMoraisAnsys
Copy link
Author

Closing, duplicate of #213

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.

2 participants