-
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
displays License
metadata field - switch to License-Expression
?
#13112
Labels
C: list/show
'pip list' or 'pip show'
resolution: deferred till PR
Further discussion will happen when a PR is made
type: feature request
Request for a new feature
Comments
befeleme
added
S: needs triage
Issues/PRs that need to be triaged
type: feature request
Request for a new feature
labels
Dec 11, 2024
I agree, in principle. I would suggest we only show
|
ichard26
added
C: list/show
'pip list' or 'pip show'
and removed
S: needs triage
Issues/PRs that need to be triaged
labels
Dec 11, 2024
Julian
added a commit
to python-jsonschema/referencing
that referenced
this issue
Dec 28, 2024
The License field is deprecated, as is the trove classifier. Note that pip show does not support properly detecting these yet, but it will. Refs: https://peps.python.org/pep-0639/ Refs: pypa/pip#13112 Refs: pypa/pip#6677
Julian
added a commit
to python-jsonschema/jsonschema
that referenced
this issue
Dec 28, 2024
The License field is deprecated, as is the trove classifier. Note that pip show does not support properly detecting these yet, but it will. Note also that `pip-licenses` does not support PEP 639 (see raimon49/pip-licenses#213) the implications of which are that we are already broken (the `license_check` noxenv fails because of packages already using the newer standard). This doesn't fix that yet. AFAICT no tool exists that does this properly yet/now. So let's see... I guess we reimplement that functionality?! Refs: https://peps.python.org/pep-0639/ Refs: pypa/pip#13112 Refs: pypa/pip#6677
Julian
added a commit
to bowtie-json-schema/bowtie
that referenced
this issue
Dec 28, 2024
The License field is deprecated, as is the trove classifier. Note that pip show does not support properly detecting these yet, but it will. Refs: https://peps.python.org/pep-0639/ Refs: pypa/pip#13112 Refs: pypa/pip#6677
ichard26
added
resolution: deferred till PR
Further discussion will happen when a PR is made
state: awaiting PR
Feature discussed, PR is needed
and removed
state: awaiting PR
Feature discussed, PR is needed
labels
Dec 29, 2024
befeleme
added a commit
to befeleme/pip
that referenced
this issue
Jan 7, 2025
With Core Metadata 2.4 a new field, License-Expression, has been added. If it's present, favor it over the deprecated (with PEP 639) legacy unstructured License field. Closes: pypa#13112
befeleme
added a commit
to befeleme/pip
that referenced
this issue
Jan 7, 2025
With Core Metadata 2.4 a new field, License-Expression, has been added. If it's present, favor it over the deprecated (with PEP 639) legacy unstructured License field. Closes: pypa#13112
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C: list/show
'pip list' or 'pip show'
resolution: deferred till PR
Further discussion will happen when a PR is made
type: feature request
Request for a new feature
What's the problem this feature will solve?
With PEP 639 accepted, there is a new metadata field to get the license information from:
License-Expression
.pip show
currently shows theLicense
field contents:pip/src/pip/_internal/commands/show.py
Line 163 in 947917b
Describe the solution you'd like
I think should add the display of
License-Expression
field and in the long run maybe switch to it entirely. Initially there will be a few packages produced with the new metadata, but in the long run only theLicense-Expression
will remain.Hence, I'd propose to try to obtain the license information from
License-Expression
- standardized and validated and fall back to the deprecated unstructuredLicense
in caseLicense-Expression
isn't found.Alternative Solutions
What else is possible:
License
will be less used in timeLicense-Expression
entirely - for majority of existing packages this would mean producing an empty field for months/years to comeLicense-Expression
as a separate field displayed with the package data - this feels redundant, but if that's deemed a better approach, I'm not against.Additional context
Once agreed upon solution, I can send a patch.
Code of Conduct
The text was updated successfully, but these errors were encountered: