From e8968ca8dfb899501349f3acaad89b12bde2afe7 Mon Sep 17 00:00:00 2001 From: TiM Date: Mon, 29 Jun 2026 14:56:31 +1200 Subject: [PATCH] fix(deps): replace snowflake-sql-api git URL with PyPI version pin PyPI rejects package metadata containing direct-URL (@ git+https) dependencies; this blocked the 1.4.0 publish with "400 Can't have direct dependency: snowflake-sql-api". snowflake-sql-api is now on PyPI (0.1.1), so pin it normally. Replace the git reference with snowflake-sql-api>=0.1.1,<0.2.0 in the snowflake and dev extras, across both setup.py and pyproject.toml (which had drifted: only pyproject's dev extra carried the git dep). --- pyproject.toml | 9 ++++----- setup.py | 8 +++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c897a58..7328aa1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,11 +45,10 @@ powertools = [ "coloredlogs>=15.0", ] jwt = ["rsa>=4.9"] -# Tag pin to the public snowflake-sql-api repo. Repin to a PyPI release once -# that package is published. Kept out of `all` so nothing pulls the git -# dependency implicitly. +# Pinned to the published PyPI release (no direct-URL deps, PyPI rejects those +# on upload). Kept out of `all`: opt-in. snowflake = [ - "snowflake-sql-api @ git+https://github.com/hampsterx/snowflake-sql-api.git@v0.1.1", + "snowflake-sql-api>=0.1.1,<0.2.0", ] # Anthropic (Claude) helper. anthropic[bedrock] covers both auth modes (API key # + Bedrock IAM). Kept out of `all` (same as snowflake): the SDK is specialized @@ -78,7 +77,7 @@ dev = [ "build>=0.8.0", "rsa>=4.9", "cryptography>=41.0.0", - "snowflake-sql-api @ git+https://github.com/hampsterx/snowflake-sql-api.git@v0.1.1", + "snowflake-sql-api>=0.1.1,<0.2.0", "anthropic[bedrock]>=0.45.0,<1.0.0", ] diff --git a/setup.py b/setup.py index d6c0209..9d0c8ac 100644 --- a/setup.py +++ b/setup.py @@ -57,12 +57,10 @@ "coloredlogs>=15.0", ], "jwt": ["rsa>=4.9"], - # Pre-release pin to the public snowflake-sql-api repo (PR #1 merge - # commit on master). Repinned to a PyPI release (>=0.1.0) once that - # package ships. Kept out of "all" so nothing pulls the git dep - # implicitly. + # Pinned to the published PyPI release (no direct-URL deps, PyPI rejects + # those on upload). Kept out of "all": opt-in. "snowflake": [ - "snowflake-sql-api @ git+https://github.com/hampsterx/snowflake-sql-api.git@50205b0cb63df008c9c453ee05f0f130dcfe4805", + "snowflake-sql-api>=0.1.1,<0.2.0", ], # Anthropic (Claude) helper. anthropic[bedrock] covers both auth modes # (API key + Bedrock IAM). Kept out of "all" (same as snowflake): the