From 116a4d5019217212eea634d82cde004b05c7bb98 Mon Sep 17 00:00:00 2001 From: Jonathan Biemond Date: Mon, 13 Jan 2025 07:39:19 +0100 Subject: [PATCH] Declare pip dependency for cli extras The `pipdeptree` package includes references to `pip` but does not explicitly require it. To ensure `pip` is installed in the environment, declare it as a dependency. --- poetry.lock | 17 ++++++++++++++--- pyproject.toml | 4 +++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/poetry.lock b/poetry.lock index b5ba07b8a7..7af68f38c4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. [[package]] name = "about-time" @@ -6978,6 +6978,17 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa typing = ["typing-extensions"] xmp = ["defusedxml"] +[[package]] +name = "pip" +version = "24.3.1" +description = "The PyPA recommended tool for installing Python packages." +optional = true +python-versions = ">=3.8" +files = [ + {file = "pip-24.3.1-py3-none-any.whl", hash = "sha256:3790624780082365f47549d032f3770eeb2b1e8bd1f7b2e02dace1afa361b4ed"}, + {file = "pip-24.3.1.tar.gz", hash = "sha256:ebcb60557f2aefabc2e0f918751cd24ea0d56d8ec5445fe1807f1d2109660b99"}, +] + [[package]] name = "pipdeptree" version = "2.9.6" @@ -10968,7 +10979,7 @@ cffi = ["cffi (>=1.11)"] athena = ["botocore", "pyarrow", "pyarrow", "pyathena", "s3fs"] az = ["adlfs"] bigquery = ["db-dtypes", "gcsfs", "google-cloud-bigquery", "grpcio", "pyarrow", "pyarrow"] -cli = ["cron-descriptor", "pipdeptree"] +cli = ["cron-descriptor", "pip", "pipdeptree"] clickhouse = ["adlfs", "clickhouse-connect", "clickhouse-driver", "gcsfs", "pyarrow", "pyarrow", "s3fs"] databricks = ["databricks-sdk", "databricks-sql-connector", "databricks-sql-connector"] deltalake = ["deltalake", "pyarrow", "pyarrow"] @@ -10997,4 +11008,4 @@ weaviate = ["weaviate-client"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.14" -content-hash = "bbaa63d148526306cd966244e86e41fff7ef01cac3d112df1f762c64058671c8" +content-hash = "30cacf3f0537bc4d28fcde9dbd6b90b13d0c68ae2865a7679bd4ef4b6a9e82d1" diff --git a/pyproject.toml b/pyproject.toml index 5fcf629ed1..9b8835afad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,6 +83,8 @@ botocore = {version = ">=1.28", optional = true} snowflake-connector-python = {version = ">=3.5.0", optional = true} cron-descriptor = {version = ">=1.2.32", optional = true} pipdeptree = {version = ">=2.9.0,<2.10", optional = true} +# pip is used by pipdeptree but not listed in its dependencies +pip = {version = ">=24.0.0", optional = true} pyathena = {version = ">=2.9.6", optional = true} weaviate-client = {version = ">=3.22", optional = true} adlfs = {version = ">=2024.7.0", optional = true} @@ -126,7 +128,7 @@ az = ["adlfs"] sftp = ["paramiko"] snowflake = ["snowflake-connector-python"] motherduck = ["duckdb", "pyarrow"] -cli = ["pipdeptree", "cron-descriptor"] +cli = ["pipdeptree", "cron-descriptor", "pip"] athena = ["pyathena", "pyarrow", "s3fs", "botocore"] weaviate = ["weaviate-client"] mssql = ["pyodbc"]