From 0bd531ae6a6a579ca86fb3684b30ab851d7eced8 Mon Sep 17 00:00:00 2001 From: Michael Joyce Date: Wed, 25 Mar 2020 11:37:24 -0700 Subject: [PATCH] Issue #156 - Update Python version in RTD config Update the Python version in RTD config Monkey patch gevent in the sphinx conf.py file to ensure that monkey patching is done prior to any other imports. This is to avoid a known issue where SSL is imported prior to patching and an infinite recursion problem is encountered. See AIT-Core/issues/253 Bump GUI Sphinx version to match Core --- doc/source/conf.py | 2 ++ readthedocs.yml | 1 + setup.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index cece5b9b..b1784dde 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -12,6 +12,8 @@ # All configuration values have a default; values that are commented out # serve to show the default. +import gevent.monkey; gevent.monkey.patch_all() + import sys import os diff --git a/readthedocs.yml b/readthedocs.yml index 9eddc492..f9dc5a2f 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -3,6 +3,7 @@ build: formats: - none python: + version: 3.7 pip_install: true install: - requirements: doc/requirements.txt diff --git a/setup.py b/setup.py index 690877fa..29f37cd7 100644 --- a/setup.py +++ b/setup.py @@ -100,7 +100,7 @@ def run(self): install_requires = ['ait-core>=2.0rc1.dev0'], extras_require = { 'docs': [ - 'Sphinx==1.7.2', + 'Sphinx==2.2.2', 'sphinx_rtd_theme', 'sphinxcontrib-httpdomain', 'sphinx-js'