2012-09-08 16:18:25 +02:00
|
|
|
[tox]
|
2015-05-27 19:32:39 +02:00
|
|
|
envlist =
|
|
|
|
docs, packaging, pep8, py3pep8, py26, py27, py32, py33, py34, py35, pypy
|
2012-09-08 16:18:25 +02:00
|
|
|
|
|
|
|
[testenv]
|
2015-05-14 12:59:33 +02:00
|
|
|
setenv =
|
|
|
|
# This is required in order to get UTF-8 output inside of the subprocesses
|
|
|
|
# that our tests use.
|
|
|
|
LC_CTYPE = en_US.UTF-8
|
2014-12-18 07:20:33 +01:00
|
|
|
deps = -r{toxinidir}/dev-requirements.txt
|
|
|
|
commands = py.test --timeout 300 []
|
|
|
|
install_command = python -m pip install --pre {opts} {packages}
|
2014-04-26 06:32:27 +02:00
|
|
|
|
2014-10-17 18:35:39 +02:00
|
|
|
[testenv:py26]
|
2014-12-18 07:20:33 +01:00
|
|
|
install_command = pip install --pre {opts} {packages}
|
2014-10-17 18:35:39 +02:00
|
|
|
|
2013-08-28 12:31:39 +02:00
|
|
|
[testenv:docs]
|
|
|
|
deps = sphinx
|
|
|
|
basepython = python2.7
|
2014-12-18 07:20:33 +01:00
|
|
|
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
|
2014-01-27 14:29:29 +01:00
|
|
|
|
2014-09-29 17:07:24 +02:00
|
|
|
[testenv:packaging]
|
|
|
|
deps = check-manifest
|
2014-12-18 07:20:33 +01:00
|
|
|
commands = check-manifest
|
2014-09-29 17:07:24 +02:00
|
|
|
|
2014-01-27 20:40:32 +01:00
|
|
|
[testenv:pep8]
|
|
|
|
basepython = python2.7
|
2015-03-05 23:04:50 +01:00
|
|
|
deps = flake8==2.3.0
|
2014-01-28 18:00:00 +01:00
|
|
|
commands = flake8 .
|
2014-01-27 20:40:32 +01:00
|
|
|
|
|
|
|
[testenv:py3pep8]
|
|
|
|
basepython = python3.3
|
2015-03-05 23:04:50 +01:00
|
|
|
deps = flake8==2.3.0
|
2014-01-28 18:00:00 +01:00
|
|
|
commands = flake8 .
|
2014-01-27 20:40:32 +01:00
|
|
|
|
2014-01-27 14:29:29 +01:00
|
|
|
[flake8]
|
2014-01-28 17:58:59 +01:00
|
|
|
exclude = .tox,*.egg,build,_vendor,data
|
2014-02-24 22:52:23 +01:00
|
|
|
select = E,W,F
|