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

Reduce license verbosity in pip show output #12931

Open
1 task done
adriengcql opened this issue Aug 22, 2024 · 1 comment
Open
1 task done

Reduce license verbosity in pip show output #12931

adriengcql opened this issue Aug 22, 2024 · 1 comment
Labels
C: list/show 'pip list' or 'pip show' type: feature request Request for a new feature

Comments

@adriengcql
Copy link

adriengcql commented Aug 22, 2024

What's the problem this feature will solve?

The output from pip show can be quite verbose when the package includes the full license, making it harder to get the other basic information like the version.

Example: pip show numpy

Describe the solution you'd like

One solution could be to remove or trim the license in the default output, and fully display it when using the --verbose option.

Code of Conduct

@adriengcql adriengcql added S: needs triage Issues/PRs that need to be triaged type: feature request Request for a new feature labels Aug 22, 2024
@adriengcql adriengcql changed the title Remove license from pip show output Reduce license verbosity in pip show output Aug 22, 2024
@ichard26 ichard26 added C: list/show 'pip list' or 'pip show' and removed S: needs triage Issues/PRs that need to be triaged labels Aug 23, 2024
@ichard26
Copy link
Member

FWIW, with PEP 639 (which is currently awaiting pronouncement), there will be a well-defined way for distributions to declare their license(s), as both a SPDX expression and a list of license files (or equivalent legal notices) in the metadata. Transitioning to reading the new License-Expression field would likely be the best way forward.

I have no comment on whether and how pip should improve its handling of legacy license fields.

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' type: feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants