-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip show "License: UNKNOWN" despite license in Trove classifiers #6677
Comments
|
I think it would probably be good to be able to tell from the output where the information is coming from, too. For example, there could be separate “License” and “License-classifiers” fields. And maybe “unknown” is suppressed if a classifier is present. |
The use case: a user runs In the short-term, we'll add |
Related discussion at: https://github.com/pypa/warehouse/issues/2996#issuecomment-425761711 I'm of the opinion that it'd be better to have someone spend the time and effort to fix the big fish here -- better specification of license metadata -- rather than add more bandages that need to be removed later. |
Given the pending PEP mentioned in the linked issue, I would vote in favor of status quo (continuing to read from the license field). Hopefully with that initiative the metadata in general will improve over time, and we don't need to worry about backwards compatibility or supporting additional configuration like we would if implementing this issue. |
This is no longer a problem for Pillow, we've since added ❯ pip show pillow
Name: pillow
Version: 11.0.0
Summary: Python Imaging Library (Fork)
Home-page: https://python-pillow.org
Author:
Author-email: "Jeffrey A. Clark" <[email protected]>
License: MIT-CMU
Location: /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages
Requires:
Required-by: matplotlib, pillow_heif
The bigger fish are being dealt with in PEP 639 – Improving License Clarity with Better Package Metadata, provisionally accepted and being implemented across the packaging ecosystem. I think we can close this now. |
Environment
Description
License is UNKNOWN:
Expected behavior
Pillow has no
license=
insetup()
but has a known licence in the Trove classifiers:These suggest
license=
shouldn't be used when there's a license in the Troveclassifiers=
(emphasis mine):The PR (pypa/packaging.python.org#492) for this latter said it's to "Indicate that this argument is meant for deviations from the Trove classifier, not instead of it."
Where does
License
frompip show
come from?Do we need to include
license=
to show the correct license inpip show
, or is something extra needed in pip?Thank you!
The text was updated successfully, but these errors were encountered: