From 2f743d35deeb96e72074131b9b54baf8f2c8634b Mon Sep 17 00:00:00 2001 From: Hazem Elmeleegy Date: Tue, 12 May 2026 11:53:20 -0700 Subject: [PATCH] NOSNOW: Tighten snowflake-connector-python upper bound to <5.0.0a0 --- CHANGELOG.md | 4 ++++ ci/snyk/requirements.txt | 2 +- recipe/meta.yaml | 2 +- setup.py | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ff3650e9f..4ed8590788 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ### Snowpark Python API Updates +#### Dependency Updates + +- Tightened the upper bound of the `snowflake-connector-python` dependency from `<5.0.0` to `<5.0.0a0` so that pre-release versions (e.g. `5.0.0b1`) are excluded under both pip and conda resolvers. Without the explicit `a0` suffix, conda orders `5.0.0b1` as less than `5.0.0` and treats it as satisfying `<5.0.0`, which allowed beta connector releases to be selected from the Anaconda channel. + #### New Features #### Bug Fixes diff --git a/ci/snyk/requirements.txt b/ci/snyk/requirements.txt index 7220d1b352..2251d3dd49 100644 --- a/ci/snyk/requirements.txt +++ b/ci/snyk/requirements.txt @@ -1,5 +1,5 @@ setuptools>=40.6.0 wheel cloudpickle>=1.6.0,<=3.1.1,!=2.1.0,!=2.2.0 -snowflake-connector-python>=4.0.0,<5.0.0 +snowflake-connector-python>=4.0.0,<5.0.0a0 typing-extensions>=4.1.0,<5.0.0 diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 6c62dc92f6..0ef501da07 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -60,7 +60,7 @@ requirements: - python {% endif %} - cloudpickle >=1.6.0,<=3.1.1,!=2.1.0,!=2.2.0 - - snowflake-connector-python >=3.17.0,<5.0.0 + - snowflake-connector-python >=3.17.0,<5.0.0a0 - typing-extensions >=4.1.0,<5.0.0 # need to pin libffi because of problems in cryptography. # This might no longer hold true but keep it just to avoid it from biting us again diff --git a/setup.py b/setup.py index a3e3699e8f..887f635d12 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ # Snowpark pandas requires modin 0.36.x or 0.37.x, which are compatible with pandas # 2.2.x or 2.3.x MODIN_DEPENDENCY_VERSION = ">=0.36.0, <0.38.0" -CONNECTOR_DEPENDENCY_VERSION = ">=3.17.0, <5.0.0" +CONNECTOR_DEPENDENCY_VERSION = ">=3.17.0, <5.0.0a0" CONNECTOR_DEPENDENCY = f"snowflake-connector-python{CONNECTOR_DEPENDENCY_VERSION}" INSTALL_REQ_LIST = [ "setuptools>=40.6.0",