2011-07-17 23:52:56 +00:00
|
|
|
# Tox (http://codespeak.net/~hpk/tox/) is a tool for running tests
|
|
|
|
# in multiple virtualenvs. This configuration file will run the tornado
|
|
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
|
|
# and then run "tox" from this directory.
|
|
|
|
#
|
|
|
|
# See also tornado/test/run_pyversion_tests.py, which is faster but
|
|
|
|
# less thorough.
|
2011-08-03 06:26:50 +00:00
|
|
|
#
|
|
|
|
# On my macports-based setup, the environment variable
|
|
|
|
# ARCHFLAGS='-arch x86_64' must be set when building pycurl, and a
|
|
|
|
# symlink from mysql_config to mysql_config5 must exist when building
|
|
|
|
# MySQL-python.
|
2011-07-17 23:52:56 +00:00
|
|
|
[tox]
|
|
|
|
# "-full" variants include optional dependencies, to ensure
|
|
|
|
# that things work both in a bare install and with all the extras.
|
2011-09-10 21:18:51 +00:00
|
|
|
envlist = py27-full, py25-full, py32, pypy, py25, py26, py26-full, py27
|
2011-07-17 23:52:56 +00:00
|
|
|
[testenv]
|
|
|
|
commands = python -m tornado.test.runtests {posargs:}
|
|
|
|
|
|
|
|
# python will import relative to the current working directory by default,
|
|
|
|
# so cd into the tox working directory to avoid picking up the working
|
|
|
|
# copy of the files (especially important for 2to3).
|
|
|
|
changedir = {toxworkdir}
|
|
|
|
# Note that PYTHONPATH must not be set when running tox (and setting it
|
|
|
|
# with the following doesn't seem to work, since tox/virtualenv appends to
|
|
|
|
# PYTHONPATH)
|
|
|
|
#environment = PYTHONPATH=
|
|
|
|
|
|
|
|
[testenv:py25]
|
2011-10-07 08:06:01 +00:00
|
|
|
basepython = python2.5
|
2011-07-17 23:52:56 +00:00
|
|
|
deps = simplejson
|
|
|
|
|
|
|
|
[testenv:py25-full]
|
|
|
|
basepython = python2.5
|
|
|
|
deps =
|
2011-08-03 06:26:50 +00:00
|
|
|
MySQL-python
|
2011-07-17 23:52:56 +00:00
|
|
|
pycurl
|
|
|
|
simplejson
|
|
|
|
twisted
|
|
|
|
|
|
|
|
[testenv:py26-full]
|
|
|
|
basepython = python2.6
|
|
|
|
deps =
|
2011-08-03 06:26:50 +00:00
|
|
|
MySQL-python
|
2011-07-17 23:52:56 +00:00
|
|
|
pycurl
|
|
|
|
twisted
|
|
|
|
|
|
|
|
[testenv:py27-full]
|
|
|
|
basepython = python2.7
|
|
|
|
deps =
|
2011-08-03 06:26:50 +00:00
|
|
|
MySQL-python
|
2011-07-17 23:52:56 +00:00
|
|
|
pycurl
|
|
|
|
twisted
|
|
|
|
|
2011-08-14 16:53:55 +00:00
|
|
|
# No pypy-full yet: pycurl doesn't build with pypy, and installing
|
|
|
|
# twisted under pypy takes a *very* long time. MySQL-python builds with
|
|
|
|
# pypy, but doesn't work.
|
2011-08-03 06:26:50 +00:00
|
|
|
|
|
|
|
# No py32-full yet: none of our dependencies currently work on python3.
|