Reuse the docs deps to benefit from constraints

Tox trying to install latest versions for building releasenotes,
api-ref which may not be supported by stable and lower branches,
so should be restricted by respective version's upper-constraints.txt

Depends-On: Ia2fe3cab71b2efb89d6a4370109ec1abf2d1086f
Change-Id: I13baec09f477fafaabc06f9459549ddb03e2657d
This commit is contained in:
zhoulinhui 2020-10-06 21:15:45 +08:00
parent 0a38b12573
commit 1a898f891b
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ commands =
[testenv:releasenotes]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
deps = {[testenv:docs]deps}
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:genconfig]
@ -144,7 +144,7 @@ commands =
[testenv:api-ref]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
deps = {[testenv:docs]deps}
commands =
rm -rf api-ref/build
sphinx-build -W --keep-going -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html