fuzzysearch/tox.ini

33 lines
1.7 KiB
INI
Raw Normal View History

2013-11-01 22:34:18 +00:00
[tox]
envlist = {py38,py39,py310,pypy39,pypy310}-{with,without}_coverage
2013-11-01 22:34:18 +00:00
[testenv]
install_command =
2020-01-14 20:21:02 +00:00
{envpython} -m pip install -vvv {opts} {packages}
2014-04-18 23:28:37 +00:00
; setenv =
; ; The following two flags are a workaround for an issue with building
; ; Python extensions on OSX with xcode 5.1.
; ; See: http://stackoverflow.com/questions/22313407/
2014-04-18 23:19:43 +00:00
; CFLAGS=-Qunused-arguments
; CPPFLAGS=-Qunused-arguments
2013-11-01 22:34:18 +00:00
deps =
; 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
{py38,py39,py310,py311,pypy39,pypy310}: biopython
2024-06-24 19:45:18 +00:00
allowlist_externals =
mv
commands =
; 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)
{py38,py39,py310,pypy39,pypy310}-without_coverage: {envpython} -m unittest discover -v tests
{py38,py39,py310,pypy39,pypy310}-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,pypy39,pypy310}-without_coverage: {envpython} -m unittest discover -v tests
{py38,py39,py310,pypy39,pypy310}-with_coverage: {envbindir}/coverage run --source=fuzzysearch -m unittest discover tests
with_coverage: mv .coverage .coverage.no_extensions
with_coverage: {envbindir}/coverage combine