Repository navigation
feat: support Python 3.14 (default in Ubuntu 26.04 LTS) - #537
Open
pulse-mind wants to merge 1 commit into
Open
pulse-mind wants to merge 1 commit into
pulse-mind wants to merge 1 commit into
Conversation
- requires-python <3.15 and Python 3.14 classifier - add 3.14 to CI lint and test matrices - README Python range - relock uv.lock (incremental, no --upgrade) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 of 3 tasks
Author
|
The |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Python 3.14 is the default Python of Ubuntu 26.04 LTS.
unstructured-inferencecurrently declaresrequires-python = ">=3.11, <3.14", sopip install unstructured-inference(and thereforepip install "unstructured[pdf]") refuses to install there unless users pass--ignore-requires-python.This PR mirrors the 3.13 enablement in #511, one version up:
requires-pythonfrom<3.14to<3.15Programming Language :: Python :: 3.14classifierlintandtestmatricesuv.lock(incrementaluv lock, no--upgrade): only new 3.14 resolution markers / cp314 wheels, plusipython(dev group only) collapsed from 9.12.0/9.13.0 to 9.13.0No library code changes and no dependency floor bumps were needed: every compiled dependency in the lock (torch, onnxruntime, onnx, opencv-python, scipy, rapidfuzz, pandas, matplotlib, …) already publishes cp314 or abi3 wheels.
Companion PR in
unstructured: Unstructured-IO/unstructured#4814. Both are needed for pip users: pip enforces therequires-pythonupper bound of every package in the dependency tree, sounstructured[pdf]stays uninstallable on 3.14 until this package allows it too.Validation
Run locally (macOS arm64, uv 0.13.9 — same uv as CI's
setup-uv@v5), following the Makefile targets:uv lock --check: OKuv sync --locked --all-groups -p 3.14: OK, no source buildsmake check-ruffon 3.14: OKmake test(pytest -n auto -m "not slow"):test_elements.py:601"Not implemented"), coverage 95 %Identical results on both versions; the only warning (
TT_TABLE_CONFint env var intest_config.py) is pre-existing and shows up on 3.13 too.The test model fetched from S3 in CI (
test_ci_model.onnx) is not available outside CI, so the 3.14 CI job will be the final word on the tests that use it.Downstream check:
unstructured[pdf]hi_res / OCR partitioning on 3.14 (installed with--ignore-requires-python) gives the same output as on 3.12 on a private 38-case OCR regression suite of scanned PDFs (same results, 38/38).🤖 Generated with Claude Code