2021-03-09 20:41:18 +00:00
|
|
|
[tox]
|
2023-07-28 12:06:59 +00:00
|
|
|
envlist = lint,distcheck,py38,py39,py311,tornado5,docs
|
2021-03-09 20:41:18 +00:00
|
|
|
toxworkdir = ./build/tox
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
2021-03-24 10:48:25 +00:00
|
|
|
.[dev,tornado]
|
2021-03-09 20:41:18 +00:00
|
|
|
commands =
|
2021-03-30 12:10:24 +00:00
|
|
|
python -m unittest
|
2021-03-09 20:41:18 +00:00
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
commands =
|
2021-07-21 16:23:34 +00:00
|
|
|
flake8 sprockets_statsd tests setup.py docs/conf.py
|
|
|
|
yapf -dr sprockets_statsd tests setup.py docs/conf.py
|
2021-03-09 20:41:18 +00:00
|
|
|
|
2021-07-21 16:17:28 +00:00
|
|
|
[testenv:distcheck]
|
2023-07-28 11:36:09 +00:00
|
|
|
allowlist_externals =
|
|
|
|
rm
|
2021-07-21 16:17:28 +00:00
|
|
|
deps =
|
|
|
|
twine
|
|
|
|
wheel
|
|
|
|
commands =
|
|
|
|
rm -fr {envtmpdir}/dist
|
|
|
|
python setup.py sdist --dist-dir {envtmpdir}/dist
|
|
|
|
python setup.py bdist_wheel --dist-dir {envtmpdir}/dist
|
|
|
|
twine check {envtmpdir}/dist/*
|
|
|
|
rm -fr {envtmpdir}/dist
|
|
|
|
|
2021-03-09 20:41:18 +00:00
|
|
|
[testenv:tornado5]
|
2023-07-28 11:36:09 +00:00
|
|
|
base_python = py39
|
2021-03-09 20:41:18 +00:00
|
|
|
deps =
|
|
|
|
tornado>=5,<6
|
|
|
|
.[dev]
|
2023-07-28 12:06:59 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
deps =
|
|
|
|
.[readthedocs]
|
|
|
|
commands =
|
|
|
|
python -m sphinx -b html -aE docs build/sphinx
|