Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 1 | [tox] |
Paul Kehrer | 710f614 | 2014-03-17 07:34:02 -0400 | [diff] [blame] | 2 | envlist = py26,py27,pypy,py32,py33,py34,docs,pep8,py3pep8 |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 3 | |
| 4 | [testenv] |
Paul Kehrer | 7ad18bc | 2014-03-26 13:13:38 -0600 | [diff] [blame] | 5 | # If you add a new dep here you probably need to add it in setup.py as well |
Alex Gaynor | 83a0f48 | 2013-08-10 15:48:57 -0400 | [diff] [blame] | 6 | deps = |
Alex Gaynor | ff61cd3 | 2013-10-03 09:52:08 -0700 | [diff] [blame] | 7 | coverage |
Alex Gaynor | fb8adfc | 2013-10-31 14:16:24 -0700 | [diff] [blame] | 8 | iso8601 |
Alex Gaynor | 83a0f48 | 2013-08-10 15:48:57 -0400 | [diff] [blame] | 9 | pretend |
Alex Gaynor | fb8adfc | 2013-10-31 14:16:24 -0700 | [diff] [blame] | 10 | pytest |
Alex Stapleton | 3888a84 | 2014-03-24 23:05:53 +0000 | [diff] [blame] | 11 | ./vectors |
Alex Gaynor | ff61cd3 | 2013-10-03 09:52:08 -0700 | [diff] [blame] | 12 | commands = |
Paul Kehrer | c1fd2be | 2014-01-13 21:55:12 -0500 | [diff] [blame] | 13 | coverage run --source=cryptography/,tests/ -m pytest --capture=no --strict {posargs} |
Alex Gaynor | 3e81fb2 | 2013-11-05 16:29:19 -0800 | [diff] [blame] | 14 | coverage report -m |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 15 | |
| 16 | [testenv:docs] |
Alex Gaynor | 13ec479 | 2013-11-08 14:09:21 -0800 | [diff] [blame] | 17 | deps = |
Alex Gaynor | 29b40ea | 2014-01-10 09:00:12 -0800 | [diff] [blame] | 18 | pyenchant |
Alex Gaynor | 13ec479 | 2013-11-08 14:09:21 -0800 | [diff] [blame] | 19 | sphinx |
| 20 | sphinx_rtd_theme |
Alex Stapleton | 89917f1 | 2014-03-22 10:18:15 +0000 | [diff] [blame] | 21 | sphinxcontrib-spelling |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 22 | basepython = python2.7 |
Donald Stufft | 235fa71 | 2013-08-11 17:47:17 -0400 | [diff] [blame] | 23 | commands = |
| 24 | sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html |
Alex Gaynor | 960cf5e | 2013-12-15 10:24:35 -0800 | [diff] [blame] | 25 | sphinx-build -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex |
Donald Stufft | 235fa71 | 2013-08-11 17:47:17 -0400 | [diff] [blame] | 26 | sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html |
Alex Gaynor | fc4e2b7 | 2014-01-10 07:30:51 -0800 | [diff] [blame] | 27 | sphinx-build -W -b spelling docs docs/_build/html |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 28 | |
Paul Kehrer | 986b190 | 2014-03-02 16:35:21 -0400 | [diff] [blame] | 29 | [testenv:docs-linkcheck] |
| 30 | deps = |
| 31 | sphinx |
| 32 | basepython = python2.7 |
| 33 | commands = |
| 34 | sphinx-build -W -b linkcheck docs docs/_build/html |
| 35 | |
David Reid | 46cb601 | 2013-10-31 15:53:59 -0700 | [diff] [blame] | 36 | # Temporarily disable coverage on pypy because of performance problems with |
| 37 | # coverage.py on pypy. |
| 38 | [testenv:pypy] |
Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 39 | commands = |
Alex Stapleton | a39a319 | 2014-03-14 20:03:12 +0000 | [diff] [blame] | 40 | py.test --capture=no --strict {posargs} |
David Reid | 46cb601 | 2013-10-31 15:53:59 -0700 | [diff] [blame] | 41 | |
Alex Gaynor | 0f66c6d | 2013-08-07 12:18:02 -0700 | [diff] [blame] | 42 | [testenv:pep8] |
Alex Gaynor | 2569323 | 2014-03-04 15:02:33 -0800 | [diff] [blame] | 43 | deps = |
| 44 | flake8 |
Alex Stapleton | bafceb6 | 2014-03-22 08:50:07 +0000 | [diff] [blame] | 45 | flake8-import-order |
Alex Stapleton | 89917f1 | 2014-03-22 10:18:15 +0000 | [diff] [blame] | 46 | pep8-naming |
Alex Gaynor | afdddca | 2013-10-21 21:00:20 -0700 | [diff] [blame] | 47 | commands = flake8 . |
Alex Gaynor | 967c03b | 2013-10-21 20:22:50 -0700 | [diff] [blame] | 48 | |
Alex Gaynor | c510e49 | 2013-10-31 11:37:11 -0700 | [diff] [blame] | 49 | [testenv:py3pep8] |
| 50 | basepython = python3.3 |
Alex Gaynor | 2569323 | 2014-03-04 15:02:33 -0800 | [diff] [blame] | 51 | deps = |
| 52 | flake8 |
Alex Stapleton | bafceb6 | 2014-03-22 08:50:07 +0000 | [diff] [blame] | 53 | flake8-import-order |
Alex Stapleton | 89917f1 | 2014-03-22 10:18:15 +0000 | [diff] [blame] | 54 | pep8-naming |
Alex Gaynor | c510e49 | 2013-10-31 11:37:11 -0700 | [diff] [blame] | 55 | commands = flake8 . |
| 56 | |
Alex Gaynor | 967c03b | 2013-10-21 20:22:50 -0700 | [diff] [blame] | 57 | [flake8] |
Alex Gaynor | 1d80538 | 2013-10-21 20:44:52 -0700 | [diff] [blame] | 58 | exclude = .tox,*.egg |
Alex Stapleton | bafceb6 | 2014-03-22 08:50:07 +0000 | [diff] [blame] | 59 | select = E,W,F,N,I |
Alex Stapleton | 707b008 | 2014-04-20 22:24:41 +0100 | [diff] [blame] | 60 | application-import-names = cryptography,cryptography_vectors,tests |