From 0cd2fd5f5a023cb3dd01444f25590f1f66d48c4e Mon Sep 17 00:00:00 2001 From: Tal Einat <532281+taleinat@users.noreply.github.com> Date: Sat, 29 Jun 2024 20:08:33 +0300 Subject: [PATCH] Simplify tox config --- tox.ini | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tox.ini b/tox.ini index c48f3db..5eac300 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - {py38,py39,py310,py311,py312,pypy39,pypy310}-{with,without}_coverage + py38,py39,py310,py311,py312,pypy39,pypy310 [testenv] basepython = @@ -14,7 +14,7 @@ basepython = deps = ; use specific versions of testing tools with which this is known to work with_coverage: coverage>=5,<6 - {py38,py39,py310,py311,py312,pypy39,pypy310}: biopython + biopython setenv = PYTHONUNBUFFERED=yes allowlist_externals = @@ -25,11 +25,11 @@ commands = ; * 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) - {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 + !with_coverage: {envpython} -m unittest discover tests + with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests with_coverage: mv .coverage .coverage.with_extensions {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"))]' - {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 + !with_coverage: {envpython} -m unittest discover tests + with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests with_coverage: mv .coverage .coverage.no_extensions with_coverage: {envbindir}/coverage combine