[tox] envlist = py33, py34, py35, flake8 [testenv:flake8] basepython=python deps=flake8 commands=flake8 learnregex [testenv] setenv = PYTHONPATH = {toxinidir}:{toxinidir}/learnregex deps = -r{toxinidir}/requirements_dev.pip commands = pip install -U pip pybabel compile -D pyschool -d learnregex/locale -f --statistics py.test --basetemp={envtmpdir} ; If you want to make tox run the tests with the same versions, create a ; requirements.txt with the pinned versions and uncomment the following lines: ; deps = ; -r{toxinidir}/requirements.txt