Skip to content

Commit

Permalink
Issue #156 - Update Python version in RTD config
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MJJoyce committed Mar 25, 2020
1 parent 5414474 commit 0bd531a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build:
formats:
- none
python:
version: 3.7
pip_install: true
install:
- requirements: doc/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 0bd531a

Please sign in to comment.