• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4[tox]
5envlist = py{26,27,33,34,35}, pypy{24,26,40,3_24}, doc
6skip_missing_interpreters = True
7
8[testenv]
9usedevelop = True
10
11deps =
12    # https://requires.io/github/nedbat/coveragepy/requirements/
13    nose==1.3.7
14    mock==1.3.0
15    PyContracts==1.7.6
16    py26: unittest2==1.1.0
17    py{26,27,33,34,35}: gevent==1.1b6
18    py{26,27,33,34}: eventlet==0.17.4
19    py{26,27,33,34,35}: greenlet==0.4.9
20
21passenv = *
22setenv =
23    pypy,pypy{24,26,40,3_24}: COVERAGE_NO_EXTENSION=no C extension under PyPy
24
25commands =
26    python setup.py --quiet clean develop
27
28    # Create tests/zipmods.zip
29    # Install the egg1 egg
30    # Remove the C extension so that we can test the PyTracer
31    python igor.py zip_mods install_egg remove_extension
32
33    # Test with the PyTracer
34    python igor.py test_with_tracer py {posargs}
35
36    # Build the C extension and test with the CTracer
37    python setup.py --quiet build_ext --inplace
38    python igor.py test_with_tracer c {posargs}
39
40[testenv:pypy]
41basepython = pypy
42
43[testenv:pypy24]
44basepython = pypy2.4
45
46[testenv:pypy26]
47basepython = pypy2.6
48
49[testenv:pypy3_24]
50basepython = pypy3-2.4
51
52[testenv:pypy40]
53basepython = pypy4.0
54
55[testenv:doc]
56# Build the docs so we know if they are successful.  We build twice: once with
57# -q to get all warnings, and once with -QW to get a success/fail status
58# return.
59deps = -rdoc/requirements.pip
60commands =
61    sphinx-build -aEnq doc doc/_build/html
62    sphinx-build -aEnQW doc doc/_build/html
63    rst2html.py --strict CHANGES.rst doc/_build/trash
64    rst2html.py --strict README.rst doc/_build/trash
65
66# Yes, pep8 will read its settings from tox.ini!
67[pep8]
68# E265: block comment should start with '# '
69# E301 expected 1 blank line, found 0
70# E401 multiple imports on one line
71# The rest are the default ignored warnings.
72ignore = E265,E123,E133,E226,E241,E242,E301,E401
73max-line-length = 100
74