Skip to content

Commit 3d79e36

Browse files
Merge branch 'master' into twine_check
2 parents d80be32 + 9270da7 commit 3d79e36

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

tox.ini

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27,py35,flake8,pylint,twine
7+
envlist = py27,py35,flake8,pylint,twine,sphinx
8+
89
skip_missing_interpreters = False
910

1011
[travis]
@@ -83,3 +84,28 @@ deps =
8384
commands =
8485
python setup.py sdist
8586
twine check dist/*.tar.gz
87+
88+
[testenv:sphinx]
89+
basepython = python3
90+
changedir = doc
91+
# Based on: https://github.com/rtfd/readthedocs.org/blob/8f0c78dde5edcc85acf90462a8518735a25482d3/readthedocs/doc_builder/python_environments.py#L263
92+
install_command = python -m pip install --upgrade -I {packages}
93+
# Based on: https://github.com/rtfd/readthedocs.org/blob/8f0c78dde5edcc85acf90462a8518735a25482d3/readthedocs/doc_builder/python_environments.py#L280
94+
deps =
95+
Pygments==2.2.0
96+
setuptools<40
97+
docutils==0.13.1
98+
mock==1.0.1
99+
pillow==2.6.1
100+
alabaster>=0.7,<0.8,!=0.7.5
101+
commonmark==0.5.4
102+
recommonmark==0.4.0
103+
sphinx<1.8
104+
sphinx-rtd-theme<0.5
105+
readthedocs-sphinx-ext<0.6
106+
# pip install requirements.txt is separate as RTD does it in separate steps
107+
# having the requirements.txt installed in deps above results in Double Requirement exception
108+
# https://github.com/pypa/pip/issues/988
109+
commands =
110+
pip install --exists-action=w -r requirements.txt
111+
sphinx-build -T -W -b html -d _build/doctrees-readthedocs -D language=en . _build/html

0 commit comments

Comments
 (0)