From 050fd46bcd2637f0684adce4a5adf1a4921fd382 Mon Sep 17 00:00:00 2001 From: Tomasz Urbaszek Date: Wed, 27 Mar 2024 04:18:15 -0700 Subject: [PATCH 1/3] Add pip as requirement for snowflake cli (#939) --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index c4a9566657..91893729e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,7 @@ dependencies = [ "typer==0.9.0", "urllib3>=1.21.1,<2.3", "GitPython==3.1.42", + "pip", ] classifiers = [ "Development Status :: 3 - Alpha", From 4d1b21005976aee5833ef4a9054d5131efe8182a Mon Sep 17 00:00:00 2001 From: Patryk Czajka Date: Wed, 27 Mar 2024 12:32:33 +0100 Subject: [PATCH 2/3] Update release notes. --- RELEASE-NOTES.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 653af510cd..03987aaf7c 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,18 +1,15 @@ -# v2.2.0 - -## Backward incompatibility - -## New additions +# v2.1.2 ## Fixes and improvements - + * Add `pip` as Snowflake-cli dependency + * Optimize `connection test` command + * Fix venv creation issues in `snowpark package create` and `snowpark build` command # v2.1.1 ## Fixes and improvements * Improved security of printing connection details in `snow connection list`. * Improved parsing of non-quoted scalar values within square brackets in `manifest.yml` in Native App projects. - # v2.1.0 ## Backward incompatibility From 4385c8ec6d6d824dc43e47c84387eddb192793e7 Mon Sep 17 00:00:00 2001 From: Martin Junghanns Date: Tue, 19 Mar 2024 21:52:37 +0100 Subject: [PATCH 3/3] Use keyword argument for with_pip argument (#913) Co-authored-by: Paul Horn --- src/snowflake/cli/plugins/snowpark/venv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snowflake/cli/plugins/snowpark/venv.py b/src/snowflake/cli/plugins/snowpark/venv.py index 4e60403c29..fdf2e5725e 100644 --- a/src/snowflake/cli/plugins/snowpark/venv.py +++ b/src/snowflake/cli/plugins/snowpark/venv.py @@ -45,7 +45,7 @@ def pip_install(self, name: str, req_type: str, directory: str = ".packages"): return process.returncode def _create_venv(self): - venv.create(self.directory.name, self.with_pip) + venv.create(self.directory.name, with_pip=self.with_pip) @staticmethod def _get_python_path(venv_dir: Path):