Skip to content

Commit

Permalink
Merge pull request #7 from hroncok/py3docs
Browse files Browse the repository at this point in the history
Build docs with Python 3
  • Loading branch information
wolph committed May 15, 2019
2 parents 6bbe13b + 46b2192 commit 72309d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/conf.py
Expand Up @@ -67,7 +67,7 @@

# Monkey patch to disable nonlocal image warning
import sphinx
if hasattr(sphinx, 'environment'):
try:
original_warn_mode = sphinx.environment.BuildEnvironment.warn_node

def allow_nonlocal_image_warn_node(self, msg, *args, **kwargs):
Expand All @@ -76,6 +76,8 @@ def allow_nonlocal_image_warn_node(self, msg, *args, **kwargs):

sphinx.environment.BuildEnvironment.warn_node = \
allow_nonlocal_image_warn_node
except AttributeError:
pass

suppress_warnings = [
'image.nonlocal_uri',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -19,7 +19,7 @@ deps = flake8
commands = flake8 --ignore=W391 python_utils {posargs}

[testenv:docs]
basepython = python2.7
basepython = python3
whitelist_externals =
rm
cd
Expand Down

0 comments on commit 72309d2

Please sign in to comment.