Overhaul the tox config
per lessons learned in wuttjamaican also remove old reference to init.d scripts in manifest
This commit is contained in:
parent
0cfcb6ca8f
commit
8818c9dd1c
2 changed files with 18 additions and 16 deletions
|
|
@ -9,8 +9,6 @@ recursive-include rattail/data *
|
|||
recursive-include rattail/data/config *.conf
|
||||
recursive-include rattail/data/sample *.csv
|
||||
|
||||
include rattail/contrib/init.d/*
|
||||
|
||||
include rattail/db/alembic/README
|
||||
recursive-include rattail/db/alembic *.mako
|
||||
recursive-include rattail/db/alembic *.py
|
||||
|
|
|
|||
32
tox.ini
32
tox.ini
|
|
@ -2,25 +2,29 @@
|
|||
[tox]
|
||||
envlist = py36, py37, py39
|
||||
|
||||
# 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 rattail[auth,bouncer,db,tests]
|
||||
pytest {posargs}
|
||||
extras = bouncer,db,tests
|
||||
commands = pytest {posargs}
|
||||
|
||||
[testenv:py37]
|
||||
# nb. newer libs may cause segfault for this one, so must avoid that
|
||||
deps =
|
||||
coverage<6.5
|
||||
wheel<0.41
|
||||
|
||||
[testenv:coverage]
|
||||
basepython = python3
|
||||
deps = invoke
|
||||
commands =
|
||||
pip install --upgrade pip
|
||||
pip install --upgrade --upgrade-strategy eager rattail[auth,bouncer,db,tests] appy luigi xlrd
|
||||
pytest --cov=rattail --cov-report=html
|
||||
deps = appy invoke luigi xlrd
|
||||
extras = bouncer,db,tests
|
||||
commands = pytest --cov=rattail --cov-report=html
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
changedir = docs
|
||||
commands =
|
||||
pip install --upgrade pip
|
||||
pip install --upgrade --upgrade-strategy eager rattail[auth,bouncer,db,tests,docs]
|
||||
sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs
|
||||
extras = bouncer,db,tests,docs
|
||||
commands = sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue