mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
chore!: drop Python 3.10 support (#5172)
Closes #5106. Python 3.10 reached end of life on 2026-10-01. This raises the minimum to 3.11, following #2955 for 3.9. It's marked `chore!:` because it's a breaking change for 3.10 users. - `python/pyproject.toml`: `requires-python = ">=3.11"`, and the 3.10 classifier is removed. The `pillow` lower bound in the `clip`, `siglip` and `embeddings` extras goes up to `>=13.0.0`, the release with the CVE fixes, which needs 3.11+. The `typing-extensions; python_version < "3.11"` dev dependency is removed, since it no longer applies. - `python/Cargo.toml`: pyo3 `abi3-py310` becomes `abi3-py311`, so wheels are built as `cp311-abi3`. - `python/lancedb/query.py`: `Self` comes from `typing`, without the `typing_extensions` fallback. - CI: the Linux test matrix goes from `["10", "13"]` to `["11", "13"]`, and the minimum-dependencies job, the release build (`pypi-publish.yml`) and the docs build move from 3.10 to 3.11. - `python/uv.lock`: regenerated with `uv lock --extra-index-url https://pypi.fury.io/lance-format/`. The only changes are the 3.10-only resolutions going away: all 74 `python_full_version < '3.11'` markers, `async-timeout`, `backports-asyncio-runner`, `exceptiongroup`, `tomli`, and the older numpy, scipy, pandas, pyarrow and pillow pins. No package version changes for 3.11+. Checks run locally: `ruff check` and `ruff format --check` pass, and `cargo metadata` succeeds for the workspace. I haven't run the Python test suite, which needs the native build, so I'm relying on CI for that. pylance still declares `>=3.10`. As the issue says, lancedb can move first because pylance is optional.  --------- Co-authored-by: Will Jones <willjones127@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Will Jones
Claude Opus 5.5
parent
fe2d2b33fc
commit
52209f10c3
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: "3.10"
|
||||
python-version: "3.11"
|
||||
cache: "pip"
|
||||
cache-dependency-path: "docs/requirements.txt"
|
||||
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
||||
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: "3.10"
|
||||
python-version: "3.11"
|
||||
- name: Add swap for Arm fat LTO
|
||||
if: matrix.config.platform == 'aarch64'
|
||||
shell: bash
|
||||
|
||||
@@ -134,7 +134,7 @@ jobs:
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
matrix:
|
||||
python-minor-version: ["10", "13"]
|
||||
python-minor-version: ["11", "13"]
|
||||
runs-on: "ubuntu-24.04"
|
||||
defaults:
|
||||
run:
|
||||
@@ -268,7 +268,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: "3.10"
|
||||
python-version: "3.11"
|
||||
# As with Doctest, `pip install -e .` compiles the extension and this job
|
||||
# had no Rust cache, which is most of its ~37 minutes.
|
||||
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
||||
|
||||
Reference in New Issue
Block a user