From c79a6141b0ac8a1a13c66bbdb25cc715692efd21 Mon Sep 17 00:00:00 2001 From: Andong Zhan Date: Mon, 4 Nov 2024 16:44:01 -0800 Subject: [PATCH] SNOW-1491199 update protobuf version requirement (#2556) 1. Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR. Fixes SNOW-1491199 2. Fill out the following pre-review checklist: - [ ] I am adding a new automated test(s) to verify correctness of my new code - [ ] If this test skips Local Testing mode, I'm requesting review from @snowflakedb/local-testing - [ ] I am adding new logging messages - [ ] I am adding a new telemetry message - [ ] I am adding new credentials - [ ] I am adding a new dependency - [ ] If this is a new feature/behavior, I'm adding the Local Testing parity changes. - [ ] I acknowledge that I have ensured my changes to be thread-safe. Follow the link for more information: [Thread-safe Developer Guidelines](https://docs.google.com/document/d/162d_i4zZ2AfcGRXojj0jByt8EUq-DrSHPPnTa4QvwbA/edit#bookmark=id.e82u4nekq80k) 3. Please describe how your code solves the related issue. Please write a short description of how your code change solves the related issue. Make sure protobuf version compatible with streamlit and snowbook. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fc2097c46e0..9b96156df44 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,8 @@ "pyyaml", "cloudpickle>=1.6.0,<=2.2.1,!=2.1.0,!=2.2.0;python_version<'3.11'", "cloudpickle==2.2.1;python_version~='3.11'", # backend only supports cloudpickle 2.2.1 + python 3.11 at the moment - "protobuf>=5.28", # Snowpark IR + # `protoc` < 3.20 is not able to generate protobuf code compatible with protobuf >= 3.20. + "protobuf>=3.20, <6", # Snowpark IR "tzlocal", # Snowpark IR ] REQUIRED_PYTHON_VERSION = ">=3.8, <3.12"