2012-06-06 08:33:18 +04:00
|
|
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
|
|
# and then run "tox" from this directory.
|
|
|
|
|
|
|
|
[tox]
|
2012-06-12 09:13:40 +04:00
|
|
|
envlist = py25, py26, py27, py32, pypy
|
2012-06-06 08:33:18 +04:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
commands =
|
|
|
|
{envpython} setup.py clean
|
2012-06-12 09:13:40 +04:00
|
|
|
rm -rf build dist
|
2012-06-06 08:33:18 +04:00
|
|
|
{envpython} setup.py install
|
|
|
|
{envpython} selftest.py
|
2012-06-12 09:13:40 +04:00
|
|
|
|
|
|
|
[testenv:py32]
|
|
|
|
commands =
|
|
|
|
{envpython} setup.py clean
|
|
|
|
rm -rf build dist
|
|
|
|
{envpython} setup.py install
|
|
|
|
2to3 -w -n -o . --add-suffix=3 selftest.py
|
|
|
|
{envpython} selftest.py3
|