Overhaul tox config for more python versions
This commit is contained in:
parent
d154986128
commit
91e7001963
|
@ -26,6 +26,12 @@ classifiers =
|
||||||
Operating System :: OS Independent
|
Operating System :: OS Independent
|
||||||
Programming Language :: Python
|
Programming Language :: Python
|
||||||
Programming Language :: Python :: 3
|
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 :: Internet :: WWW/HTTP
|
||||||
Topic :: Office/Business
|
Topic :: Office/Business
|
||||||
Topic :: Software Development :: Libraries :: Python Modules
|
Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
|
31
tox.ini
31
tox.ini
|
@ -1,25 +1,28 @@
|
||||||
|
|
||||||
[tox]
|
[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]
|
[testenv]
|
||||||
commands =
|
deps = rattail-tempmon
|
||||||
pip install --upgrade pip
|
extras = tests
|
||||||
pip install --upgrade setuptools wheel
|
commands = pytest {posargs}
|
||||||
pip install --upgrade --upgrade-strategy eager Tailbone[tests] rattail[bouncer,db] rattail-tempmon
|
|
||||||
pytest {posargs}
|
[testenv:py37]
|
||||||
|
# nb. Chameleon 4.3 requires Python 3.9+
|
||||||
|
deps = Chameleon<4.3
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands =
|
extras = tests
|
||||||
pip install --upgrade pip
|
commands = pytest --cov=tailbone --cov-report=html
|
||||||
pip install --upgrade --upgrade-strategy eager Tailbone[tests] rattail[bouncer,db] rattail-tempmon
|
|
||||||
pytest --cov=tailbone --cov-report=html
|
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
changedir = docs
|
changedir = docs
|
||||||
commands =
|
extras = docs
|
||||||
pip install --upgrade pip
|
commands = sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs
|
||||||
pip install --upgrade --upgrade-strategy eager Tailbone[docs] rattail[bouncer,db] rattail-tempmon
|
|
||||||
sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs
|
|
||||||
|
|
Loading…
Reference in a new issue