Merge Debian packaging for release “4.2+dfsg.1-2”.
[debian_python-coverage.git] / tox.ini
blob970a738d0d2da982f5aaf3a01d6964b1ba9d2190
1 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
4 [tox]
5 envlist = py{26,27,33,34,35,36}, pypy{40,51,3_24}, doc
6 skip_missing_interpreters = True
8 [testenv]
9 usedevelop = True
11 deps =
12 # https://requires.io/github/nedbat/coveragepy/requirements/
13 pip==8.1.2
14 nose==1.3.7
15 mock==2.0.0
16 PyContracts==1.7.9
17 unittest-mixins==1.1.1
18 #-egit+/Users/ned/unittest_mixins#egg=unittest-mixins==0.0
19 py26: unittest2==1.1.0
20 py{27,33,34,35,36}: gevent==1.1.1
21 py{26,27,33,34,35,36}: eventlet==0.19.0
22 py{26,27,33,34,35,36}: greenlet==0.4.10
23 # setuptools no longer supports Python 3.2
24 pypy3_24: setuptools==21.1.0
26 # Windows can't update the pip version with pip running, so use Python
27 # to install things.
28 install_command = python -m pip install -U {opts} {packages}
30 passenv = *
31 setenv =
32 pypy,pypy{24,26,40,51,3_24}: COVERAGE_NO_EXTENSION=no C extension under PyPy
33 # Something (pip? setuptools?) chatters about 3.2 support going away.
34 pypy3_24: PYTHONWARNINGS=ignore:::pkg_resources
36 commands =
37 python setup.py --quiet clean develop
39 # Create tests/zipmods.zip
40 # Install the egg1 egg
41 # Remove the C extension so that we can test the PyTracer
42 python igor.py zip_mods install_egg remove_extension
44 # Test with the PyTracer
45 python igor.py test_with_tracer py {posargs}
47 # Build the C extension and test with the CTracer
48 python setup.py --quiet build_ext --inplace
49 python igor.py test_with_tracer c {posargs}
51 [testenv:py26]
52 install_command = python -m pip.__main__ install -U {opts} {packages}
54 [testenv:pypy]
55 # The "pypy" environment is for Travis. Probably can make Travis use one of
56 # the other environments...
57 basepython = pypy
59 [testenv:pypy24]
60 basepython = pypy2.4
62 [testenv:pypy26]
63 basepython = pypy2.6
65 [testenv:pypy3_24]
66 basepython = pypy3-2.4
68 [testenv:pypy40]
69 basepython = pypy4.0
71 [testenv:pypy51]
72 basepython = pypy5.1
74 [testenv:doc]
75 # Build the docs so we know if they are successful. We build twice: once with
76 # -q to get all warnings, and once with -QW to get a success/fail status
77 # return.
78 deps = -rdoc/requirements.pip
79 commands =
80 sphinx-build -aEnq doc doc/_build/html
81 sphinx-build -aEnQW doc doc/_build/html
82 rst2html.py --strict CHANGES.rst doc/_build/trash
83 rst2html.py --strict README.rst doc/_build/trash
85 # Yes, pep8 will read its settings from tox.ini!
86 [pep8]
87 # E265 block comment should start with '# '
88 # E266 too many leading '#' for block comment
89 # E301 expected 1 blank line, found 0
90 # E401 multiple imports on one line
91 # The rest are the default ignored warnings.
92 ignore = E265,E266,E123,E133,E226,E241,E242,E301,E401
93 max-line-length = 100