-
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 does not recognise pyproject.yaml Licenses #12855
Comments
the metadata in the projects you mention is incomplete and stored in the correct expected manner |
my understanding: in the case of |
I think this is a duplicate of #6677 -- and in particular I think I agree personally this is an issue for the reason mentioned there, notably that this is inconsistent with the packaging recommendations which recommend not supplying this field in favor of the classifier, but it's not obvious to someone doing so that they'll lose this output (I only noticed because a unit test checking this specifically failed!). But it seems like the conclusion of that issue is to wait for PEP 639. (TL;DR I think this issue should be closed as dupe, and that the other issue is waiting on PEP 639 to my understanding). |
Sounds good. 👍 FYI the third round of discussions on PEP 639 have recently concluded and we are awaiting a pronouncement from Brett. If you wish to read the PEP and make any suggestions or offer any feedback, you should get on that soon. |
Description
Hi all,
I am trying to create an SBOM for our software, but lots of pip packages are not recognized.
I am using sbom4python which intern uses pip show to get the license for the packages.
I found that pip show does not work for some/most/all? packages that are using pyproject.toml.
pip show is looking for the "License" field in the package metadata, but pyproject.toml doesn't seem to set that. And depending on how the pyproject.toml is structured the metadata seem to be different.
Some versions I gathered with these issues:
Flask 2.3.3, 3.0.3
attrs 23.2.0
aiosqlite 0.20.0
Expected behavior
No response
pip version
24.1.2
Python version
3.11.5
OS
Windows 10
How to Reproduce
pip install flask
pip show flask
Output
Name: Flask
Version: 3.0.3
Summary: A simple framework for building complex web applications.
Home-page:
Author:
Author-email:
License:
Location: -
Requires: blinker, click, itsdangerous, Jinja2, Werkzeug
Required-by:
Code of Conduct
The text was updated successfully, but these errors were encountered: