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

Support requirements.txt files which delegate to setup.py #26

Closed
mje-nz opened this issue Jul 29, 2020 · 1 comment
Closed

Support requirements.txt files which delegate to setup.py #26

mje-nz opened this issue Jul 29, 2020 · 1 comment

Comments

@mje-nz
Copy link
Contributor

mje-nz commented Jul 29, 2020

In a library, it's convenient to use requirements.txt to specify dev dependencies and then add a requirement of . or -e . to install the library with setup.py. It would be good if flake8-requirements supported this, rather than defaulting to the requirements from setup.py when both files are present.

arkq added a commit that referenced this issue Mar 27, 2021
There is no standard name for the so called requirements.txt file.
Also, there is no standard location for such a file. From now, it
will be possible to specify file name/location from command line.

When a command line option with requirements text file is given, it
will disable requirements search in the setup.py and pyproject.toml
files.

Fixes #26 and resolves #33
@arkq arkq closed this as completed in 569de73 Mar 27, 2021
@arkq
Copy link
Owner

arkq commented Mar 27, 2021

I've added command line option --requirements-file=FILE which shall be used to specify requirements text file (for more info see README). When specified it will take precedence over setup.py.

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