2021-03-09 20:41:18 +00:00
|
|
|
[tox]
|
2023-07-27 13:17:38 +00:00
|
|
|
envlist = lint,distcheck,py38,py39,py311,tornado5
|
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]
|
|
|
|
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]
|
|
|
|
deps =
|
|
|
|
tornado>=5,<6
|
|
|
|
.[dev]
|