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