From 57bf873474382cc2cb34243b704bc928fa1b64c6 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Wed, 17 Jul 2024 17:35:07 -0400 Subject: [PATCH] fix: Allow protobuf 5.x; require protobuf >=3.20.2; proto-plus >=1.22.3 (#1976) * fix: Allow protobuf 5.x; require protobuf >=3.20.2; proto-plus >=1.22.3 * Update constraints --------- Co-authored-by: Lingqing Gan --- setup.py | 4 ++-- testing/constraints-3.7.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 9641fe695..617685543 100644 --- a/setup.py +++ b/setup.py @@ -75,8 +75,8 @@ "opentelemetry-instrumentation >= 0.20b0", ], "bigquery_v2": [ - "proto-plus >= 1.22.0, <2.0.0dev", - "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", # For the legacy proto-based types. + "proto-plus >= 1.22.3, <2.0.0dev", + "protobuf>=3.20.2,<6.0.0dev,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", # For the legacy proto-based types. ], } diff --git a/testing/constraints-3.7.txt b/testing/constraints-3.7.txt index fda7ce951..55e63449f 100644 --- a/testing/constraints-3.7.txt +++ b/testing/constraints-3.7.txt @@ -26,8 +26,8 @@ opentelemetry-instrumentation==0.20b0 opentelemetry-sdk==1.1.0 packaging==20.0.0 pandas==1.1.0 -proto-plus==1.22.0 -protobuf==3.19.5 +proto-plus==1.22.3 +protobuf==3.20.2 pyarrow==3.0.0 python-dateutil==2.7.3 requests==2.21.0