blob: 27b652a02d21dee9f7165250586aa7048c641bb5 [file] [log] [blame]
Alex Gaynor0f66c6d2013-08-07 12:18:02 -07001[tox]
Alex Gaynorc510e492013-10-31 11:37:11 -07002envlist = py26,py27,pypy,py32,py33,docs,pep8,py3pep8
Alex Gaynor0f66c6d2013-08-07 12:18:02 -07003
4[testenv]
Alex Gaynor83a0f482013-08-10 15:48:57 -04005deps =
Alex Gaynorff61cd32013-10-03 09:52:08 -07006 coverage
Alex Gaynorfb8adfc2013-10-31 14:16:24 -07007 iso8601
Alex Gaynor83a0f482013-08-10 15:48:57 -04008 pretend
Alex Gaynorfb8adfc2013-10-31 14:16:24 -07009 pytest
Alex Gaynorff61cd32013-10-03 09:52:08 -070010commands =
Paul Kehrerc1fd2be2014-01-13 21:55:12 -050011 coverage run --source=cryptography/,tests/ -m pytest --capture=no --strict {posargs}
Alex Gaynor3e81fb22013-11-05 16:29:19 -080012 coverage report -m
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070013
14[testenv:docs]
Alex Gaynor13ec4792013-11-08 14:09:21 -080015deps =
Alex Gaynor29b40ea2014-01-10 09:00:12 -080016 pyenchant
Alex Gaynor13ec4792013-11-08 14:09:21 -080017 sphinx
Alex Gaynor5c0ec7c2014-01-10 08:08:58 -080018 sphinxcontrib-spelling
Alex Gaynor13ec4792013-11-08 14:09:21 -080019 sphinx_rtd_theme
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070020basepython = python2.7
Donald Stufft235fa712013-08-11 17:47:17 -040021commands =
22 sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynor960cf5e2013-12-15 10:24:35 -080023 sphinx-build -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex
Donald Stufft235fa712013-08-11 17:47:17 -040024 sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynor0a5654f2013-10-27 08:57:56 -070025 sphinx-build -W -b linkcheck docs docs/_build/html
Alex Gaynorfc4e2b72014-01-10 07:30:51 -080026 sphinx-build -W -b spelling docs docs/_build/html
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070027
David Reid46cb6012013-10-31 15:53:59 -070028# Temporarily disable coverage on pypy because of performance problems with
29# coverage.py on pypy.
30[testenv:pypy]
Paul Kehrerc1fd2be2014-01-13 21:55:12 -050031commands = py.test --capture=no --strict {posargs}
David Reid46cb6012013-10-31 15:53:59 -070032
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070033[testenv:pep8]
34deps = flake8
Alex Gaynorafdddca2013-10-21 21:00:20 -070035commands = flake8 .
Alex Gaynor967c03b2013-10-21 20:22:50 -070036
Alex Gaynorc510e492013-10-31 11:37:11 -070037[testenv:py3pep8]
38basepython = python3.3
39deps = flake8
40commands = flake8 .
41
Alex Gaynor967c03b2013-10-21 20:22:50 -070042[flake8]
Alex Gaynor1d805382013-10-21 20:44:52 -070043exclude = .tox,*.egg
Paul Kehrer577d2952014-02-24 13:15:56 -060044select = E,W,F,N