22envlist =
33 py27,py34,py35,cover,docs,lint
44
5- [testenv]
6- commands =
7- nosetests
5+ [testing]
86deps =
97 nose
108 nose-exclude
119 unittest2
12- setenv =
13- PYTHONPATH = {toxinidir}/_testing
1410covercmd =
1511 nosetests \
1612 --exclude-dir =system_tests \
@@ -23,29 +19,37 @@ covercmd =
2319
2420[grpc]
2521deps =
26- grpcio >= 0.14.0
27- google-gax >= 0.12.1
28- gax-google-pubsub-v1 >= 0.7.10
29- gax-google-logging-v2 >= 0.7.10
22+ grpcio >= 1.0rc1
23+ google-gax >= 0.12.3, < 0.13dev
24+ gax-google-pubsub-v1 >= 0.7.12, < 0.8dev
25+ grpc-google-pubsub-v1 >= 0.7.12, < 0.8dev
26+ gax-google-logging-v2 >= 0.7.12, < 0.8dev
27+ grpc-google-logging-v2 >= 0.7.12, < 0.8dev
3028
31- [testenv:py27]
32- basepython =
33- python2.7
29+ [docs]
30+ deps =
31+ {[testenv]deps}
32+ Sphinx
33+ sphinx_rtd_theme
34+
35+ [testenv]
3436commands =
3537 nosetests
3638deps =
37- {[testenv ]deps}
39+ {[testing ]deps}
3840 {[grpc]deps}
41+
42+ [testenv:py26]
43+ basepython =
44+ python2.6
45+ deps =
46+ {[testing]deps}
3947setenv =
40- PYTHONPATH =
48+ PYTHONPATH = {toxinidir}/_testing
4149
4250[testenv:py27-pandas]
4351basepython =
4452 python2.7
45- commands =
46- {[testenv:py27]commands}
47- setenv =
48- {[testenv:py27]setenv}
4953deps =
5054 {[testenv]deps}
5155 pandas
@@ -54,25 +58,19 @@ deps =
5458basepython =
5559 python2.7
5660commands =
57- {[testenv ]covercmd} --cover-min-percentage =100
61+ {[testing ]covercmd} --cover-min-percentage =100
5862deps =
5963 {[testenv]deps}
60- {[grpc]deps}
6164 coverage
62- setenv =
63- PYTHONPATH =
6465
6566[testenv:coveralls]
6667basepython = {[testenv:cover]basepython}
6768commands =
68- pip install gcloud[grpc]
69- {[testenv]covercmd}
69+ {[testing]covercmd}
7070 coveralls
7171deps =
7272 {[testenv:cover]deps}
7373 coveralls
74- setenv =
75- PYTHONPATH =
7674passenv = {[testenv:system-tests]passenv}
7775
7876[testenv:codecov]
@@ -105,20 +103,22 @@ commands =
105103 sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
106104 python {toxinidir}/scripts/verify_included_modules.py
107105deps =
108- Sphinx
109- sphinx_rtd_theme
106+ {[testenv]deps}
107+ {[docs]deps}
110108passenv = {[testenv:system-tests]passenv} SPHINX_RELEASE READTHEDOCS LOCAL_RTD
111109
112110[testenv:docs-rtd]
113- setenv =
114- PYTHONPATH = {toxinidir}/_testing
115- LOCAL_RTD = True
116111basepython = {[testenv:docs]basepython}
117112commands =
118113 python -c " import shutil; shutil.rmtree('docs/_build_rtd', ignore_errors=True)"
119114 sphinx-build -W -b html -d docs/_build_rtd/doctrees docs docs/_build_rtd/html
120115 python {toxinidir}/scripts/verify_included_modules.py
121- deps = {[testenv:docs]deps}
116+ deps =
117+ {[testing]deps}
118+ {[docs]deps}
119+ setenv =
120+ PYTHONPATH = {toxinidir}/_testing
121+ LOCAL_RTD = True
122122passenv = {[testenv:docs]passenv}
123123
124124[pep8]
@@ -132,25 +132,18 @@ commands =
132132 python {toxinidir}/scripts/pycodestyle_on_repo.py
133133 python {toxinidir}/scripts/run_pylint.py
134134deps =
135+ {[testing]deps}
135136 pycodestyle
136137 pylint >= 1.6.4
137- unittest2
138- psutil
139- Sphinx
140138setenv =
141- PYTHONPATH =
139+ PYTHONPATH = {toxinidir}/_testing
142140passenv = {[testenv:system-tests]passenv}
143141
144142[testenv:system-tests]
145143basepython =
146144 python2.7
147145commands =
148146 python {toxinidir}/system_tests/attempt_system_tests.py
149- setenv =
150- PYTHONPATH =
151- deps =
152- {[testenv]deps}
153- {[grpc]deps}
154147passenv = GOOGLE_* GCLOUD_* TRAVIS* encrypted_*
155148
156149[testenv:system-tests3]
0 commit comments