tox.ini (1350B)
1 [tox] 2 envlist = py36, py37, py38, pypy3, lint, docs, packaging 3 4 [gh-actions] 5 python = 6 3.6: py36 7 3.7: py37 8 3.8: py38, lint, docs, packaging 9 pypy3: pypy3 10 11 [testenv] 12 passenv = 13 GITHUB_* 14 deps = 15 pytest==6.0.1 16 pytest-cov==2.10.1 17 pytest-xdist==2.0.0 18 hypothesis>=5.5,<6 19 attrs==19.3.0 20 commands = 21 pytest --cov-report=xml --cov-report=term --cov=hpack {posargs} 22 23 [testenv:pypy3] 24 # temporarily disable coverage testing on PyPy due to performance problems 25 commands = pytest {posargs} 26 27 [testenv:lint] 28 basepython = python3.8 29 deps = 30 flake8==3.8.3 31 commands = flake8 --max-complexity 10 src test utils 32 33 [testenv:docs] 34 basepython = python3.8 35 deps = 36 sphinx==3.2.1 37 whitelist_externals = make 38 changedir = {toxinidir}/docs 39 commands = 40 make clean 41 make html 42 43 [testenv:packaging] 44 basepython = python3.8 45 deps = 46 check-manifest==0.42 47 readme-renderer==26.0 48 twine==3.2.0 49 commands = 50 check-manifest 51 python setup.py sdist bdist_wheel 52 twine check dist/* 53 54 [testenv:bench] 55 deps = 56 {[testenv]deps} 57 pytest-benchmark==3.2.3 58 commands = 59 pytest {toxinidir}/bench/ --benchmark-only --benchmark-group-by=name --benchmark-autosave --benchmark-compare --benchmark-min-rounds=500000 60 61 [testenv:create_test_output] 62 basepython = python3.7 63 commands = python {toxinidir}/utils/create_test_output.py {posargs}