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

Question: Can python-inpector handle manifest files other than requirements.txt and setup.py? #153

Open
shi9qiu opened this issue Oct 18, 2023 · 4 comments

Comments

@shi9qiu
Copy link

shi9qiu commented Oct 18, 2023

Hi,

I am trying to use this tool to generate SBOM files for Python projects. The README says this tool can "parse various manifests and packages files such as pip requirement files, Pipfile, pyproject.toml, poetry.lock, setup.py and setup.cfg and legacy and current metadata file formats for eggs, wheels and sdist". But I find it seems that only requirements.txt and setup.py can be set as the target manifest file.

I wonder if I didn't understand how to use it. Or do you have a plan to develop the function for another manifest file such as "pyproject.toml" or "setup.cfg"?

Thank you!

@pombredanne
Copy link
Member

Actually this is both true and not true.
The code is https://github.com/nexB/python-inspector/blob/main/src/_packagedcode/pypi.py is able to process all these formats , but only requirements.txt and setup.py have been "wired" in to be used as an input at this stage. The other are in the plan: we have the parsers alright, so the work to get these as inputs should be not too big.

Let me update the description that did mislead you.

pombredanne added a commit that referenced this issue Oct 18, 2023
Reference: #153
Signed-off-by: Philippe Ombredanne <[email protected]>
@shi9qiu
Copy link
Author

shi9qiu commented Oct 19, 2023

Thank you very much for the response. Looking forward to the function to process all these formats!

@shi9qiu shi9qiu closed this as completed Oct 19, 2023
@pombredanne
Copy link
Member

Let's keep this open so we can track the addition here!
Note also that if you know some Python, help would be much appreciated and always welcomed!

@pombredanne pombredanne reopened this Oct 19, 2023
@shi9qiu
Copy link
Author

shi9qiu commented Oct 19, 2023

Yes, of course! I would like to help with this functional improvement!

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

No branches or pull requests

2 participants