Changeset - 8818c9dd1c7b
[Not reviewed]
0 2 0
Lance Edgar (lance) - 11 months ago 2023-11-20 11:52:48
lance@edbob.org
Overhaul the tox config

per lessons learned in wuttjamaican

also remove old reference to init.d scripts in manifest
2 files changed with 18 insertions and 16 deletions:
0 comments (0 inline, 0 general)
MANIFEST.in
Show inline comments
 
@@ -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
tox.ini
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)