Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions pylock.toml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd039706778
[[packages]]
name = "cloudpickle"
version = "3.0.0"
marker = "python_full_version < '3.12'"
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" } }
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" } }]

Expand Down Expand Up @@ -473,7 +472,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/ce/4f/5249960887b1fbe
[[packages]]
name = "protobuf"
version = "5.29.5"
marker = "python_full_version < '3.12'"
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" } }
wheels = [
{ 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" } },
Expand Down Expand Up @@ -796,10 +794,9 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/c9/40/a08e639e8215a8c

[[packages]]
name = "snowflake-snowpark-python"
version = "1.33.0"
marker = "python_full_version < '3.12'"
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" } }
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" } }]
version = "1.41.0"
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" } }
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" } }]

[[packages]]
name = "sortedcontainers"
Expand Down Expand Up @@ -834,14 +831,13 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/17/69/cd203477f944c35
[[packages]]
name = "tzdata"
version = "2025.2"
marker = "python_full_version < '3.12' and sys_platform == 'win32'"
marker = "sys_platform == 'win32'"
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" } }
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" } }]

[[packages]]
name = "tzlocal"
version = "5.3.1"
marker = "python_full_version < '3.12'"
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" } }
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" } }]

Expand All @@ -860,7 +856,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/fd/84/fd2ba7aafacbad3
[[packages]]
name = "wheel"
version = "0.45.1"
marker = "python_full_version < '3.12'"
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" } }
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" } }]

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies = [
"rich==14.0.0",
"setuptools==80.8.0",
"snowflake-connector-python[secure-local-storage]==3.18.0",
'snowflake-snowpark-python==1.33.0;python_version < "3.12"',
'snowflake-snowpark-python==1.41.0',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious if such strict dependency requirements are necessary. What exactly are the API requirements from the snowpark package? I feel like setting up a tox matrix for supported versions should be a fairly easy way to relax the dependency on a specific version if there are no breaking API changes.

"snowflake.core==1.7.0",
"tomlkit==0.13.3",
"typer==0.17.3",
Expand Down
12 changes: 6 additions & 6 deletions snyk/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ certifi==2025.7.14
cffi==1.17.1
charset-normalizer==3.4.2
click==8.1.8
cloudpickle==3.0.0 ; python_full_version < '3.12'
cloudpickle==3.0.0
colorama==0.4.6 ; sys_platform == 'win32'
cryptography==45.0.5
filelock==3.18.0
Expand All @@ -34,7 +34,7 @@ pip==25.2
platformdirs==4.3.8
pluggy==1.6.0
prompt-toolkit==3.0.51
protobuf==5.29.5 ; python_full_version < '3.12'
protobuf==5.29.5
pycparser==2.22
pydantic==2.11.7
pydantic-core==2.33.2
Expand All @@ -56,15 +56,15 @@ six==1.17.0
smmap==5.0.2
snowflake-connector-python==3.18.0
snowflake-core==1.7.0
snowflake-snowpark-python==1.33.0 ; python_full_version < '3.12'
snowflake-snowpark-python==1.41.0
sortedcontainers==2.4.0
tomlkit==0.13.3
typer==0.17.3
typing-extensions==4.14.1
typing-inspection==0.4.1
tzdata==2025.2 ; python_full_version < '3.12' and sys_platform == 'win32'
tzlocal==5.3.1 ; python_full_version < '3.12'
tzdata==2025.2 ; sys_platform == 'win32'
tzlocal==5.3.1
urllib3==2.5.0
wcwidth==0.2.13
wheel==0.45.1 ; python_full_version < '3.12'
wheel==0.45.1
zipp==3.23.0 ; python_full_version < '3.12'
8 changes: 0 additions & 8 deletions tests/stage/test_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
from pathlib import Path
from typing import Optional
from unittest import mock
Expand All @@ -32,10 +31,6 @@

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

skip_python_3_12 = pytest.mark.skipif(
sys.version_info >= (3, 12), reason="Snowpark is not supported in Python >= 3.12"
)


@pytest.mark.parametrize(
"stage_name, expected_stage_name",
Expand Down Expand Up @@ -919,7 +914,6 @@ def test_execute_from_user_stage(
@mock.patch(f"{STAGE_MANAGER}.execute_query")
@mock.patch(f"{STAGE_MANAGER}._bootstrap_snowpark_execution_environment")
@mock.patch(f"{STAGE_MANAGER}.snowpark_session")
@skip_python_3_12
def test_execute_with_variables(
mock_snowpark_session, mock_bootstrap, mock_execute, mock_cursor, runner
):
Expand Down Expand Up @@ -1056,7 +1050,6 @@ def test_execute_no_files_for_stage_path(
@mock.patch(f"{STAGE_MANAGER}.execute_query")
@mock.patch(f"{STAGE_MANAGER}._bootstrap_snowpark_execution_environment")
@mock.patch(f"{STAGE_MANAGER}.snowpark_session")
@skip_python_3_12
def test_execute_stop_on_error(
mock_snowpark_session, mock_bootstrap, mock_execute, mock_cursor, runner
):
Expand Down Expand Up @@ -1094,7 +1087,6 @@ def test_execute_stop_on_error(
@mock.patch(f"{STAGE_MANAGER}.execute_query")
@mock.patch(f"{STAGE_MANAGER}._bootstrap_snowpark_execution_environment")
@mock.patch(f"{STAGE_MANAGER}.snowpark_session")
@skip_python_3_12
def test_execute_continue_on_error(
mock_snowpark_session,
mock_bootstrap,
Expand Down
2 changes: 0 additions & 2 deletions tests_integration/test_snowpark.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,6 @@ def test_build_skip_version_check(


@pytest.mark.integration
@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Unknown issues")
@pytest.mark.parametrize(
"flags",
[
Expand Down Expand Up @@ -1310,7 +1309,6 @@ def test_build_with_non_anaconda_dependencies(


@pytest.mark.integration
@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Unknown issues")
def test_build_shared_libraries_error(
runner, project_directory, alter_requirements_txt, test_database
):
Expand Down
6 changes: 0 additions & 6 deletions tests_integration/test_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,6 @@ def test_user_stage_execute(runner, test_database, test_root_path, snapshot):


@pytest.mark.integration
@pytest.mark.skipif(
sys.version_info >= (3, 12), reason="Snowpark is not supported in Python >= 3.12"
)
def test_stage_execute_python(
snowflake_session, runner, test_database, test_root_path, snapshot
):
Expand Down Expand Up @@ -385,9 +382,6 @@ def test_stage_execute_python(


@pytest.mark.integration
@pytest.mark.skipif(
sys.version_info >= (3, 12), reason="Snowpark is not supported in Python >= 3.12"
)
def test_stage_execute_python_without_requirements(
snowflake_session, runner, test_database, test_root_path, snapshot
):
Expand Down