aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tox.ini
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-09-28 14:17:04 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2021-09-28 15:13:17 +0200
commitd6b0c102715db7e1c6a38863b5bc0280a96832b0 (patch)
tree5606f73c3c58cffc201b1126c92177922891f1b1 /docs/tox.ini
parent66d62e02e7bfeefbc727300a6dd2a02555a9a22a (diff)
Adds 2 upper-constraints to pin all the dependencies.
It modifies a little bit the official upper-constraints.txt from OpenStack due to Sphinx (4.2.0 as asked by lfdocs-conf vs 3.5.2) and due to setuptools (58.1.0 as used in ONAP gates vs 54.1.1). In a long run, docs/upper-constraints.os.txt should be removed once ONAP is synced with OpenStack. For it's part, docs/upper-constraints.onap.txt should be centralized for all ONAP projects and then removed from this particular project. It should be noted that lfdocs-conf still mismatches concrete and abstract deps. It removes tox and setuptools from requirements as nothing depends on them (most requirements should be removed except lfdocsconf) Issue-ID: DOC-765 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Iae808297484f4798de82a43597ccad7905ff4c94 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docs/tox.ini')
-rw-r--r--docs/tox.ini10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/tox.ini b/docs/tox.ini
index edac8c35f..f2f6b4a3c 100644
--- a/docs/tox.ini
+++ b/docs/tox.ini
@@ -5,7 +5,10 @@ skipsdist = true
[testenv:docs]
basepython = python3
-deps = -r{toxinidir}/requirements-docs.txt
+deps =
+ -r{toxinidir}/requirements-docs.txt
+ -c{toxinidir}/upper-constraints.os.txt
+ -c{toxinidir}/upper-constraints.onap.txt
commands =
sphinx-build -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html
echo "Generated docs available in {toxinidir}/_build/html"
@@ -16,7 +19,10 @@ whitelist_externals =
[testenv:docs-linkcheck]
basepython = python3
-#deps = -r{toxinidir}/requirements-docs.txt
+deps =
+ -r{toxinidir}/requirements-docs.txt
+ -c{toxinidir}/upper-constraints.os.txt
+ -c{toxinidir}/upper-constraints.onap.txt
commands = echo "Link Checking not enforced"
#commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./ {toxinidir}/_build/linkcheck
whitelist_externals = echo