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 for multiple requirements files #127

Open
andy-maier opened this issue Mar 4, 2023 · 1 comment
Open

Support for multiple requirements files #127

andy-maier opened this issue Mar 4, 2023 · 1 comment

Comments

@andy-maier
Copy link
Contributor

andy-maier commented Mar 4, 2023

There are situations when the requirements are split into different requirements files. An example for that is an extra in a package, so you have your main requirements in one file and the delta requirements in another file. Why does the second file only specify the delta requirements: If setup.py generates its extras_require parameter by reading the requirements file for the extras, that file cannot include the main file and thus will specify only the delta requirements.

pip-missing-reqs today allows specifying the --requirements-file option multiple times, but from what I could figure out, it does not accumulate all these requirements, but simply uses those from the last option specified.

I suggest that when the --requirements-file option is specified multiple times, that the file content gets accumulated, and that would allow in the example above to specify both the main requirements file and the delta file for the extra(s).

If that cannot be implemented, then the behavior with allowing multiple --requirements-file options and then using only the last one should be changed so that it can be specified only once.

@adamtheturtle
Copy link
Owner

For now, can you do the following (untested)?

cat requirements_0.txt requirements_1.txt | pip-missing-reqs --requirements-file=/dev/fd/0 src/

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