-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Parsing of dependencies from different build systems #11
Comments
can you show me the pyproject.toml that pyscan detects? like the content inside? |
Oh, does this imply that only projects with a full I am using setuptools with
e.g. https://github.com/jugmac00/flask-reuploaded It would be great to have a helpful error message 👍 |
I see. Pyscan currently looks for the |
https://peps.python.org/pep-0631/ Here's the PEP from which the parser for pyproject.toml is partially based on. |
I would not call it the "common way" - maybe it is the suggested way, but it is certainly not followed by all packaging tools. You need to know that the lowest common denominator is that projects configure the build backend in the pyproject.toml, and from here on, it entirely depends on the build system how meta data is configured.
So, way to go :-) P.S.: It is even not mandatory that Python projects use a |
I see. I was under the assumption that the PEP would be a little bit more popular than i thought. Its very weird that the build tools don't follow the PEP and each seems to have its own way of doing it, though. Looks like expanding the parsing of pyproject.toml is something that needs to be done, glad you pointed it out! |
Python exists for 30+ years, the pep 621 (which superseded the one you mentioned) was only accepted at the end of 2020 (and even only as provisional, see https://discuss.python.org/t/pep-621-round-3/5472/109 ) - so it will take time until most package managers will follow that, and probably a good part of Python projects won't update to use a modern package manager for a very long time. |
So support for the |
The most common ones I encounter are:
|
great, pyscan should be able to support them by the release of next version, thanks |
Looks like setuptools does follow the way pyscan scans for dependencies, but since you're using setup.py like in flask-reuploaded all the dependency spec goes into |
Describe the bug
run pyscan
To Reproduce
run pyscan on any project
Expected behavior
should work
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: