How can tox install the modules via the requirements file? How can tox install the modules via the requirements file? python python

How can tox install the modules via the requirements file?


 deps = -r{toxinidir}/tools/pip-requires        -r{toxinidir}/tools/test-requires


What helped me is the following (the other solution didn't work for me):

deps=    pytest    -rrequirements.txt

This works at least if you add requirements.txt to MANIFEST.in and if you use a relatively new `tox (>= 1.6.1) version (see here).


I had already setup my dependencies as in the accepted answer above, however any new dependencies were not installed like they are when tox is run for the first time. To install new dependencies in the virtualenv I had to force tox to recreate the environment like so:

tox --recreate -e py27

[UPDATE: this issue should be fixed in tox v4]