blob: 3ee449f1aeabc6ba802d5a89b6535d7985c6adc4 [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 Gaynorfc4e2b72014-01-10 07:30:51 -080025 sphinx-build -W -b spelling docs docs/_build/html
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070026
Paul Kehrer986b1902014-03-02 16:35:21 -040027[testenv:docs-linkcheck]
28deps =
29 sphinx
30basepython = python2.7
31commands =
32 sphinx-build -W -b linkcheck docs docs/_build/html
33
David Reid46cb6012013-10-31 15:53:59 -070034# Temporarily disable coverage on pypy because of performance problems with
35# coverage.py on pypy.
36[testenv:pypy]
Paul Kehrerc1fd2be2014-01-13 21:55:12 -050037commands = py.test --capture=no --strict {posargs}
David Reid46cb6012013-10-31 15:53:59 -070038
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070039[testenv:pep8]
Alex Gaynor25693232014-03-04 15:02:33 -080040deps =
41 flake8
42 pep8-naming
Alex Gaynorafdddca2013-10-21 21:00:20 -070043commands = flake8 .
Alex Gaynor967c03b2013-10-21 20:22:50 -070044
Alex Gaynorc510e492013-10-31 11:37:11 -070045[testenv:py3pep8]
46basepython = python3.3
Alex Gaynor25693232014-03-04 15:02:33 -080047deps =
48 flake8
49 pep8-naming
Alex Gaynorc510e492013-10-31 11:37:11 -070050commands = flake8 .
51
Alex Gaynor967c03b2013-10-21 20:22:50 -070052[flake8]
Alex Gaynor1d805382013-10-21 20:44:52 -070053exclude = .tox,*.egg
Paul Kehrer577d2952014-02-24 13:15:56 -060054select = E,W,F,N