tox.ini 2.7 KB

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