2012-09-08 16:18:25 +02:00
|
|
|
[tox]
|
2015-05-27 19:32:39 +02:00
|
|
|
envlist =
|
2017-06-14 08:08:11 +02:00
|
|
|
docs, packaging, lint-py2, lint-py3, mypy,
|
2017-05-15 10:54:47 +02:00
|
|
|
py27, py33, py34, py35, py36, py37, 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 []
|
2016-02-16 23:16:38 +01:00
|
|
|
install_command = python -m pip install {opts} {packages}
|
2014-04-26 06:32:27 +02:00
|
|
|
|
2013-08-28 12:31:39 +02:00
|
|
|
[testenv:docs]
|
2017-05-16 20:47:43 +02:00
|
|
|
deps = sphinx == 1.6.1
|
2013-08-28 12:31:39 +02:00
|
|
|
basepython = python2.7
|
2017-07-06 01:56:13 +02:00
|
|
|
commands =
|
|
|
|
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
|
|
|
|
sphinx-build -W -b man -d {envtmpdir}/doctrees docs docs/_build/man
|
2014-01-27 14:29:29 +01:00
|
|
|
|
2014-09-29 17:07:24 +02:00
|
|
|
[testenv:packaging]
|
2015-10-01 15:13:16 +02:00
|
|
|
deps =
|
2015-09-28 02:28:36 +02:00
|
|
|
check-manifest
|
2016-01-04 23:30:54 +01:00
|
|
|
readme_renderer
|
2015-10-01 15:13:16 +02:00
|
|
|
commands =
|
2015-09-28 02:28:36 +02:00
|
|
|
check-manifest
|
|
|
|
python setup.py check -m -r -s
|
2014-09-29 17:07:24 +02:00
|
|
|
|
2017-07-06 01:51:42 +02:00
|
|
|
[lint]
|
|
|
|
deps =
|
|
|
|
flake8==3.3.0
|
|
|
|
isort==4.2.5
|
|
|
|
commands =
|
|
|
|
flake8 .
|
|
|
|
isort --recursive --check-only --diff pip tests
|
2014-01-27 20:40:32 +01:00
|
|
|
|
2017-07-06 01:51:42 +02:00
|
|
|
[testenv:lint-py2]
|
|
|
|
basepython = python2
|
|
|
|
deps = {[lint]deps}
|
|
|
|
commands = {[lint]commands}
|
2014-01-27 20:40:32 +01:00
|
|
|
|
2017-07-06 01:51:42 +02:00
|
|
|
[testenv:lint-py3]
|
2017-05-15 10:55:44 +02:00
|
|
|
basepython = python3
|
2017-07-06 01:51:42 +02:00
|
|
|
deps = {[lint]deps}
|
|
|
|
commands = {[lint]commands}
|
2017-07-17 19:32:30 +02:00
|
|
|
|
|
|
|
[testenv:mypy]
|
|
|
|
basepython = python3
|
|
|
|
deps = mypy
|
|
|
|
commands =
|
|
|
|
mypy -p pip
|
|
|
|
mypy -p pip -2
|