From 11bf6bb1a37997033db4f082fd07db8608c901d8 Mon Sep 17 00:00:00 2001 From: Levente Pap Date: Fri, 21 Feb 2020 10:25:53 +0100 Subject: [PATCH 1/2] Update sphinx on RTD and locally - RTD uses old sphinx that does not support async directive --- docs/requirements.txt | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 17515c8d..b975dc78 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1 +1,2 @@ -sphinxcontrib-asyncio \ No newline at end of file +sphinx==2.4.2 +sphinx_rtd_theme==0.4.3 \ No newline at end of file diff --git a/setup.py b/setup.py index 0e55323f..c2f7f1e7 100644 --- a/setup.py +++ b/setup.py @@ -72,7 +72,7 @@ extras_require={ 'ccurl': ['pyota-ccurl'], - 'docs-builder': ['sphinx', 'sphinx_rtd_theme', 'sphinxcontrib-asyncio'], + 'docs-builder': ['sphinx >= 2.4.2', 'sphinx_rtd_theme >= 0.4.3'], 'pow': ['pyota-pow >= 1.0.2'], # tox is able to run the tests in parallel since version 3.7 'test-runner': ['tox >= 3.7'] + tests_require, From edbea7d628f3748e9ee9e7434d3455c39de0826a Mon Sep 17 00:00:00 2001 From: Levente Pap Date: Fri, 21 Feb 2020 10:35:22 +0100 Subject: [PATCH 2/2] Remove sphinxcontrib.asyncio from docs build - Broken for newer sphinx versions --- docs/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 5ef8a4c4..75e7ef24 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -34,7 +34,6 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosectionlabel', - 'sphinxcontrib.asyncio', ] # Add any paths that contain templates here, relative to this directory.