Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 1 | [tox] |
| 2 | envlist = lint,py27,py34,py35,pypy,cover |
| 3 | |
| 4 | [testenv] |
| 5 | deps = |
| 6 | flask |
| 7 | mock |
| 8 | pytest |
| 9 | pytest-cov |
| 10 | pytest-localserver |
| 11 | urllib3 |
Jon Wayne Parrott | 27f6e1e | 2016-10-13 09:46:49 -0700 | [diff] [blame] | 12 | certifi |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 13 | commands = |
| 14 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests} |
| 15 | |
| 16 | [testenv:cover] |
| 17 | basepython = python3.5 |
| 18 | commands = |
| 19 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests |
| 20 | coverage report --show-missing --fail-under=100 |
| 21 | deps = |
| 22 | {[testenv]deps} |
| 23 | |
| 24 | [testenv:docgen] |
| 25 | basepython = python3.5 |
| 26 | deps = |
| 27 | {[testenv]deps} |
| 28 | sphinx |
Jon Wayne Parrott | 55e0a3b | 2016-10-14 13:55:55 -0700 | [diff] [blame^] | 29 | setenv = |
| 30 | SPHINX_APIDOC_OPTIONS=members,inherited-members,show-inheritance |
Jon Wayne Parrott | 8713a71 | 2016-10-04 14:19:01 -0700 | [diff] [blame] | 31 | commands = |
| 32 | rm -r docs/reference |
| 33 | sphinx-apidoc --output-dir docs/reference --separate --module-first google |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 34 | |
| 35 | [testenv:docs] |
| 36 | basepython = python3.5 |
| 37 | deps = |
| 38 | {[testenv]deps} |
| 39 | sphinx |
Jon Wayne Parrott | a60ab7f | 2016-10-13 10:52:04 -0700 | [diff] [blame] | 40 | -r{toxinidir}/docs/requirements-docs.txt |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 41 | commands = make -C docs html |
| 42 | |
| 43 | [testenv:lint] |
| 44 | basepython = python3.5 |
| 45 | commands = |
| 46 | flake8 \ |
| 47 | --import-order-style=google \ |
| 48 | --application-import-names="google,tests" \ |
| 49 | google tests |
| 50 | pylint --rcfile pylintrc google |
| 51 | pylint --rcfile pylintrc.tests tests |
| 52 | deps = |
| 53 | flake8 |
| 54 | flake8-import-order |
| 55 | pylint |