Repository navigation
chore: move to Python 3.15 - #20
Merged
Merged
Conversation
.python-version 3.15, requires-python >=3.15,<4.0, Black target py315, mypy python_version 3.15, GitLab PYTHON_VERSION 3.15 (python:3.15-slim). poetry.lock regenerated for the new range: same versions, only the python_version < 3.15 markers and the metadata change. GitHub CI reads .python-version and setup-python has 3.15.0. Verified on python:3.15-slim with PostgreSQL 17: install without source builds, black/flake8/mypy clean, pip-audit clean, import of the app with every DeprecationWarning as an error (except slowapi's known one), 138 tests passed, uvicorn 0.54.0 served GET /. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
SQLAlchemy 2.0.x has compiled wheels up to 3.14 only, so on 3.15 pip takes the pure Python wheel and the Cython speedups are off. The fix is SQLAlchemy 2.1, which is its own change. The slowapi entry now says 3.14 and 3.15. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Second and last pull request of the migration. #19 refreshed the lock on 3.14; this one flips the interpreter settings and nothing else.
Changes
.python-version3.15,requires-python>=3.15,<4.0, Blacktarget-versionpy315, mypypython_version3.15, GitLabPYTHON_VERSION3.15 (imagepython:3.15-slim). GitHub CI reads.python-version; setup-python has 3.15.0.poetry.lockregenerated for the new range. No version changes: the diff is thepython_version < "3.15"markers (anyio and mypy's typing_extensions) and the metadata.Verification
Run on a
python:3.15-slimcontainer (Python 3.15.0) with PostgreSQL 17 and this branch's files:poetry install: no source builds (pydantic-core, asyncpg, greenlet, mypy have cp315 wheels; bcrypt abi3; SQLAlchemy pure).py315, flake8, mypy against 3.15, pip-audit: clean.DeprecationWarningas an error, except slowapi's known one: clean.pytest.ini's slowapi filter keeps the summary clean.GET /with normal lifespan logs.Upstream state, for the record
uvicorn's "Support Python 3.15" (Kludex/uvicorn#3198, CI and classifiers only) is merged and unreleased; FastAPI 0.143.1's CI matrix still ends at 3.14; Starlette 1.8.0 and pydantic 2.14 declare 3.15. The suite above is the evidence that matters.
After merging, on a developer machine
Poetry refuses
install,lockandrunon a 3.14 interpreter once this is merged.🤖 Generated with Claude Code