Docs build: Add requirements.txt to deps

Since we use usedevelop=True, as a result neutron
installation happens at 'develop-inst' phase and it installs
requirements from requirements.txt without considering
tox constraints, This can lead to issue where broken
requirements are installed in docs job and as a result
it will fail.

In order to get constraints be considered for this case, add
requirements.txt to deps for docs env.

Also squashed below commit:-

Docs build: Add NOTE to not remove requirements.txt

To avoid unintentionally remove requirements.txt
from deps list from docs env, add a NOTE.

Change-Id: I6ec150a8f31bf841f1c8829719a0f08df531e53a
(cherry picked from commit 2a8187124b)

Change-Id: Ic8f6472fe708d12f8fc129729465367083e1095a
(cherry picked from commit f15baf16dd)
(cherry picked from commit 83a3c19eb7)
This commit is contained in:
yatinkarel 2022-04-28 20:17:54 +05:30 committed by yatin
parent 04e345f2d5
commit 5eb6c6fef2

View File

@ -149,6 +149,9 @@ commands = {posargs}
[testenv:docs]
basepython = python3
envdir = {toxworkdir}/docs
# Do not remove requirements.txt from deps list as without it
# upper constraints will not be used for deps listed in requirements.txt
# and may cause issues
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/train}
-r{toxinidir}/doc/requirements.txt