You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by yz...@apache.org on 2026/10/30 03:10:22 UTC
(polaris) branch main updated: Python client: drop unused boto3 runtime dependency (#5926)
This is an automated email from the ASF dual-hosted git repository.
MonkeyCanCode pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 1b5dcc4383 Python client: drop unused boto3 runtime dependency (#5926)
1b5dcc4383 is described below
commit 1b5dcc4383cd74c06c851ce0151d71307ec98593
Author: Xiaodong DENG <xd...@apache.org>
AuthorDate: Thu Oct 29 20:10:17 2026 -0700
Python client: drop unused boto3 runtime dependency (#5926)
The apache-polaris package declared boto3 as a runtime dependency, but
neither the CLI nor the generated SDK imports it. Its only user is the
S3 credential-scoping regression test in regtests/t_pyspark, so every
`pip install apache-polaris` pulled in boto3, botocore, s3transfer and
jmespath, and the tight `~=1.43.1` pin could conflict with users' own
boto3 versions.
Move boto3 to the dev dependency group. All regtest, notebook and
Makefile setups use the default `uv sync`, which installs the dev
group, so they keep getting boto3 at the same version.
---
CHANGELOG.md | 2 ++
client/python/pyproject.toml | 2 +-
client/python/uv.lock | 4 ++--
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cfc8cc7465..c1b83d3ddb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -62,6 +62,8 @@ request adding CHANGELOG notes for breaking (!) changes and possibly other secti
`Expect: 100-continue` by default. Set `polaris.storage.expect-continue-enabled=true`
to preserve the previous behavior. Iceberg S3 clients continue to use Apache HttpClient 4
and retain their existing default.
+- The `apache-polaris` Python package no longer depends on `boto3`, which it never used. Environments
+ that relied on it being installed transitively must now install `boto3` explicitly.
- Relational JDBC: The per-schema-version runtime fallback has been removed. The migration to schema
v6 is now **required** before starting this version of Polaris. The first request to any realm
whose recorded schema version does not match what the binary expects will fail fast with a clear
diff --git a/client/python/pyproject.toml b/client/python/pyproject.toml
index 0ad6d32936..9ef32db30f 100644
--- a/client/python/pyproject.toml
+++ b/client/python/pyproject.toml
@@ -37,7 +37,6 @@ dependencies = [
"python-dateutil>=2.8.2",
"pydantic>=2.14.0,<2.15.0",
"typing-extensions>=4.7.1",
- "boto3~=1.43.1",
"PyYAML>=6.0.3",
"prettytable>=3.17.0",
]
@@ -57,6 +56,7 @@ dev = [
"types-python-dateutil>= 2.8.19.14",
"mypy>=2.4, <=2.4.1",
"pyiceberg==0.12.0",
+ "boto3~=1.43.1",
"pre-commit==4.7.0",
"openapi-generator-cli==7.26.0",
"pip-licenses-cli==4.1.0",
diff --git a/client/python/uv.lock b/client/python/uv.lock
index 02f5179e11..78e7aec547 100644
--- a/client/python/uv.lock
+++ b/client/python/uv.lock
@@ -20,7 +20,6 @@ name = "apache-polaris"
version = "1.9.0"
source = { editable = "." }
dependencies = [
- { name = "boto3" },
{ name = "prettytable" },
{ name = "pydantic" },
{ name = "python-dateutil" },
@@ -31,6 +30,7 @@ dependencies = [
[package.dev-dependencies]
dev = [
+ { name = "boto3" },
{ name = "flake8" },
{ name = "mypy" },
{ name = "openapi-generator-cli" },
@@ -44,7 +44,6 @@ dev = [
[package.metadata]
requires-dist = [
- { name = "boto3", specifier = "~=1.43.1" },
{ name = "prettytable", specifier = ">=3.17.0" },
{ name = "pydantic", specifier = ">=2.14.0,<2.15.0" },
{ name = "python-dateutil", specifier = ">=2.8.2" },
@@ -55,6 +54,7 @@ requires-dist = [
[package.metadata.requires-dev]
dev = [
+ { name = "boto3", specifier = "~=1.43.1" },
{ name = "flake8", specifier = ">=4.0.0" },
{ name = "mypy", specifier = ">=2.4,<=2.4.1" },
{ name = "openapi-generator-cli", specifier = "==7.26.0" },