Join GitHub today
Feature Suggestion: Environmental awareness #785
So, what I'm proposing is the addition of environmental awareness to requirements.txt files. At present, you can add recursive requirements with the
For example, a project with two sets of requirements, the basic requirements for the function of the application, and a subsequent set for the testing of the project (for example PEP8, WebTest and so forth).
There are times we want to recursively include test-requirements.txt (i.e. when we're doing our testing/on our continuous integration server), however, in deployment they are completely superfluous.
Making pip (and requirements files) environmentally aware would enable a 12 factor style facility to install requirements recursively dependent on environment. When, for example the environment variable