| 1 |
[tox] |
| 2 |
envlist = py36, py37, py38, py39, py310, pypy3, lint, docs, packaging |
| 3 |
|
| 4 |
[gh-actions] |
| 5 |
python = |
| 6 |
3.6: py36 |
| 7 |
3.7: py37 |
| 8 |
3.8: py38 |
| 9 |
3.9: py39, lint, docs, packaging, h2spec |
| 10 |
3.10: py310 |
| 11 |
pypy3: pypy3 |
| 12 |
|
| 13 |
[testenv] |
| 14 |
passenv = |
| 15 |
GITHUB_* |
| 16 |
deps = |
| 17 |
pytest>=6.0.1,<7 |
| 18 |
pytest-cov>=2.10.1,<3 |
| 19 |
pytest-xdist>=2.0.0,<3 |
| 20 |
hypothesis>=5.5,<7 |
| 21 |
commands = |
| 22 |
pytest --cov-report=xml --cov-report=term --cov=h2 {posargs} |
| 23 |
|
| 24 |
[testenv:pypy3] |
| 25 |
# temporarily disable coverage testing on PyPy due to performance problems |
| 26 |
commands = pytest {posargs} |
| 27 |
|
| 28 |
[testenv:lint] |
| 29 |
deps = |
| 30 |
flake8>=3.9.1,<4 |
| 31 |
commands = flake8 src/ test/ |
| 32 |
|
| 33 |
[testenv:docs] |
| 34 |
deps = |
| 35 |
sphinx>=4.0.2,<5 |
| 36 |
whitelist_externals = make |
| 37 |
changedir = {toxinidir}/docs |
| 38 |
commands = |
| 39 |
make clean |
| 40 |
make html |
| 41 |
|
| 42 |
[testenv:packaging] |
| 43 |
basepython = python3.9 |
| 44 |
deps = |
| 45 |
check-manifest==0.46 |
| 46 |
readme-renderer==29.0 |
| 47 |
twine>=3.4.1,<4 |
| 48 |
whitelist_externals = rm |
| 49 |
commands = |
| 50 |
rm -rf dist/ |
| 51 |
check-manifest |
| 52 |
python setup.py sdist bdist_wheel |
| 53 |
twine check dist/* |
| 54 |
|
| 55 |
[testenv:publish] |
| 56 |
basepython = {[testenv:packaging]basepython} |
| 57 |
deps = |
| 58 |
{[testenv:packaging]deps} |
| 59 |
whitelist_externals = {[testenv:packaging]whitelist_externals} |
| 60 |
commands = |
| 61 |
{[testenv:packaging]commands} |
| 62 |
twine upload dist/* |
| 63 |
|
| 64 |
[testenv:graphs] |
| 65 |
basepython = python3.8 |
| 66 |
deps = |
| 67 |
graphviz==0.14.1 |
| 68 |
commands = |
| 69 |
python visualizer/visualize.py -i docs/source/_static |
| 70 |
|
| 71 |
[testenv:h2spec] |
| 72 |
basepython = python3.8 |
| 73 |
deps = |
| 74 |
twisted[tls]==20.3.0 |
| 75 |
whitelist_externals = {toxinidir}/test/h2spectest.sh |
| 76 |
commands = |
| 77 |
{toxinidir}/test/h2spectest.sh |