2013-11-01 22:34:18 +00:00
[tox]
2024-06-25 06:53:07 +00:00
envlist =
{py38,py39,py310,py311,py312,pypy39,pypy310}-{with,without}_coverage
2013-11-01 22:34:18 +00:00
[testenv]
2024-06-25 06:53:07 +00:00
basepython =
py38: {env:TOXPYTHON:python3.8}
py39: {env:TOXPYTHON:python3.9}
py310: {env:TOXPYTHON:python3.10}
py311: {env:TOXPYTHON:python3.11}
py312: {env:TOXPYTHON:python3.12}
pypy39: {env:TOXPYTHON:pypy3.9}
pypy310: {env:TOXPYTHON:pypy3.10}
2013-11-01 22:34:18 +00:00
deps =
2015-02-13 17:07:17 +00:00
; use specific versions of testing tools with which this is known to work
2020-04-07 10:02:06 +00:00
with_coverage: coverage> = 5,<6
2024-06-24 21:21:41 +00:00
{py38,py39,py310,py311,py312,pypy39,pypy310}: biopython
2024-06-25 06:53:07 +00:00
setenv =
PYTHONUNBUFFERED = yes
2024-06-24 19:45:18 +00:00
allowlist_externals =
2015-02-02 01:37:26 +00:00
mv
2014-04-12 10:10:52 +00:00
commands =
2015-02-13 17:07:17 +00:00
; Notes:
; * run tests both with and without the C extensions (including Cython)
; * if running with coverage, merge the coverage run results from both runs
; * for Python 2.6 use the unit2 script since -m unittest2 doesn't work
; (but when running with coverage, coverage run -m unittest2 works)
2024-06-24 21:21:41 +00:00
{py38,py39,py310,py311,py312,pypy39,pypy310}-without_coverage: {envpython} -m unittest discover -v tests
{py38,py39,py310,py311,py312,pypy39,pypy310}-with_coverage: {envbindir}/coverage run --source = fuzzysearch -m unittest discover tests
2015-02-07 11:18:02 +00:00
with_coverage: mv .coverage .coverage.with_extensions
2017-07-06 08:06:07 +00:00
{envpython} -c 'import os; [os.remove(os.path.join(d, fn)) for (d, dns, fns) in os.walk(os.path.join(r"{envsitepackagesdir}", "fuzzysearch")) for fn in fns if fn.endswith((".so", ".pyd"))]'
2024-06-24 21:21:41 +00:00
{py38,py39,py310,py311,py312,pypy39,pypy310}-without_coverage: {envpython} -m unittest discover -v tests
{py38,py39,py310,py311,py312,pypy39,pypy310}-with_coverage: {envbindir}/coverage run --source = fuzzysearch -m unittest discover tests
2015-02-07 11:18:02 +00:00
with_coverage: mv .coverage .coverage.no_extensions
with_coverage: {envbindir}/coverage combine