Skip to content

Commit 363bad1

Browse files
committed
Adding grpcio to setup.py.
grpcio can only be installed with Python 2.7, so the py27 tox environment is the only one that doesn't need to run without mocks.
1 parent 944b27e commit 363bad1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
2+
import sys
33

44
from setuptools import setup
55
from setuptools import find_packages
@@ -19,6 +19,8 @@
1919
'pyOpenSSL',
2020
'six',
2121
]
22+
if sys.version_info[:2] == (2, 7):
23+
REQUIREMENTS.append('grpcio >= 0.13.0')
2224

2325
setup(
2426
name='gcloud',

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ covercmd =
2121
--cover-branches \
2222
--nocapture
2323

24+
[testenv:py27]
25+
basepython =
26+
python2.7
27+
setenv =
28+
PYTHONPATH =
29+
2430
[testenv:cover]
2531
basepython =
2632
python2.7

0 commit comments

Comments
 (0)