Skip to content

Commit 6027606

Browse files
SNOW-2464939 Update snowflake-snowpark-python version to 1.41.0 (#2672)
* Update snowflake-snowpark-python version to 1.40.0 * properly bump snowpark version * update snowpark to 1.41.0 * update connector to 4.0.0 * Use python driver 3.18 * Remove skipping test as Snowpark works with Python 3.12
1 parent 0882c3d commit 6027606

File tree

6 files changed

+11
-32
lines changed

6 files changed

+11
-32
lines changed

pylock.toml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd039706778
221221
[[packages]]
222222
name = "cloudpickle"
223223
version = "3.0.0"
224-
marker = "python_full_version < '3.12'"
225224
sdist = { url = "https://files.pythonhosted.org/packages/c8/72/42a6570fc61b1f8913529728ad314c7cf5961540728dcad22c33fb2db6b6/cloudpickle-3.0.0.tar.gz", upload-time = 2023-10-16T12:51:26Z, size = 21231, hashes = { sha256 = "996d9a482c6fb4f33c1a35335cf8afd065d2a56e973270364840712d9131a882" } }
226225
wheels = [{ url = "https://files.pythonhosted.org/packages/96/43/dae06432d0c4b1dc9e9149ad37b4ca8384cf6eb7700cd9215b177b914f0a/cloudpickle-3.0.0-py3-none-any.whl", upload-time = 2023-10-16T12:51:24Z, size = 20088, hashes = { sha256 = "246ee7d0c295602a036e86369c77fecda4ab17b506496730f2f576d9016fd9c7" } }]
227226

@@ -473,7 +472,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/ce/4f/5249960887b1fbe
473472
[[packages]]
474473
name = "protobuf"
475474
version = "5.29.5"
476-
marker = "python_full_version < '3.12'"
477475
sdist = { url = "https://files.pythonhosted.org/packages/43/29/d09e70352e4e88c9c7a198d5645d7277811448d76c23b00345670f7c8a38/protobuf-5.29.5.tar.gz", upload-time = 2025-05-28T23:51:59Z, size = 425226, hashes = { sha256 = "bc1463bafd4b0929216c35f437a8e28731a2b7fe3d98bb77a600efced5a15c84" } }
478476
wheels = [
479477
{ url = "https://files.pythonhosted.org/packages/5f/11/6e40e9fc5bba02988a214c07cf324595789ca7820160bfd1f8be96e48539/protobuf-5.29.5-cp310-abi3-win32.whl", upload-time = 2025-05-28T23:51:41Z, size = 422963, hashes = { sha256 = "3f1c6468a2cfd102ff4703976138844f78ebd1fb45f49011afc5139e9e283079" } },
@@ -796,10 +794,9 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/c9/40/a08e639e8215a8c
796794

797795
[[packages]]
798796
name = "snowflake-snowpark-python"
799-
version = "1.33.0"
800-
marker = "python_full_version < '3.12'"
801-
sdist = { url = "https://files.pythonhosted.org/packages/a7/ad/0d5f19532fd9435ae4435add27b47f8dbad054dac80fdb6824fbdc2143cf/snowflake_snowpark_python-1.33.0.tar.gz", upload-time = 2025-06-19T16:30:17Z, size = 1609407, hashes = { sha256 = "72eb074f5caf2aa129342a7bb35d5f4525689fee3e72064df843b713859e5720" } }
802-
wheels = [{ url = "https://files.pythonhosted.org/packages/74/01/dcf6115a397302e4eaa2dbdb47c1cf61a5190721c798073e11c7ebb5f048/snowflake_snowpark_python-1.33.0-py3-none-any.whl", upload-time = 2025-06-19T16:30:15Z, size = 1665564, hashes = { sha256 = "02478a5dc4bb6ea1946ffbb0a21f7fc7a021f6b5884fbe6a1c5d774c2e0612c7" } }]
797+
version = "1.41.0"
798+
sdist = { url = "https://files.pythonhosted.org/packages/f3/3c/cc3a4b4c02aa080dc13ec47f4069cfe08557f67f33f9cd772b42dc317175/snowflake_snowpark_python-1.41.0.tar.gz", upload-time = 2025-10-23T20:48:06Z, size = 1781618, hashes = { sha256 = "19c90354eb103c37c6502e5b880b47235db6abb0fac1910c022aa98740331785" } }
799+
wheels = [{ url = "https://files.pythonhosted.org/packages/13/a2/7e6a9f6a8a46e672f2129e2dcb091ca1d661773a5e069a2402323e2c4788/snowflake_snowpark_python-1.41.0-py3-none-any.whl", upload-time = 2025-10-23T20:48:05Z, size = 1825526, hashes = { sha256 = "8897937bae16d16d06c216c5835907a2aff711d20f82288233ad0700c1c278e7" } }]
803800

804801
[[packages]]
805802
name = "sortedcontainers"
@@ -834,14 +831,13 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/17/69/cd203477f944c35
834831
[[packages]]
835832
name = "tzdata"
836833
version = "2025.2"
837-
marker = "python_full_version < '3.12' and sys_platform == 'win32'"
834+
marker = "sys_platform == 'win32'"
838835
sdist = { url = "https://files.pythonhosted.org/packages/95/32/1a225d6164441be760d75c2c42e2780dc0873fe382da3e98a2e1e48361e5/tzdata-2025.2.tar.gz", upload-time = 2025-03-23T13:54:43Z, size = 196380, hashes = { sha256 = "b60a638fcc0daffadf82fe0f57e53d06bdec2f36c4df66280ae79bce6bd6f2b9" } }
839836
wheels = [{ url = "https://files.pythonhosted.org/packages/5c/23/c7abc0ca0a1526a0774eca151daeb8de62ec457e77262b66b359c3c7679e/tzdata-2025.2-py2.py3-none-any.whl", upload-time = 2025-03-23T13:54:41Z, size = 347839, hashes = { sha256 = "1a403fada01ff9221ca8044d701868fa132215d84beb92242d9acd2147f667a8" } }]
840837

841838
[[packages]]
842839
name = "tzlocal"
843840
version = "5.3.1"
844-
marker = "python_full_version < '3.12'"
845841
sdist = { url = "https://files.pythonhosted.org/packages/8b/2e/c14812d3d4d9cd1773c6be938f89e5735a1f11a9f184ac3639b93cef35d5/tzlocal-5.3.1.tar.gz", upload-time = 2025-03-05T21:17:41Z, size = 30761, hashes = { sha256 = "cceffc7edecefea1f595541dbd6e990cb1ea3d19bf01b2809f362a03dd7921fd" } }
846842
wheels = [{ url = "https://files.pythonhosted.org/packages/c2/14/e2a54fabd4f08cd7af1c07030603c3356b74da07f7cc056e600436edfa17/tzlocal-5.3.1-py3-none-any.whl", upload-time = 2025-03-05T21:17:39Z, size = 18026, hashes = { sha256 = "eb1a66c3ef5847adf7a834f1be0800581b683b5608e74f86ecbcef8ab91bb85d" } }]
847843

@@ -860,7 +856,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/fd/84/fd2ba7aafacbad3
860856
[[packages]]
861857
name = "wheel"
862858
version = "0.45.1"
863-
marker = "python_full_version < '3.12'"
864859
sdist = { url = "https://files.pythonhosted.org/packages/8a/98/2d9906746cdc6a6ef809ae6338005b3f21bb568bea3165cfc6a243fdc25c/wheel-0.45.1.tar.gz", upload-time = 2024-11-23T00:18:23Z, size = 107545, hashes = { sha256 = "661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729" } }
865860
wheels = [{ url = "https://files.pythonhosted.org/packages/0b/2c/87f3254fd8ffd29e4c02732eee68a83a1d3c346ae39bc6822dcbcb697f2b/wheel-0.45.1-py3-none-any.whl", upload-time = 2024-11-23T00:18:21Z, size = 72494, hashes = { sha256 = "708e7481cc80179af0e556bbf0cc00b8444c7321e2700b8d8580231d13017248" } }]
866861

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies = [
4141
"rich==14.0.0",
4242
"setuptools==80.8.0",
4343
"snowflake-connector-python[secure-local-storage]==3.18.0",
44-
'snowflake-snowpark-python==1.33.0;python_version < "3.12"',
44+
'snowflake-snowpark-python==1.41.0',
4545
"snowflake.core==1.7.0",
4646
"tomlkit==0.13.3",
4747
"typer==0.17.3",

snyk/requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ certifi==2025.7.14
99
cffi==1.17.1
1010
charset-normalizer==3.4.2
1111
click==8.1.8
12-
cloudpickle==3.0.0 ; python_full_version < '3.12'
12+
cloudpickle==3.0.0
1313
colorama==0.4.6 ; sys_platform == 'win32'
1414
cryptography==45.0.5
1515
filelock==3.18.0
@@ -34,7 +34,7 @@ pip==25.2
3434
platformdirs==4.3.8
3535
pluggy==1.6.0
3636
prompt-toolkit==3.0.51
37-
protobuf==5.29.5 ; python_full_version < '3.12'
37+
protobuf==5.29.5
3838
pycparser==2.22
3939
pydantic==2.11.7
4040
pydantic-core==2.33.2
@@ -56,15 +56,15 @@ six==1.17.0
5656
smmap==5.0.2
5757
snowflake-connector-python==3.18.0
5858
snowflake-core==1.7.0
59-
snowflake-snowpark-python==1.33.0 ; python_full_version < '3.12'
59+
snowflake-snowpark-python==1.41.0
6060
sortedcontainers==2.4.0
6161
tomlkit==0.13.3
6262
typer==0.17.3
6363
typing-extensions==4.14.1
6464
typing-inspection==0.4.1
65-
tzdata==2025.2 ; python_full_version < '3.12' and sys_platform == 'win32'
66-
tzlocal==5.3.1 ; python_full_version < '3.12'
65+
tzdata==2025.2 ; sys_platform == 'win32'
66+
tzlocal==5.3.1
6767
urllib3==2.5.0
6868
wcwidth==0.2.13
69-
wheel==0.45.1 ; python_full_version < '3.12'
69+
wheel==0.45.1
7070
zipp==3.23.0 ; python_full_version < '3.12'

tests/stage/test_stage.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
import sys
1514
from pathlib import Path
1615
from typing import Optional
1716
from unittest import mock
@@ -32,10 +31,6 @@
3231

3332
STAGE_MANAGER = "snowflake.cli._plugins.stage.manager.StageManager"
3433

35-
skip_python_3_12 = pytest.mark.skipif(
36-
sys.version_info >= (3, 12), reason="Snowpark is not supported in Python >= 3.12"
37-
)
38-
3934

4035
@pytest.mark.parametrize(
4136
"stage_name, expected_stage_name",
@@ -919,7 +914,6 @@ def test_execute_from_user_stage(
919914
@mock.patch(f"{STAGE_MANAGER}.execute_query")
920915
@mock.patch(f"{STAGE_MANAGER}._bootstrap_snowpark_execution_environment")
921916
@mock.patch(f"{STAGE_MANAGER}.snowpark_session")
922-
@skip_python_3_12
923917
def test_execute_with_variables(
924918
mock_snowpark_session, mock_bootstrap, mock_execute, mock_cursor, runner
925919
):
@@ -1056,7 +1050,6 @@ def test_execute_no_files_for_stage_path(
10561050
@mock.patch(f"{STAGE_MANAGER}.execute_query")
10571051
@mock.patch(f"{STAGE_MANAGER}._bootstrap_snowpark_execution_environment")
10581052
@mock.patch(f"{STAGE_MANAGER}.snowpark_session")
1059-
@skip_python_3_12
10601053
def test_execute_stop_on_error(
10611054
mock_snowpark_session, mock_bootstrap, mock_execute, mock_cursor, runner
10621055
):
@@ -1094,7 +1087,6 @@ def test_execute_stop_on_error(
10941087
@mock.patch(f"{STAGE_MANAGER}.execute_query")
10951088
@mock.patch(f"{STAGE_MANAGER}._bootstrap_snowpark_execution_environment")
10961089
@mock.patch(f"{STAGE_MANAGER}.snowpark_session")
1097-
@skip_python_3_12
10981090
def test_execute_continue_on_error(
10991091
mock_snowpark_session,
11001092
mock_bootstrap,

tests_integration/test_snowpark.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,6 @@ def test_build_skip_version_check(
12611261

12621262

12631263
@pytest.mark.integration
1264-
@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Unknown issues")
12651264
@pytest.mark.parametrize(
12661265
"flags",
12671266
[
@@ -1310,7 +1309,6 @@ def test_build_with_non_anaconda_dependencies(
13101309

13111310

13121311
@pytest.mark.integration
1313-
@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Unknown issues")
13141312
def test_build_shared_libraries_error(
13151313
runner, project_directory, alter_requirements_txt, test_database
13161314
):

tests_integration/test_stage.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,6 @@ def test_user_stage_execute(runner, test_database, test_root_path, snapshot):
334334

335335

336336
@pytest.mark.integration
337-
@pytest.mark.skipif(
338-
sys.version_info >= (3, 12), reason="Snowpark is not supported in Python >= 3.12"
339-
)
340337
def test_stage_execute_python(
341338
snowflake_session, runner, test_database, test_root_path, snapshot
342339
):
@@ -385,9 +382,6 @@ def test_stage_execute_python(
385382

386383

387384
@pytest.mark.integration
388-
@pytest.mark.skipif(
389-
sys.version_info >= (3, 12), reason="Snowpark is not supported in Python >= 3.12"
390-
)
391385
def test_stage_execute_python_without_requirements(
392386
snowflake_session, runner, test_database, test_root_path, snapshot
393387
):

0 commit comments

Comments
 (0)