diff --git a/MANIFEST.in b/MANIFEST.in index caaf60eebdd4e4997cbbabe656fee8b291ea1630..2c8c8f75baa894870fc8fc6367d3c77c39bf1f6e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 diff --git a/tox.ini b/tox.ini index c20663f800dcf45bcfa787e445e15c71b8b8e38d..2e0c7718877b37c33e297599d80435e173c18d0f 100644 --- a/tox.ini +++ b/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