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

Add support for constraints.txt #4

Closed
sarimak opened this issue May 31, 2023 · 2 comments
Closed

Add support for constraints.txt #4

sarimak opened this issue May 31, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@sarimak
Copy link

sarimak commented May 31, 2023

Names and version of Python packages can be specified also in a constraints.txt file and pyscan doesn't detect it by name.
Please search also for constraints.txt in addition to requirements.txt.

Workaround: ln -s constraints.txt requirements.txt; pyscan (both files use the same syntax)

Context: A monorepo containing several Python packages which need to be installable into the same virtual environment needs a central place for pinning the 3rd-party package versions (in addition to per-package setup.cfg/pyproject.toml). There is a standard mechanism for that: https://pip.pypa.io/en/stable/user_guide/#constraints-files

@aswinnnn aswinnnn added the enhancement New feature or request label May 31, 2023
@aswinnnn aswinnnn self-assigned this May 31, 2023
@aswinnnn
Copy link
Owner

Sure, adding constraints.txt is feasible and can be worked on in the future. It's on the list.

@aswinnnn aswinnnn mentioned this issue Jun 27, 2023
@aswinnnn
Copy link
Owner

Hey, support has been added and is included in the latest version on both pypi and cargo. Thanks for the input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants