2010-07-23 10:37:44 +01:00
|
|
|
[tox]
|
2016-12-25 12:22:54 +09:00
|
|
|
envlist=flake8,py27,py34,py35,py36,pypy,du13,du12,du11
|
2010-07-23 10:37:44 +01:00
|
|
|
|
|
|
|
|
[testenv]
|
2011-09-23 07:59:19 +02:00
|
|
|
deps=
|
2016-07-11 00:27:06 +09:00
|
|
|
six
|
2017-01-07 15:36:07 +09:00
|
|
|
pytest
|
2016-06-12 00:39:12 +09:00
|
|
|
html5lib
|
2016-10-15 16:22:27 +09:00
|
|
|
mock
|
2016-12-24 18:45:32 +09:00
|
|
|
enum34
|
2016-11-12 23:57:29 +09:00
|
|
|
typing
|
2012-05-01 15:21:12 +09:00
|
|
|
setenv =
|
2014-09-21 17:17:02 +02:00
|
|
|
SPHINX_TEST_TEMPDIR = {envdir}/testbuild
|
2016-12-24 22:23:49 +09:00
|
|
|
PYTHONDONTWRITEBYTECODE = true
|
2010-07-23 11:16:17 +01:00
|
|
|
commands=
|
2017-01-07 15:36:07 +09:00
|
|
|
{envpython} -Wall tests/run.py --ignore tests/py35 {posargs}
|
2014-09-20 20:54:54 +02:00
|
|
|
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
2010-07-23 11:16:17 +01:00
|
|
|
|
2011-01-08 21:50:41 +01:00
|
|
|
[testenv:pypy]
|
|
|
|
|
deps=
|
|
|
|
|
simplejson
|
2012-12-17 04:23:14 +00:00
|
|
|
{[testenv]deps}
|
2011-01-08 21:50:41 +01:00
|
|
|
|
2013-07-25 00:26:43 +00:00
|
|
|
[testenv:du11]
|
|
|
|
|
deps=
|
|
|
|
|
docutils==0.11
|
|
|
|
|
{[testenv]deps}
|
2014-08-12 06:45:38 +09:00
|
|
|
|
|
|
|
|
[testenv:du12]
|
|
|
|
|
deps=
|
|
|
|
|
docutils==0.12
|
|
|
|
|
{[testenv]deps}
|
2015-03-07 15:45:43 +09:00
|
|
|
|
2016-12-25 12:22:54 +09:00
|
|
|
[testenv:du13]
|
|
|
|
|
deps=
|
|
|
|
|
docutils==0.13.1
|
|
|
|
|
{[testenv]deps}
|
|
|
|
|
|
2015-03-07 15:45:43 +09:00
|
|
|
[testenv:flake8]
|
|
|
|
|
deps=flake8
|
|
|
|
|
commands=flake8
|
2015-11-10 03:40:48 +01:00
|
|
|
|
2016-11-02 21:35:47 +09:00
|
|
|
[testenv:py27]
|
|
|
|
|
deps=
|
|
|
|
|
{[testenv]deps}
|
|
|
|
|
|
2015-11-10 03:40:48 +01:00
|
|
|
[testenv:py35]
|
2016-11-07 13:15:18 +09:00
|
|
|
deps=
|
2017-02-21 14:05:18 +09:00
|
|
|
mypy
|
2016-11-07 13:15:18 +09:00
|
|
|
typed_ast
|
|
|
|
|
{[testenv]deps}
|
2015-11-10 03:40:48 +01:00
|
|
|
commands=
|
2017-01-07 15:36:07 +09:00
|
|
|
{envpython} -Wall tests/run.py {posargs}
|
2015-11-10 03:40:48 +01:00
|
|
|
sphinx-build -q -W -b html -d {envtmpdir}/doctrees doc {envtmpdir}/html
|
2017-02-24 13:25:51 -05:00
|
|
|
|
2017-02-28 17:31:31 +00:00
|
|
|
[testenv:mypy]
|
|
|
|
|
deps=
|
|
|
|
|
mypy
|
|
|
|
|
commands=
|
|
|
|
|
mypy sphinx/
|
|
|
|
|
|
2017-02-24 13:25:51 -05:00
|
|
|
[testenv:docs]
|
|
|
|
|
commands=
|
|
|
|
|
python setup.py build_sphinx
|