Skip to content

chore: move to Python 3.15 - #20

Merged
JsNcAr merged 2 commits into
mainfrom
chore/python-3-15
Oct 14, 2026
Merged

JsNcAr merged 2 commits into
mainfrom
chore/python-3-15

Conversation

@JsNcAr

@JsNcAr JsNcAr commented Oct 14, 2026

Copy link
Copy Markdown
Owner

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-version 3.15, requires-python >=3.15,<4.0, Black target-version py315, mypy python_version 3.15, GitLab PYTHON_VERSION 3.15 (image python:3.15-slim). GitHub CI reads .python-version; setup-python has 3.15.0.
  • poetry.lock regenerated for the new range. No version changes: the diff is the python_version < "3.15" markers (anyio and mypy's typing_extensions) and the metadata.
  • Known Issues: new entry for SQLAlchemy 2.0.x, which has compiled wheels up to 3.14 only and installs as pure Python on 3.15 (works, suite passes, Cython speedups off; the fix is SQLAlchemy 2.1 as its own change). The slowapi entry now reads 3.14 and 3.15.
  • Changelog entry under Changed.

Verification

Run on a python:3.15-slim container (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).
  • black with py315, flake8, mypy against 3.15, pip-audit: clean.
  • Importing the app with every DeprecationWarning as an error, except slowapi's known one: clean.
  • Full suite: 138 passed. pytest.ini's slowapi filter keeps the summary clean.
  • uvicorn 0.54.0 served 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

uv self update && uv python install 3.15
poetry env use 3.15 && poetry install

Poetry refuses install, lock and run on a 3.14 interpreter once this is merged.

🤖 Generated with Claude Code

JsNcAr and others added 2 commits October 14, 2026 10:59
.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>
@JsNcAr
JsNcAr merged commit 2fe7e4e into main Oct 14, 2026
2 checks passed
@JsNcAr
JsNcAr deleted the chore/python-3-15 branch October 14, 2026 16:09
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