Constraint dependencies for docs build

Without this patch, new library releases (even if not specifically
related to sphinx or docs) can break the docs build. For example, the
latest Werkzeug release is breaking the docs for the stable/stein branch
due to an import error that was fixed in later branches. We shouldn't be
letting new library releases affect the docs environment for the same
reason we want to control the other tox environments. This change adds
-c to the docs tox environment so ensure that all libraries installed in
this environment are known good versions.

Manual port of 13410383cf edited to
reference train instead of master.

Change-Id: I987918023525ff165ada691feda23ee86c7e36de
This commit is contained in:
Kristi Nikolla 2020-02-19 20:17:57 -05:00
parent 08f02c1a20
commit 3a59d3e28d
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ max-complexity=24
[testenv:docs]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train}
-r{toxinidir}/doc/requirements.txt
.[ldap,memcache,mongodb]
commands=