Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 1 | [tox] |
Teddy Sudol | a10b15e | 2018-10-05 10:20:33 -0700 | [diff] [blame] | 2 | envlist = lint,py27,py34,py35,py36,pypy,cover,pytype |
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 |
Tomáš Chvátal | 938e5d9 | 2019-07-26 01:20:41 +0200 | [diff] [blame] | 10 | pytest |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 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 |
Danny Hermes | 1cd8390 | 2018-02-08 15:41:51 -0800 | [diff] [blame] | 16 | cryptography |
Jon Wayne Parrott | b9897dc | 2016-11-02 20:31:14 -0700 | [diff] [blame] | 17 | grpcio; platform_python_implementation != 'PyPy' |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 18 | commands = |
Ville Skyttä | 839d468 | 2018-05-14 04:39:10 +0200 | [diff] [blame] | 19 | pytest --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests} |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 20 | |
| 21 | [testenv:cover] |
Jon Wayne Parrott | 3459d31 | 2017-02-24 09:39:22 -0800 | [diff] [blame] | 22 | basepython = python3.6 |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 23 | commands = |
Ville Skyttä | 839d468 | 2018-05-14 04:39:10 +0200 | [diff] [blame] | 24 | pytest --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 25 | coverage report --show-missing --fail-under=100 |
| 26 | deps = |
| 27 | {[testenv]deps} |
| 28 | |
Jon Wayne Parrott | 3459d31 | 2017-02-24 09:39:22 -0800 | [diff] [blame] | 29 | [testenv:py36-system] |
| 30 | basepython = python3.6 |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 31 | changedir = {toxinidir}/system_tests |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 32 | commands = |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 33 | nox {posargs} |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 34 | deps = |
| 35 | {[testenv]deps} |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 36 | nox-automation |
Jon Wayne Parrott | a209819 | 2017-02-22 09:27:32 -0800 | [diff] [blame] | 37 | gapic-google-cloud-pubsub-v1==0.15.0 |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame] | 38 | passenv = |
| 39 | SKIP_APP_ENGINE_SYSTEM_TEST |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 40 | CLOUD_SDK_ROOT |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 41 | |
| 42 | [testenv:py27-system] |
| 43 | basepython = python2.7 |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 44 | changedir = {toxinidir}/system_tests |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 45 | commands = |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 46 | nox {posargs} |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 47 | deps = |
| 48 | {[testenv]deps} |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 49 | nox-automation |
Jon Wayne Parrott | a209819 | 2017-02-22 09:27:32 -0800 | [diff] [blame] | 50 | gapic-google-cloud-pubsub-v1==0.15.0 |
Jon Wayne Parrott | 7a27f47 | 2016-10-27 13:25:59 -0700 | [diff] [blame] | 51 | passenv = |
| 52 | SKIP_APP_ENGINE_SYSTEM_TEST |
Jon Wayne Parrott | bbc3943 | 2016-10-27 23:12:39 -0700 | [diff] [blame] | 53 | CLOUD_SDK_ROOT |
Jon Wayne Parrott | 447c5be | 2016-10-25 09:32:25 -0700 | [diff] [blame] | 54 | |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 55 | [testenv:docgen] |
Jon Wayne Parrott | 3459d31 | 2017-02-24 09:39:22 -0800 | [diff] [blame] | 56 | basepython = python3.6 |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 57 | deps = |
| 58 | {[testenv]deps} |
| 59 | sphinx |
Jon Wayne Parrott | 55e0a3b | 2016-10-14 13:55:55 -0700 | [diff] [blame] | 60 | setenv = |
| 61 | SPHINX_APIDOC_OPTIONS=members,inherited-members,show-inheritance |
Jon Wayne Parrott | 8713a71 | 2016-10-04 14:19:01 -0700 | [diff] [blame] | 62 | commands = |
| 63 | rm -r docs/reference |
| 64 | sphinx-apidoc --output-dir docs/reference --separate --module-first google |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 65 | |
| 66 | [testenv:docs] |
Jon Wayne Parrott | 3459d31 | 2017-02-24 09:39:22 -0800 | [diff] [blame] | 67 | basepython = python3.6 |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 68 | deps = |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 69 | sphinx |
Jon Wayne Parrott | a60ab7f | 2016-10-13 10:52:04 -0700 | [diff] [blame] | 70 | -r{toxinidir}/docs/requirements-docs.txt |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 71 | commands = make -C docs html |
| 72 | |
| 73 | [testenv:lint] |
Jon Wayne Parrott | 6d33993 | 2018-01-09 10:41:11 -0800 | [diff] [blame] | 74 | basepython = python3.6 |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 75 | commands = |
| 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 | 6d33993 | 2018-01-09 10:41:11 -0800 | [diff] [blame] | 80 | python setup.py check --metadata --restructuredtext --strict |
Jon Wayne Parrott | 377f293 | 2016-10-04 10:20:36 -0700 | [diff] [blame] | 81 | deps = |
| 82 | flake8 |
| 83 | flake8-import-order |
Jon Wayne Parrott | 246df81 | 2016-10-21 14:31:06 -0700 | [diff] [blame] | 84 | docutils |
Teddy Sudol | a10b15e | 2018-10-05 10:20:33 -0700 | [diff] [blame] | 85 | |
| 86 | [testenv:pytype] |
| 87 | basepython = python3.6 |
| 88 | commands = |
| 89 | pytype |
| 90 | deps = |
| 91 | {[testenv]deps} |
| 92 | pytype |