Skip to content

Commit 08913ba

Browse files
authored
fix: pin protobuf to < 3.18.0 (#277)
Fixes #276. This PR is being made to the v1 branch and will be released manually in 1.31.3. Protobuf 3.18.0 removed support for Python 2.7 and 3.5 https://github.com/protocolbuffers/protobuf/releases/tag/v3.18.0. Because the protobuf library does not use python_requires, pip will try to install it even on Python 2.7. A new release of google-api-core should result in google-cloud-* library users getting the last version of protobuf they can use. The latest versions of Cloud libraries (except for google-cloud-storage) have moved on to python >= 3.6. However, users google-cloud-storage and older Cloud libraries may be impacted. Also see protocolbuffers/protobuf#8984
1 parent affedce commit 08913ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
release_status = "Development Status :: 5 - Production/Stable"
3131
dependencies = [
3232
"googleapis-common-protos >= 1.6.0, < 2.0dev",
33-
"protobuf >= 3.12.0",
33+
"protobuf >= 3.12.0, < 3.18.0",
3434
"google-auth >= 1.25.0, < 2.0dev",
3535
"requests >= 2.18.0, < 3.0.0dev",
3636
"setuptools >= 40.3.0",

0 commit comments

Comments
 (0)