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
5 envlist = py{26,27,33,34,35,36}, pypy{40,51,3_24}, doc
6 skip_missing_interpreters = True
12 # https://requires.io/github/nedbat/coveragepy/requirements/
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
28 install_command = python -m pip install -U {opts} {packages}
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
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
}
52 install_command = python -m pip.__main__ install -U {opts} {packages}
55 # The "pypy" environment is for Travis. Probably can make Travis use one of
56 # the other environments...
66 basepython = pypy3-2.4
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
78 deps = -rdoc/requirements.pip
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!
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