requirements-docs.txt: add urllib3~=1.26.15 14/11314/5
authorJackie Huang <jackie.huang@windriver.com>
Fri, 9 Jun 2023 02:12:29 +0000 (10:12 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Thu, 15 Jun 2023 02:44:27 +0000 (10:44 +0800)
workaround for:
exception: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the
'ssl' module is compiled with 'OpenSSL 1.0.2k-fips  26 Jan 2017'

Issue-ID: INF-428

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Iaa54727b525cc0038f8cf46991c9431a237480ba

docs/requirements-docs.txt
docs/tox.ini
tox.ini

index 5d3a810..1b72eea 100644 (file)
@@ -4,3 +4,4 @@ docutils<0.17
 sphinxcontrib-httpdomain
 recommonmark
 lfdocs-conf
+urllib3~=1.26.15
index dabc92c..256c184 100644 (file)
@@ -14,11 +14,12 @@ deps =
     sphinxcontrib-httpdomain
     recommonmark
     lfdocs-conf
+    urllib3~=1.26.15
     
 commands =
     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
     echo "Generated docs available in {toxinidir}/docs/_build/html"
-whitelist_externals = echo
+allowlist_externals = echo
 
 [testenv:docs-linkcheck]
 basepython = python3
@@ -27,5 +28,6 @@ deps = sphinx
        sphinxcontrib-httpdomain
        recommonmark
        lfdocs-conf
+       urllib3~=1.26.15
 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
 
diff --git a/tox.ini b/tox.ini
index db50ddf..f2888fc 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,9 @@
+# documentation only
 [tox]
 minversion = 2.0
 envlist =
     docs,
     docs-linkcheck,
-
 skipsdist = true
 
 [testenv:docs]
@@ -14,13 +14,12 @@ deps =
     sphinxcontrib-httpdomain
     recommonmark
     lfdocs-conf
+    urllib3~=1.26.15
     
 commands =
     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
-
     echo "Generated docs available in {toxinidir}/docs/_build/html"
-
-whitelist_externals = echo
+allowlist_externals = echo
 
 [testenv:docs-linkcheck]
 basepython = python3
@@ -29,4 +28,5 @@ deps = sphinx
        sphinxcontrib-httpdomain
        recommonmark
        lfdocs-conf
+       urllib3~=1.26.15
 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck