From afb675c767957b1e5564e647e308c76fc530490d Mon Sep 17 00:00:00 2001 From: Quigley Malcolm Date: Thu, 29 Feb 2024 10:42:19 -0800 Subject: [PATCH] Restrict protobuf to 4.* versions (#9630) (#9708) Protobuf v5 has breaking changes. Here we are limiting the protobuf dependency to one major version, 4, so that we don't have to patch over handling 2 different major versions of protobuf. --- .changes/unreleased/Dependencies-20240222-102947.yaml | 6 ++++++ core/setup.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Dependencies-20240222-102947.yaml diff --git a/.changes/unreleased/Dependencies-20240222-102947.yaml b/.changes/unreleased/Dependencies-20240222-102947.yaml new file mode 100644 index 00000000000..9c21d51e21e --- /dev/null +++ b/.changes/unreleased/Dependencies-20240222-102947.yaml @@ -0,0 +1,6 @@ +kind: Dependencies +body: Restrict protobuf to 4.* versions +time: 2024-02-22T10:29:47.595435-08:00 +custom: + Author: QMalcolm + PR: "9566" diff --git a/core/setup.py b/core/setup.py index aedf739bfff..2302927032a 100644 --- a/core/setup.py +++ b/core/setup.py @@ -64,7 +64,7 @@ "typing-extensions>=3.7.4", "werkzeug>=1,<3", "pathspec>=0.9,<0.12", - "protobuf>=4.0.0", + "protobuf>=4.0.0,<5", "pytz>=2015.7", # the following are all to match snowflake-connector-python "requests<3.0.0",