2
0
Fork 0

Add tox config

This commit is contained in:
Lance Edgar 2023-10-29 10:26:02 -05:00
parent 5c3c42d6b3
commit 26b78adb56
3 changed files with 30 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.coverage
docs/_build/
.tox/
WuttJamaican.egg-info/

View file

@ -40,5 +40,6 @@ where = src
[options.extras_require]
db = SQLAlchemy<2
docs = Sphinx
tests = pytest-cov; SQLAlchemy<2
tests = pytest-cov; tox

27
tox.ini Normal file
View file

@ -0,0 +1,27 @@
[tox]
envlist = py36, py37, py38, py39, py310, py311
[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