2
0
Fork 0

Fix errors for tox runs

This commit is contained in:
Lance Edgar 2023-11-19 15:21:17 -06:00
parent 005f43d14e
commit 068d8f29b5
2 changed files with 10 additions and 17 deletions

View file

@ -118,8 +118,6 @@ class TestCommandArgumentParser(TestCase):
kw = { kw = {
'prog': 'wutta', 'prog': 'wutta',
'add_help': False, 'add_help': False,
# nb. this flag requires python 3.9
'exit_on_error': False,
} }
# nb. examples below assume a command line like: # nb. examples below assume a command line like:

25
tox.ini
View file

@ -8,25 +8,20 @@ envlist = py36, py37, py38, py39, py310, py311
requires = virtualenv<20.22.0 requires = virtualenv<20.22.0
[testenv] [testenv]
commands = extras = db,docs,tests
pip install -U pip commands = pytest {posargs}
pip install -U setuptools wheel
pip install -U --upgrade-strategy eager wuttjamaican[db,docs,tests] [testenv:py37]
pytest {posargs} # nb. newer coverage is causing segfault for this one, so must avoid that
deps = coverage<7.2.4
[testenv:coverage] [testenv:coverage]
basepython = python3.11 basepython = python3.11
commands = extras = db,tests
pip install -U pip commands = pytest --cov=wuttjamaican --cov-report=html --cov-fail-under=100
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] [testenv:docs]
basepython = python3.11 basepython = python3.11
extras = db,docs
changedir = docs changedir = docs
commands = commands = sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs
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