Preinstall requirements for docs build

Sphinx installs the package with its dependencies, but it does not use
the constraints. This can lead to errors if a dependency introduces any
backward incompatible changes. To avoid this the dependencies needs to
be installed prior to sphinx run by tox with the correct constraints.

Change-Id: I4ba83f1007dd11801b8e32c6d7566769e005480b
This commit is contained in:
Elod Illes 2021-07-30 19:44:18 +02:00
parent 0e20049240
commit e0136189fc
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ commands = {posargs}
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/html doc/build