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
8 changes: 5 additions & 3 deletions .github/workflows/pyo3-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ jobs:
matrix:
# Cover the supported floor through the newest release. 3.13
# and 3.14 exercise the GIL / free-threading changes where
# PyO3 extensions most often break. Floor is 3.10 — matches
# `requires-python` in pyo3/pyproject.toml.
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
# PyO3 extensions most often break. Floor is 3.9 — matches
# `requires-python` in pyo3/pyproject.toml. (3.9 also resolves
# the older `pyarrow>=14,<19` series via the env-marker split
# in pyproject.toml, exercising that path in CI.)
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

Expand Down
8 changes: 4 additions & 4 deletions pyo3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ crate-type = ["cdylib", "rlib"]
# kernel's default feature.
databricks-sql-kernel = { path = "..", default-features = false, features = ["tls-rustls"] }

# pyo3 — abi3-py310 builds a single stable-ABI wheel (tagged
# cp310-abi3) that loads on CPython 3.10+. The ABI floor is kept in
# step with `requires-python = ">=3.10"` in pyproject.toml; bumping
# pyo3 — abi3-py39 builds a single stable-ABI wheel (tagged
# cp39-abi3) that loads on CPython 3.9+. The ABI floor is kept in
# step with `requires-python = ">=3.9"` in pyproject.toml; bumping
# both together avoids shipping a wheel whose ABI tag advertises an
# interpreter the package no longer claims to support.
pyo3 = { version = "0.26", features = ["extension-module", "abi3-py310"] }
pyo3 = { version = "0.26", features = ["extension-module", "abi3-py39"] }

# Multi-thread runtime — one per Session, owned on the Rust side.
tokio = { version = "1", features = ["rt-multi-thread"] }
Expand Down
36 changes: 24 additions & 12 deletions pyo3/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ name = "databricks-sql-kernel"
version = "0.2.0"
description = "Python bindings for the Databricks SQL Kernel (PyO3)"
# Floor matches the tested CI matrix in
# .github/workflows/pyo3-checks.yml (3.10 .. 3.14). 3.9 is no longer
# exercised in CI, so it is not claimed as supported here.
requires-python = ">=3.10"
# .github/workflows/pyo3-checks.yml (3.9 .. 3.14). The abi3-py39
# wheel (see pyo3/Cargo.toml) loads on every CPython at or above
# this floor from a single artifact.
requires-python = ">=3.9"
license = { text = "Apache-2.0" }
authors = [{ name = "Databricks" }]
# Runtime dependency for downstream consumers. Major-version bound
Expand All @@ -20,15 +21,26 @@ authors = [{ name = "Databricks" }]
# `[dependency-groups].dev` block below + the workflow comment in
# `.github/workflows/pyo3-checks.yml` for the policy rationale.
#
# Floor is `>=23.0.1` to match databricks-sql-connector 5.0.0
# (databricks/databricks-sql-python#818): pyarrow only ships cp314
# (Python 3.14) wheels from 23.x onward, so the previous `<19` ceiling
# forced a from-source build that fails on 3.14. Keeping the floor
# aligned with the connector also keeps the two surfaces installable
# side by side. The `<24` ceiling preserves the major-version upper
# bound the go/pinning-python-deps policy requires (a future pyarrow
# major then surfaces as a deliberate bump, not a silent auto-resolve).
dependencies = ["pyarrow>=23.0.1,<24"]
# Split by interpreter via PEP 508 environment markers because the
# two ends of the supported range need different pyarrow floors:
#
# * Python 3.10+: `>=23.0.1` matches databricks-sql-connector 5.0.0
# (databricks/databricks-sql-python#818). pyarrow only ships cp314
# (Python 3.14) wheels from 23.x onward, so an older ceiling forces
# a from-source build that fails on 3.14. Keeping the floor aligned
# with the connector also keeps the two surfaces installable side
# by side.
# * Python 3.9: pyarrow 23.x dropped 3.9 wheels, so 3.9 takes the
# last series that still ships them (`>=14,<19`). 3.9 never sees
# 3.14, so the cp314 concern does not apply here.
#
# Both `<24` / `<19` ceilings preserve the major-version upper bound
# the go/pinning-python-deps policy requires (a future pyarrow major
# then surfaces as a deliberate bump, not a silent auto-resolve).
dependencies = [
"pyarrow>=23.0.1,<24; python_version >= '3.10'",
"pyarrow>=14,<19; python_version < '3.10'",
]

# Dev / CI dependencies. PEP 735 standard; uv reads this directly.
# CI runs `uv sync --group dev` (no `--frozen`, no committed
Expand Down
Loading