Skip to content
This repository
Newer
Older
100644 51 lines (44 sloc) 1.56 kb
f376841b »
2011-07-17 Add a config file to run tornado tests under multiple python versions…
1 # Tox (http://codespeak.net/~hpk/tox/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the tornado
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
5 #
6 # See also tornado/test/run_pyversion_tests.py, which is faster but
7 # less thorough.
8 [tox]
9 # "-full" variants include optional dependencies, to ensure
10 # that things work both in a bare install and with all the extras.
11 envlist = py25, py25-full, py26, py26-full, py27, py27-full, pypy, py32
12 [testenv]
13 commands = python -m tornado.test.runtests {posargs:}
14
15 # python will import relative to the current working directory by default,
16 # so cd into the tox working directory to avoid picking up the working
17 # copy of the files (especially important for 2to3).
18 changedir = {toxworkdir}
19 # Note that PYTHONPATH must not be set when running tox (and setting it
20 # with the following doesn't seem to work, since tox/virtualenv appends to
21 # PYTHONPATH)
22 #environment = PYTHONPATH=
23
24 [testenv:py25]
25 deps = simplejson
26
27 [testenv:py25-full]
28 basepython = python2.5
29 # pycurl doesn't install cleanly for me from pip on 2.5, so get it from
30 # the system python.
31 sitepackages = True
32 deps =
33 pycurl
34 simplejson
35 twisted
36
37 [testenv:py26-full]
38 basepython = python2.6
39 deps =
40 pycurl
41 twisted
42
43 [testenv:py27-full]
44 basepython = python2.7
45 deps =
46 pycurl
47 twisted
48
49 # No pypy-full yet: pycurl doesn't build, and installing twisted
50 # under pypy takes a *very* long time. Neither package works on python3.
Something went wrong with that request. Please try again.