blob: 745fb37a813f7ba8351c04ceefda03650cd5ab9a [file] [log] [blame]
Alex Gaynor0f66c6d2013-08-07 12:18:02 -07001[tox]
Alex Gaynor5b8126f2014-05-17 22:34:56 -07002envlist = 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
Paul Kehrerd3e3df92014-04-30 11:13:17 -050010 pyasn1
Alex Gaynorfb8adfc2013-10-31 14:16:24 -070011 pytest
Alex Stapleton3888a842014-03-24 23:05:53 +000012 ./vectors
Alex Gaynorff61cd32013-10-03 09:52:08 -070013commands =
Paul Kehrerc1fd2be2014-01-13 21:55:12 -050014 coverage run --source=cryptography/,tests/ -m pytest --capture=no --strict {posargs}
Alex Gaynor3e81fb22013-11-05 16:29:19 -080015 coverage report -m
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070016
17[testenv:docs]
Alex Gaynor13ec4792013-11-08 14:09:21 -080018deps =
Ayrxa417b842014-05-20 23:53:40 +080019 doc8
Alex Gaynor29b40ea2014-01-10 09:00:12 -080020 pyenchant
Alex Gaynor13ec4792013-11-08 14:09:21 -080021 sphinx
22 sphinx_rtd_theme
Alex Stapleton89917f12014-03-22 10:18:15 +000023 sphinxcontrib-spelling
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070024basepython = python2.7
Donald Stufft235fa712013-08-11 17:47:17 -040025commands =
26 sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynor960cf5e2013-12-15 10:24:35 -080027 sphinx-build -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex
Donald Stufft235fa712013-08-11 17:47:17 -040028 sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
Alex Gaynorfc4e2b72014-01-10 07:30:51 -080029 sphinx-build -W -b spelling docs docs/_build/html
Ayrxa417b842014-05-20 23:53:40 +080030 doc8 --allow-long-titles README.rst docs/
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070031
Paul Kehrer986b1902014-03-02 16:35:21 -040032[testenv:docs-linkcheck]
33deps =
34 sphinx
35basepython = python2.7
36commands =
37 sphinx-build -W -b linkcheck docs docs/_build/html
38
David Reid46cb6012013-10-31 15:53:59 -070039# Temporarily disable coverage on pypy because of performance problems with
40# coverage.py on pypy.
41[testenv:pypy]
Alex Stapletona39a3192014-03-14 20:03:12 +000042commands =
Alex Stapletona39a3192014-03-14 20:03:12 +000043 py.test --capture=no --strict {posargs}
David Reid46cb6012013-10-31 15:53:59 -070044
Alex Gaynor0f66c6d2013-08-07 12:18:02 -070045[testenv:pep8]
Alex Gaynor25693232014-03-04 15:02:33 -080046deps =
47 flake8
Alex Stapletonbafceb62014-03-22 08:50:07 +000048 flake8-import-order
Alex Stapleton89917f12014-03-22 10:18:15 +000049 pep8-naming
Alex Gaynor5b8126f2014-05-17 22:34:56 -070050commands =
51 flake8 .
Alex Gaynor967c03b2013-10-21 20:22:50 -070052
Alex Gaynorc510e492013-10-31 11:37:11 -070053[testenv:py3pep8]
Alex Gaynor7b62cca2014-05-18 12:31:59 -070054basepython = python3.3
Alex Gaynor25693232014-03-04 15:02:33 -080055deps =
56 flake8
Alex Stapletonbafceb62014-03-22 08:50:07 +000057 flake8-import-order
Alex Stapleton89917f12014-03-22 10:18:15 +000058 pep8-naming
Alex Gaynord8387832014-05-17 22:35:16 -070059commands =
60 flake8 .
Alex Gaynorc510e492013-10-31 11:37:11 -070061
Alex Gaynor967c03b2013-10-21 20:22:50 -070062[flake8]
Alex Gaynor1d805382013-10-21 20:44:52 -070063exclude = .tox,*.egg
Alex Stapletonbafceb62014-03-22 08:50:07 +000064select = E,W,F,N,I
Alex Stapleton707b0082014-04-20 22:24:41 +010065application-import-names = cryptography,cryptography_vectors,tests