fuzzysearch/tox.ini

66 lines
1.4 KiB
INI
Raw Normal View History

2013-11-01 22:34:18 +00:00
[tox]
envlist = py26, py27, py32, py33
2013-11-01 22:34:18 +00:00
[testenv]
setenv =
CFLAGS=-Qunused-arguments
CPPFLAGS=-Qunused-arguments
changedir = {toxworkdir}
2013-11-01 22:34:18 +00:00
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test_requirements.txt
whitelist_externals =
rm
cp
2to3
2013-11-01 22:34:18 +00:00
[testenv:py26]
setenv =
PYTHONPATH = {envtmpdir}
{[testenv]setenv}
commands =
cp -r {toxinidir}/tests/ {envtmpdir}/tests/
unit2 discover {envtmpdir}/tests -t {envtmpdir}
rm -rf {envtmpdir}/tests
2013-11-01 22:34:18 +00:00
deps =
unittest2
mock
{[testenv]deps}
[testenv:py27]
setenv =
PYTHONPATH = {envtmpdir}
{[testenv]setenv}
commands =
cp -r {toxinidir}/tests/ {envtmpdir}/tests/
python -m unittest discover {envtmpdir}/tests -t {envtmpdir}
rm -rf {envtmpdir}/tests
2013-11-01 22:34:18 +00:00
deps =
mock
{[testenv]deps}
biopython
2013-11-01 22:34:18 +00:00
[testenv:py32]
setenv =
PYTHONPATH = {envtmpdir}/tests3
{[testenv]setenv}
commands =
2to3 -n -W --output-dir {envtmpdir}/tests3/tests {toxinidir}/tests
{envpython} -m unittest discover {envtmpdir}/tests3
rm -rf {envtmpdir}/tests3
2013-11-01 22:34:18 +00:00
deps =
mock
{[testenv]deps}
[testenv:py33]
setenv =
PYTHONPATH = {envtmpdir}/tests3
{[testenv]setenv}
commands =
2to3 -n -W --output-dir {envtmpdir}/tests3/tests {toxinidir}/tests
{envpython} -m unittest discover {envtmpdir}/tests3
rm -rf {envtmpdir}/tests3
deps =
{[testenv]deps}
biopython