blob: da9599556ea13fca45db3e50d3e2c226f867616c [file] [log] [blame]
Alex Gaynor0f66c6d2013-08-07 12:18:02 -07001[tox]
Paul Kehrer710f6142014-03-17 07:34:02 -04002envlist = py26,py27,pypy,py32,py33,py34,docs,pep8,py3pep8
Alex Gaynor0f66c6d2013-08-07 12:18:02 -07003
4[testenv]
Paul Kehrer7ad18bc2014-03-26 13:13:38 -06005# If you add a new dep here you probably need to add it in setup.py as well
Alex Gaynor83a0f482013-08-10 15:48:57 -04006deps =
Alex Gaynorff61cd32013-10-03 09:52:08 -07007 coverage
Alex Gaynorfb8adfc2013-10-31 14:16:24 -07008 iso8601
Alex Gaynor83a0f482013-08-10 15:48:57 -04009 pretend
Alex Gaynorfb8adfc2013-10-31 14:16:24 -070010 pytest
Alex Stapleton3888a842014-03-24 23:05:53 +000011 ./vectors
Alex Gaynorff61cd32013-10-03 09:52:08 -070012commands =
Paul Kehrerc1fd2be2014-01-13 21:55:12 -050013 coverage run --source=cryptography/,tests/ -m pytest --capture=no --strict {posargs}
Alex Gaynor3e81fb22013-11-05 16:29:19 -080014 coverage report -m
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070015
16[testenv:docs]
Alex Gaynor13ec4792013-11-08 14:09:21 -080017deps =
Alex Gaynor29b40ea2014-01-10 09:00:12 -080018 pyenchant
Alex Gaynor13ec4792013-11-08 14:09:21 -080019 sphinx
20 sphinx_rtd_theme
Alex Stapleton89917f12014-03-22 10:18:15 +000021 sphinxcontrib-spelling
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070022basepython = python2.7
Donald Stufft235fa712013-08-11 17:47:17 -040023commands =
24 sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynor960cf5e2013-12-15 10:24:35 -080025 sphinx-build -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex
Donald Stufft235fa712013-08-11 17:47:17 -040026 sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynorfc4e2b72014-01-10 07:30:51 -080027 sphinx-build -W -b spelling docs docs/_build/html
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070028
Paul Kehrer986b1902014-03-02 16:35:21 -040029[testenv:docs-linkcheck]
30deps =
31 sphinx
32basepython = python2.7
33commands =
34 sphinx-build -W -b linkcheck docs docs/_build/html
35
David Reid46cb6012013-10-31 15:53:59 -070036# Temporarily disable coverage on pypy because of performance problems with
37# coverage.py on pypy.
38[testenv:pypy]
Alex Stapletona39a3192014-03-14 20:03:12 +000039commands =
Alex Stapletona39a3192014-03-14 20:03:12 +000040 py.test --capture=no --strict {posargs}
David Reid46cb6012013-10-31 15:53:59 -070041
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070042[testenv:pep8]
Alex Gaynor25693232014-03-04 15:02:33 -080043deps =
44 flake8
Alex Stapletonbafceb62014-03-22 08:50:07 +000045 flake8-import-order
Alex Stapleton89917f12014-03-22 10:18:15 +000046 pep8-naming
Alex Gaynorafdddca2013-10-21 21:00:20 -070047commands = flake8 .
Alex Gaynor967c03b2013-10-21 20:22:50 -070048
Alex Gaynorc510e492013-10-31 11:37:11 -070049[testenv:py3pep8]
50basepython = python3.3
Alex Gaynor25693232014-03-04 15:02:33 -080051deps =
52 flake8
Alex Stapletonbafceb62014-03-22 08:50:07 +000053 flake8-import-order
Alex Stapleton89917f12014-03-22 10:18:15 +000054 pep8-naming
Alex Gaynorc510e492013-10-31 11:37:11 -070055commands = flake8 .
56
Alex Gaynor967c03b2013-10-21 20:22:50 -070057[flake8]
Alex Gaynor1d805382013-10-21 20:44:52 -070058exclude = .tox,*.egg
Alex Stapletonbafceb62014-03-22 08:50:07 +000059select = E,W,F,N,I
Alex Stapleton707b0082014-04-20 22:24:41 +010060application-import-names = cryptography,cryptography_vectors,tests