diff --git a/tox.ini b/tox.ini index 948ad17c..e728a129 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,9 @@ [tox] -minversion = 3.1 +minversion = 4.6.0 skipsdist = True envlist = docs,linters,functional -ignore_basepython_conflict = True [testenv] -basepython = python3 usedevelop = False install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages} @@ -33,7 +31,9 @@ setenv = WORKING_DIR={toxinidir} [testenv:docs] -deps = -r{toxinidir}/doc/requirements.txt +deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/doc/requirements.txt commands = bash -c "rm -rf doc/build" doc8 doc @@ -52,7 +52,7 @@ commands = extensions = .rst [testenv:releasenotes] -deps = -r{toxinidir}/doc/requirements.txt +deps = {[testenv:docs]deps} commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html