[tox] minversion = 2.0 envlist = docs,docs-constraints skipsdist = True [testenv] usedevelop = True install_command = constraints: {[testenv:common-constraints]install_command} pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}' [testenv:common-constraints] install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} [testenv:docs] commands = python setup.py build_sphinx [testenv:docs-constraints] install_command = {[testenv:common-constraints]install_command} commands = python setup.py build_sphinx show-source = True ignore = E123,E125 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build