requirements/tox.ini
Doug Hellmann 1546490e02 Add convenience tox environments
Add a venv tox environment like we use in other projects to build a
virtualenv and run commands.

Add an 'update' environment to run the command for updating the
requirements in another project.

Add a 'generate' environment to run the command for generating
constraints.

Change-Id: Ib99fb4da6f62afd31339fa698c8f0e50ce817128
2015-06-22 19:24:38 +00:00

34 lines
699 B
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = py27,pypy,pep8
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:update]
commands = update-requirements {posargs}
[testenv:generate]
commands = generate-constraints {posargs}
# work around until pypy vs. setuptools issue in bug 1290562 is fixed
[testenv:pypy]
deps = setuptools>3.4
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8
[flake8]
ignore = H803
exclude = .venv,.git,.tox,dist,doc,*egg,build