Support Python 3.14 - #205
Merged
Merged
Conversation
Raise requires-python to >=3.11,<3.15 so the 3.14 job that CI now runs can install the project; uv refused a 3.14 interpreter under the old <3.14 ceiling. Regenerate uv.lock for the wider range and move the locked spacy from 3.8.13 to 3.8.16, the first release that declares 3.14 support and ships cp314 wheels. Verified with `pytest --runslow` on CPython 3.14.7 and 3.11.15: 749 passed on both. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ce4SomhP9i24x5EYqQks5K
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.
Problem
#204 added Python 3.14 to the CI matrix, but
pyproject.tomlstill declaresrequires-python = ">=3.11,<3.14". uv refuses to sync a 3.14 interpreter under that ceiling, so the 3.14 job fails at the install step before any test runs:Changes
requires-pythonis now>=3.11,<3.15.uv.lockregenerated for the wider range.spacymoves from 3.8.13 to 3.8.16, the first release that declares<3.15support and ships cp314 wheels. No other direct dependency changes.Verification
uv sync --extra devfollowed bypytest --runslow, the same steps CI runs:All compiled dependencies (spacy, thinc, blis, numpy, pandas, scikit-learn, tokenizers) install from prebuilt cp314 wheels; nothing builds from source.
Note for anyone testing locally: a 3.14 release candidate (3.14.0rc2) fails at
import spacywith anAssertionErrorinside pydantic, because pydantic passes aprefer_fwd_moduleargument totyping._eval_typethat only exists in final 3.14. Use a final 3.14.x build.🤖 Generated with Claude Code
https://claude.ai/code/session_01Ce4SomhP9i24x5EYqQks5K
Generated by Claude Code