[stable-only] [ci] Make docs job use upper-constraints

Without this, the docs build get an incompatible version of oslo.utils
and fails reliably.

Change-Id: Ia1d93b8f54c75de0a91eb1f7554eb554e6aab4b2
(cherry picked from commit 51121d1255)
This commit is contained in:
Jay Faulkner 2023-08-29 12:27:02 -07:00 committed by Elod Illes
parent 391ce7fc69
commit 542d0e0803
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ commands = {posargs}
[testenv:docs]
whitelist_externals = rm
deps = -r{toxinidir}/doc/requirements.txt
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/victoria}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands =
rm -fr doc/build
sphinx-build -W --keep-going -b html doc/source doc/build/html