Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can tox install the modules via the requirements file?

Tags:

python

tox

Our python project has a requirements.txt file which lists some dependent module. We used to use

pip install -r requirements.txt 

to install these dependencies. We are now using tox to build up the test environment. My question is that how can we install the modules via requirements.txt directly.

Followings are our tox.ini and requirements.txt:

tox.ini:

[tox] envlist=py27 [testenv] deps=pytest      boto commands=py.test 

rquirements.txt:

boto 

Is any way to remove the "boto" from tox.ini and add something like

deps_files=requirements.txt 
like image 696
waitingkuo Avatar asked Sep 04 '12 07:09

waitingkuo


1 Answers

 deps = -r{toxinidir}/tools/pip-requires         -r{toxinidir}/tools/test-requires 
like image 164
Denis Avatar answered Sep 19 '22 00:09

Denis