Migrate rtd docs to python3 81/88181/1
authorAnil Belur <abelur@linuxfoundation.org>
Sun, 1 Mar 2020 03:44:19 +0000 (13:44 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Sun, 1 Mar 2020 03:46:06 +0000 (13:46 +1000)
RTD builds have been failing on python2 since the required version
sphinx is not found in lftools-conf. Migrate to python3 resolves the
issue.

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I48ecbff0a5498f12c0511d6fce2bbd0ed58d1c3f

.readthedocs.yml [new file with mode: 0644]
tox.ini

diff --git a/.readthedocs.yml b/.readthedocs.yml
new file mode 100644 (file)
index 0000000..5ff506f
--- /dev/null
@@ -0,0 +1,14 @@
+# .readthedocs.yml
+# Read the Docs configuration file
+# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
+
+# Required
+version: 2
+
+sphinx:
+    configuration: docs/conf.py
+
+python:
+    version: 3.7
+    install:
+        - requirements: docs/requirements.txt
diff --git a/tox.ini b/tox.ini
index 1ca5c9c4f648ba481cd65c17b1a6495756106afc..325dc7d09b09b45d6367ff73dde58bc975dc4007 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -53,11 +53,13 @@ commands =
   {gnpy}: - sudo docker container rm -f gnpy_tpce_rest1
 
 [testenv:docs]
+basepython = python3
 deps = -rdocs/requirements.txt
 commands =
     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ../docs/ {toxinidir}/docs/_build/html
 
 [testenv:docs-linkcheck]
+basepython = python3
 deps = -rdocs/requirements.txt
 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ../docs/ {toxinidir}/docs/_build/linkcheck