diff --git a/tox.ini b/tox.ini index d549d47e..152b8212 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,11 @@ [tox] -minversion = 3.18.0 +minversion = 4.4.0 envlist = py3,pep8 ignore_basepython_conflict=true [testenv] basepython = python3 +constrain_package_deps = true usedevelop = True setenv = VIRTUAL_ENV={envdir} PYTHONDONTWRITEBYTECODE = 1 @@ -40,6 +41,7 @@ deps = pycodestyle>=2.0.0,<3.0.0 # MIT Pygments>=2.2.0 # BSD doc8>=0.6.0 # Apache 2.0 + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} commands = flake8 {posargs} doc8 README.rst doc/source --ignore D001 @@ -81,4 +83,4 @@ deps = codespell # note(adamcarthur): {posargs} lets us run `tox -ecodespell -- -w` to get codespell # to correct spelling issues in our code it's aware of. commands = - codespell {posargs} \ No newline at end of file + codespell {posargs}