Overhaul tox config for more python versions

This commit is contained in:
Lance Edgar 2023-12-04 10:15:12 -06:00
parent d154986128
commit 91e7001963
2 changed files with 23 additions and 14 deletions

View file

@ -26,6 +26,12 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Internet :: WWW/HTTP
Topic :: Office/Business
Topic :: Software Development :: Libraries :: Python Modules

31
tox.ini
View file

@ -1,25 +1,28 @@
[tox]
envlist = py36, py37, py39
envlist = py36, py37, py38, py39, py310, py311
# 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
[testenv]
commands =
pip install --upgrade pip
pip install --upgrade setuptools wheel
pip install --upgrade --upgrade-strategy eager Tailbone[tests] rattail[bouncer,db] rattail-tempmon
pytest {posargs}
deps = rattail-tempmon
extras = tests
commands = pytest {posargs}
[testenv:py37]
# nb. Chameleon 4.3 requires Python 3.9+
deps = Chameleon<4.3
[testenv:coverage]
basepython = python3
commands =
pip install --upgrade pip
pip install --upgrade --upgrade-strategy eager Tailbone[tests] rattail[bouncer,db] rattail-tempmon
pytest --cov=tailbone --cov-report=html
extras = tests
commands = pytest --cov=tailbone --cov-report=html
[testenv:docs]
basepython = python3
changedir = docs
commands =
pip install --upgrade pip
pip install --upgrade --upgrade-strategy eager Tailbone[docs] rattail[bouncer,db] rattail-tempmon
sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs
extras = docs
commands = sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs