Skip to content

build(pyo3): drop support for Python 3.9 - #528

Open
shiminlin-db wants to merge 1 commit into
databricks:mainfrom
shiminlin-db:isaac/shiminlin-db/kernel-python-310
Open

shiminlin-db wants to merge 1 commit into
databricks:mainfrom
shiminlin-db:isaac/shiminlin-db/kernel-python-310

Conversation

@shiminlin-db

@shiminlin-db shiminlin-db commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

🥞 Stacked PR

Review the incremental changes in this PR.


Description

Raise the kernel wheel’s minimum Python version from 3.9 to 3.10 to match the Databricks SQL Connector for Python. The wheel uses the cp310-abi3 tag, and both PyO3 CI jobs now cover Python 3.10 through 3.14.

Why?

  • Python 3.9 can be exposed to security vulnerabilities. E.g., There is security vulnerability in pyarrow that's only fixed in pyarrow >=26, and pyarrow 26 is only compatible with python >=3.11.
  • It should be safe to drop the support, because:
    • The Python connector is the only known consumer of the kernel's Python wheel, and it requires python >=3.10;
    • Python 3.9 has reached end of life over 1 year ago.

Testing

Built the wheel and verified that the installer rejects it on Python 3.9. The offline PyO3 suite passed on Python 3.10 and 3.12 (31 tests each).

Additional notes

This is the first change in the stack for databricks/databricks-sql-python#1076. Python 3.9 users can continue to install an earlier compatible kernel release.

Signed-off-by: shimin.lin <shimin.lin@databricks.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant