Skip to content

Commit 242853b

Browse files
authored
Update GRPCIO version for Python 3.8 and higher. (#1294)
* revert updated lib versions * updating fix for python3.7 * updating fix for python3.7 * reverting fix for python3.7 * update
1 parent a8a4d42 commit 242853b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

setup.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,18 @@
107107

108108
INSTALL_REQUIRES = [
109109
"azure-functions==1.15.1b2",
110-
"python-dateutil~=2.8.2",
111-
"protobuf~=4.22.0",
112-
"grpcio-tools~=1.54.2",
113-
"grpcio~=1.54.2"
110+
"python-dateutil~=2.8.2"
114111
]
115112

113+
if sys.version_info[:2] == (3, 7):
114+
INSTALL_REQUIRES.extend(
115+
("protobuf~=3.19.3", "grpcio-tools~=1.43.0", "grpcio~=1.43.0")
116+
)
117+
else:
118+
INSTALL_REQUIRES.extend(
119+
("protobuf~=4.22.0", "grpcio-tools~=1.54.2", "grpcio~=1.54.2")
120+
)
121+
116122
EXTRA_REQUIRES = {
117123
"dev": [
118124
"azure-eventhub~=5.7.0", # Used for EventHub E2E tests

0 commit comments

Comments
 (0)