2023-10-29 10:26:02 -05:00
|
|
|
|
|
|
|
[tox]
|
|
|
|
envlist = py36, py37, py38, py39, py310, py311
|
|
|
|
|
2023-10-29 23:32:11 -05:00
|
|
|
# TODO: can remove this when we drop py36 support
|
|
|
|
# nb. need this for testing older python versions
|
|
|
|
# https://tox.wiki/en/latest/faq.html#testing-end-of-life-python-versions
|
|
|
|
requires = virtualenv<20.22.0
|
|
|
|
|
2023-10-29 10:26:02 -05:00
|
|
|
[testenv]
|
|
|
|
commands =
|
|
|
|
pip install -U pip
|
|
|
|
pip install -U setuptools wheel
|
|
|
|
pip install -U --upgrade-strategy eager wuttjamaican[docs,tests]
|
|
|
|
pytest {posargs}
|
|
|
|
|
|
|
|
[testenv:coverage]
|
|
|
|
basepython = python3.11
|
|
|
|
commands =
|
|
|
|
pip install -U pip
|
|
|
|
pip install -U setuptools wheel
|
|
|
|
pip install -U --upgrade-strategy eager wuttjamaican[db,tests]
|
|
|
|
pytest --cov=wuttjamaican --cov-report=html --cov-fail-under=100
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
basepython = python3.11
|
|
|
|
changedir = docs
|
|
|
|
commands =
|
|
|
|
pip install -U pip
|
|
|
|
pip install -U setuptools wheel
|
|
|
|
pip install -U --upgrade-strategy eager wuttjamaican[db,docs]
|
|
|
|
sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs
|