tox.ini (1076B)
1 [tox] 2 envlist = py36, py37, py38, py39, 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 3.9: py39 10 pypy3: pypy3 11 12 [testenv] 13 passenv = 14 GITHUB_* 15 deps = 16 pytest>=6.0.1,<7 17 pytest-cov>=2.10.1,<3 18 pytest-xdist>=2.2.1,<3 19 commands = 20 pytest --cov-report=xml --cov-report=term --cov=hyperframe {posargs} 21 22 [testenv:pypy3] 23 # temporarily disable coverage testing on PyPy due to performance problems 24 commands = pytest {posargs} 25 26 [testenv:docs] 27 basepython = python3.8 28 deps = 29 sphinx>=3.5.4,<4 30 whitelist_externals = make 31 changedir = {toxinidir}/docs 32 commands = 33 make clean 34 make html 35 36 [testenv:lint] 37 basepython = python3.8 38 deps = 39 flake8==3.9.1 40 mypy==0.812 41 commands = 42 flake8 --max-complexity 10 src test 43 mypy --strict src/ 44 45 [testenv:packaging] 46 basepython = python3.8 47 deps = 48 check-manifest==0.46 49 readme-renderer==29.0 50 twine==3.4.1 51 whitelist_externals = rm 52 commands = 53 rm -rf dist/ 54 check-manifest 55 python setup.py sdist bdist_wheel 56 twine check dist/*