From 139208b9fe06b406c5d9bc8920eccff12a675f32 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Sun, 1 Mar 2020 13:44:19 +1000 Subject: [PATCH] Migrate rtd docs to python3 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 Change-Id: I48ecbff0a5498f12c0511d6fce2bbd0ed58d1c3f --- .readthedocs.yml | 14 ++++++++++++++ tox.ini | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 .readthedocs.yml diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 000000000..5ff506fb9 --- /dev/null +++ b/.readthedocs.yml @@ -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 1ca5c9c4f..325dc7d09 100644 --- 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 -- 2.36.6