Skip to content

Commit 6113bd9

Browse files
committed
Add a pin for protobuf
1 parent 45f232f commit 6113bd9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

environment_unix.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies:
2828
- cyrus-sasl
2929
- aws-sdk-cpp >=1.11.405
3030
- prometheus-cpp
31-
- libprotobuf
31+
- libprotobuf <6
3232
- openssl
3333
- libcurl
3434
- bitmagic

python/arcticc/pb2/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import google.protobuf as _protobuf
44

55
_proto_ver = _protobuf.__version__.split(".")[0]
6-
if _proto_ver in "3456":
6+
if _proto_ver in "345":
77

88
_python = _sys.version_info[:2]
99
if _python >= (3, 11) and _proto_ver == "3":
@@ -32,4 +32,4 @@
3232
)
3333
__path__.append(_protos_path)
3434
else:
35-
raise NotImplementedError(f"We only support protobuf versions 3, 4, 5 and 6. You have {_protobuf.__version__}")
35+
raise NotImplementedError(f"We only support protobuf versions 3, 4 & 5. You have {_protobuf.__version__}")

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ install_requires =
3838
pandas
3939
attrs
4040
dataclasses ; python_version < '3.7'
41-
protobuf >=3.5.0.post1 # Per https://github.com/grpc/grpc/blob/v1.45.3/requirements.txt
41+
protobuf >=3.5.0.post1, < 6 # Per https://github.com/grpc/grpc/blob/v1.45.3/requirements.txt
4242
msgpack >=0.5.0 # msgpack 0.5.0 is required for strict_types argument, needed for correct pickling fallback
4343
pyyaml
4444
packaging

0 commit comments

Comments
 (0)