diff --git a/tox.ini b/tox.ini index 9fabc2b..7cabd57 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,9 @@ commands = {posargs} [testenv:docs] allowlist_externals = rm -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 = rm -fr doc/build sphinx-build -W --keep-going -b html doc/source doc/build/html @@ -43,7 +45,7 @@ import_exceptions = oslo_middleware._i18n [testenv:releasenotes] allowlist_externals = rm -deps = -r{toxinidir}/doc/requirements.txt +deps = {[testenv:docs]deps} commands = rm -rf releasenotes/build sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html