2015-10-19 11:41:10 -07:00
|
|
|
[tox]
|
2017-02-17 01:04:04 -08:00
|
|
|
envlist =
|
|
|
|
py{27,34,35,36}
|
|
|
|
lint
|
|
|
|
docs
|
|
|
|
|
|
|
|
[tox:travis]
|
2018-04-27 09:36:51 -07:00
|
|
|
2.7 = py27, docs, #lint
|
2017-02-17 01:04:04 -08:00
|
|
|
3.4 = py34
|
|
|
|
3.5 = py35
|
|
|
|
3.6 = py36
|
2015-10-19 11:41:10 -07:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
LANG=C
|
2017-02-17 01:04:04 -08:00
|
|
|
deps =
|
|
|
|
.
|
|
|
|
pytest
|
2018-05-30 15:48:39 -04:00
|
|
|
sphinx<1.7
|
2015-10-19 11:41:10 -07:00
|
|
|
commands =
|
|
|
|
py.test {posargs}
|
|
|
|
|
|
|
|
[testenv:docs]
|
2017-02-17 01:04:04 -08:00
|
|
|
deps =
|
2016-06-10 21:08:31 -05:00
|
|
|
{[testenv]deps}
|
|
|
|
sphinx_rtd_theme
|
2015-10-19 11:41:10 -07:00
|
|
|
changedir = {toxinidir}/docs
|
|
|
|
commands =
|
|
|
|
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
prospector
|
|
|
|
commands =
|
|
|
|
prospector \
|
|
|
|
--profile-path={toxinidir} \
|
|
|
|
--profile=prospector \
|
|
|
|
--die-on-tool-error
|