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

allow to check from requirements.txt file without installing #108

Open
Niccolum opened this issue Aug 6, 2021 · 3 comments
Open

allow to check from requirements.txt file without installing #108

Niccolum opened this issue Aug 6, 2021 · 3 comments

Comments

@Niccolum
Copy link

Niccolum commented Aug 6, 2021

No description provided.

@stdedos
Copy link

stdedos commented Mar 22, 2022

Also useful could be to ignore packages listed in a requirements.txt file (e.g. requirements-dev.txt)

@nejch
Copy link

nejch commented Nov 6, 2022

Just a weekend brain dump from me as I use a combination of pip-licenses and cyclonedx-python to get all I need to extract metadata for various packages.

pip-licenses does a better job of extracting licenses (and especially finding license texts from files), while cyclonedx-python supports more data sources (poetry, requirements, etc). If this is implemented here, instead of reimplementing it, might be better to reuse cyclonedx-python's parsers (or its underlying libraries) and have pip-licenses work as a wrapper for output.

I haven't compared the sources enough to be able to tell if it's feasible, but just an idea before I forget :)

Edit: of course, as also stated in https://cyclonedx-bom-tool.readthedocs.io/en/latest/usage.html#parser-schema-support, static analysis of these files without installing has its limitations as you don't get the entire dependency graph without installing or making API calls to pypi or so.

@beutlich
Copy link

beutlich commented Nov 6, 2022

Just a weekend brain dump from me as I use a combination of pip-licenses and cyclonedx-python to get all I need to extract metadata for various packages.

@nejch Can you please elaborate what you do exactly. I had the same scenario in mind. Thanks a lot!

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

4 participants