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 stein instead of master.

Change-Id: Ieeb198b32a791ebf0218897b63086e04ccd34fd3
This commit is contained in:
Kristi Nikolla 2020-02-19 20:23:23 -05:00
parent 8f537ed542
commit f2f79a9a64
1 changed files with 1 additions and 0 deletions

View File

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