Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 1 | [tox] |
Jon Wayne Parrott | 3459d31 | 2017-02-24 09:39:22 -0800 | [diff] [blame] | 2 | envlist = lint,py27,py34,py35,py36,pypy,cover |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 3 | |
| 4 | [testenv] |
| 5 | deps = |
Jon Wayne Parrott | 41a2bba | 2017-03-22 13:43:48 -0700 | [diff] [blame^] | 6 | certifi |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 7 | flask |
| 8 | mock |
Jon Wayne Parrott | 41a2bba | 2017-03-22 13:43:48 -0700 | [diff] [blame^] | 9 | oauth2client |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 10 | pytest |
| 11 | pytest-cov |
| 12 | pytest-localserver |
Jon Wayne Parrott | 9a9ce2c | 2016-10-31 14:59:52 -0700 | [diff] [blame] | 13 | requests |
Jon Wayne Parrott | 4382bc1 | 2017-01-10 13:35:51 -0800 | [diff] [blame] | 14 | requests-oauthlib |
Jon Wayne Parrott | 41a2bba | 2017-03-22 13:43:48 -0700 | [diff] [blame^] | 15 | urllib3 |
Jon Wayne Parrott | b9897dc | 2016-11-02 20:31:14 -0700 | [diff] [blame] | 16 | grpcio; platform_python_implementation != 'PyPy' |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 17 | commands = |
| 18 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests} |
| 19 | |
| 20 | [testenv:cover] |
Jon Wayne Parrott | 3459d31 | 2017-02-24 09:39:22 -0800 | [diff] [blame] | 21 | basepython = python3.6 |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 22 | commands = |
| 23 | py.test --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests |
| 24 | coverage report --show-missing --fail-under=100 |
| 25 | deps = |
| 26 | {[testenv]deps} |
| 27 | |
Jon Wayne Parrott | 3459d31 | 2017-02-24 09:39:22 -0800 | [diff] [blame] | 28 | [testenv:py36-system] |
| 29 | basepython = python3.6 |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 30 | changedir = {toxinidir}/system_tests |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 31 | commands = |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 32 | nox {posargs} |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 33 | deps = |
| 34 | {[testenv]deps} |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 35 | nox-automation |
Jon Wayne Parrott | a209819 | 2017-02-22 09:27:32 -0800 | [diff] [blame] | 36 | gapic-google-cloud-pubsub-v1==0.15.0 |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame] | 37 | passenv = |
| 38 | SKIP_APP_ENGINE_SYSTEM_TEST |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 39 | CLOUD_SDK_ROOT |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 40 | |
| 41 | [testenv:py27-system] |
| 42 | basepython = python2.7 |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 43 | changedir = {toxinidir}/system_tests |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 44 | commands = |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 45 | nox {posargs} |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 46 | deps = |
| 47 | {[testenv]deps} |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 48 | nox-automation |
Jon Wayne Parrott | a209819 | 2017-02-22 09:27:32 -0800 | [diff] [blame] | 49 | gapic-google-cloud-pubsub-v1==0.15.0 |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame] | 50 | passenv = |
| 51 | SKIP_APP_ENGINE_SYSTEM_TEST |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 52 | CLOUD_SDK_ROOT |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 53 | |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 54 | [testenv:docgen] |
Jon Wayne Parrott | 3459d31 | 2017-02-24 09:39:22 -0800 | [diff] [blame] | 55 | basepython = python3.6 |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 56 | deps = |
| 57 | {[testenv]deps} |
| 58 | sphinx |
Jon Wayne Parrott | 55e0a3b | 2016-10-14 13:55:55 -0700 | [diff] [blame] | 59 | setenv = |
| 60 | SPHINX_APIDOC_OPTIONS=members,inherited-members,show-inheritance |
Jon Wayne Parrott | 8713a71 | 2016-10-04 14:19:01 -0700 | [diff] [blame] | 61 | commands = |
| 62 | rm -r docs/reference |
| 63 | sphinx-apidoc --output-dir docs/reference --separate --module-first google |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 64 | |
| 65 | [testenv:docs] |
Jon Wayne Parrott | 3459d31 | 2017-02-24 09:39:22 -0800 | [diff] [blame] | 66 | basepython = python3.6 |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 67 | deps = |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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] |
Jon Wayne Parrott | 159077f | 2016-12-14 12:56:44 -0800 | [diff] [blame] | 73 | basepython = python3.5 |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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 |
Jon Wayne Parrott | 06a27e8 | 2017-03-22 12:59:41 -0700 | [diff] [blame] | 80 | python {toxinidir}/scripts/run_pylint.py \ |
| 81 | --library-filesets google \ |
| 82 | --test-filesets tests system_tests |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 83 | deps = |
| 84 | flake8 |
| 85 | flake8-import-order |
| 86 | pylint |
Jon Wayne Parrott | 246df81 | 2016-10-21 14:31:06 -0700 | [diff] [blame] | 87 | docutils |