Add upper contstraints to tox doc env

This is to avoid using untested package versions.
See for example recent fix for the sphinx that
broke openstack-tox-docs job

https: //review.opendev.org/c/openstack/openstack-helm-infra/+/892376

Change-Id: I78aeb94c02831d5a91fd5308324b55e534b38376
This commit is contained in:
Vladimir Kozhukalov 2023-08-22 21:24:38 +03:00 committed by Leontii Istomin
parent dc200450ea
commit 24c4758642

View File

@ -14,7 +14,9 @@ passenv = *_proxy,*_PROXY
commands = {posargs} commands = {posargs}
[testenv:docs] [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 = commands =
rm -rf doc/build rm -rf doc/build
sphinx-build -W -b html doc/source doc/build/html sphinx-build -W -b html doc/source doc/build/html