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 | 9a9ce2c | 2016-10-31 14:59:52 -0700 | [diff] [blame] | 13 | requests |
Jon Wayne Parrott | a896d2a | 2016-11-02 23:42:51 -0700 | [diff] [blame^] | 14 | oauth2client |
Jon Wayne Parrott | b9897dc | 2016-11-02 20:31:14 -0700 | [diff] [blame] | 15 | grpcio; platform_python_implementation != 'PyPy' |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 16 | commands = |
| 17 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests} |
| 18 | |
| 19 | [testenv:cover] |
| 20 | basepython = python3.5 |
| 21 | commands = |
| 22 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests |
| 23 | coverage report --show-missing --fail-under=100 |
| 24 | deps = |
| 25 | {[testenv]deps} |
| 26 | |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 27 | [testenv:py35-system] |
| 28 | basepython = python3.5 |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 29 | changedir = {toxinidir}/system_tests |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 30 | commands = |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 31 | nox {posargs} |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 32 | deps = |
| 33 | {[testenv]deps} |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 34 | nox-automation |
Jon Wayne Parrott | b9897dc | 2016-11-02 20:31:14 -0700 | [diff] [blame] | 35 | gapic-google-pubsub-v1==0.11.1 |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame] | 36 | passenv = |
| 37 | SKIP_APP_ENGINE_SYSTEM_TEST |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 38 | CLOUD_SDK_ROOT |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 39 | |
| 40 | [testenv:py27-system] |
| 41 | basepython = python2.7 |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 42 | changedir = {toxinidir}/system_tests |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 43 | commands = |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 44 | nox {posargs} |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 45 | deps = |
| 46 | {[testenv]deps} |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 47 | nox-automation |
Jon Wayne Parrott | b9897dc | 2016-11-02 20:31:14 -0700 | [diff] [blame] | 48 | gapic-google-pubsub-v1==0.11.1 |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame] | 49 | passenv = |
| 50 | SKIP_APP_ENGINE_SYSTEM_TEST |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 51 | CLOUD_SDK_ROOT |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 52 | |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 53 | [testenv:docgen] |
| 54 | basepython = python3.5 |
| 55 | deps = |
| 56 | {[testenv]deps} |
| 57 | sphinx |
Jon Wayne Parrott | 55e0a3b | 2016-10-14 13:55:55 -0700 | [diff] [blame] | 58 | setenv = |
| 59 | SPHINX_APIDOC_OPTIONS=members,inherited-members,show-inheritance |
Jon Wayne Parrott | 8713a71 | 2016-10-04 14:19:01 -0700 | [diff] [blame] | 60 | commands = |
| 61 | rm -r docs/reference |
| 62 | sphinx-apidoc --output-dir docs/reference --separate --module-first google |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 63 | |
| 64 | [testenv:docs] |
| 65 | basepython = python3.5 |
| 66 | deps = |
| 67 | {[testenv]deps} |
| 68 | sphinx |
Jon Wayne Parrott | a60ab7f | 2016-10-13 10:52:04 -0700 | [diff] [blame] | 69 | -r{toxinidir}/docs/requirements-docs.txt |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 70 | commands = make -C docs html |
| 71 | |
| 72 | [testenv:lint] |
| 73 | basepython = python3.5 |
| 74 | commands = |
Jon Wayne Parrott | 246df81 | 2016-10-21 14:31:06 -0700 | [diff] [blame] | 75 | python setup.py check --metadata --restructuredtext --strict |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 76 | flake8 \ |
| 77 | --import-order-style=google \ |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 78 | --application-import-names="google,tests,system_tests" \ |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 79 | google tests |
Danny Hermes | 9779181 | 2016-11-01 12:43:01 -0700 | [diff] [blame] | 80 | python {toxinidir}/scripts/run_pylint.py |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 81 | deps = |
| 82 | flake8 |
| 83 | flake8-import-order |
| 84 | pylint |
Jon Wayne Parrott | 246df81 | 2016-10-21 14:31:06 -0700 | [diff] [blame] | 85 | docutils |