tox.ini (1351B)
1 [tox] 2 envlist=docs,py{38,39,310,311,py3},py{38}-pytest{main} 3 4 [testenv] 5 commands= 6 {env:_PLUGGY_TOX_CMD:pytest} {posargs} 7 coverage: coverage report -m 8 coverage: coverage xml 9 setenv= 10 _PYTEST_SETUP_SKIP_PLUGGY_DEP=1 11 coverage: _PLUGGY_TOX_CMD=coverage run -m pytest 12 extras=testing 13 deps= 14 coverage: coverage 15 pytestmain: git+https://github.com/pytest-dev/pytest.git@main 16 17 [testenv:benchmark] 18 commands=pytest {posargs:testing/benchmark.py} 19 deps= 20 pytest 21 pytest-benchmark 22 23 [testenv:docs] 24 deps = 25 -r{toxinidir}/docs/requirements.txt 26 commands = 27 python scripts/towncrier-draft-to-file.py 28 # the '-t changelog_towncrier_draft' tags makes sphinx include the draft 29 # changelog in the docs; this does not happen on ReadTheDocs because it uses 30 # the standard sphinx command so the 'changelog_towncrier_draft' is never set there 31 sphinx-build -W -b html {toxinidir}/docs {toxinidir}/build/html-docs -t changelog_towncrier_draft {posargs:} 32 33 [pytest] 34 minversion=2.0 35 testpaths = testing 36 #--pyargs --doctest-modules --ignore=.tox 37 addopts=-r a 38 filterwarnings = 39 error 40 41 [flake8] 42 max-line-length=99 43 44 [testenv:release] 45 description = do a release, required posarg of the version number 46 basepython = python3 47 skipsdist = True 48 usedevelop = True 49 passenv = * 50 deps = 51 colorama 52 gitpython 53 towncrier 54 commands = python scripts/release.py {posargs}