Skip to content

Feature/python 3.15 support - #8

Merged
rroblf01 merged 4 commits into
mainfrom
feature/python-3.15-support
Oct 12, 2026
Merged

rroblf01 merged 4 commits into
mainfrom
feature/python-3.15-support

Conversation

@rroblf01

Copy link
Copy Markdown
Owner

[4.5.0] - 2026-10-12

Minor release. No breaking changes.

Added

  • Python 3.15 support. Added the Programming Language :: Python :: 3.15 trove classifier and extended the CI test matrix (SQLite, DuckDB, Postgres, MySQL, siblings, release smoke) to Python 3.15. The minimum supported version remains 3.11. The classifier is also declared in the djanorm-mypy sibling package.

Changed

  • Dependency floors raised for Python 3.15 wheels (users on 3.11–3.14 are unaffected — these are the first releases that publish cp315 / abi3 wheels):
    • djanorm[postgresql]: psycopg[binary,pool]>=3.3.6 (was >=3.3.3; psycopg-binary first ships a cp315 wheel at 3.3.6).
    • djanorm[parquet]: pyarrow>=26.0 (was >=14.0; first release with cp315 wheels).
    • djanorm[libsql]: pyturso>=0.6.0 (was >=0.5.1; first release with cp315 wheels; 0.7+ also ships abi3).
  • Test suite isolation sped up ~2.4×. The autouse clean_data fixture was still calling _recreate_schema (DROP + CREATE of all 6 base tables) on the common same-backend path, contradicting its own docstring and doubling work with the DELETE-based teardown. Schema is now created once per session by schema_manager and only rows are cleaned between tests. Full suite (SQLite + Postgres parametrisation): ~15.5 min → ~6.5 min locally; the SQLite-only CI leg drops from ~95 s to ~64 s.

- Add Programming Language :: Python :: 3.15 classifier (djanorm + djanorm-mypy)
- Extend CI matrix (SQLite, DuckDB, Postgres, MySQL, siblings, release smoke) to 3.15
- Bump dependency floors to first releases with cp315/abi3 wheels:
  psycopg[binary,pool]>=3.3.6, pyarrow>=26.0, pyturso>=0.6.0
- Default local interpreter (.python-version) to 3.15.0
- Release version 4.5.0
The autouse clean_data fixture still called _recreate_schema on the
common same-backend path, contradicting its own docstring and doubling
work with the DELETE-based teardown. Schema is now created once per
session by schema_manager; clean_data only resets connections and the
teardown DELETEs rows.

Full suite (SQLite + Postgres): ~15.5 min -> ~6.5 min locally.
SQLite-only CI leg: ~95 s -> ~64 s.
CI on Python 3.15 fell back to building Pillow 12.2.0 from sdist and
failed for missing system libjpeg headers. Pillow 12.3.0 is the first
release with cp315 manylinux wheels; raise the floor in both the
image and dev extras.

Also refresh the lockfile to versions that publish cp315 manylinux
wheels so uv sync --extra=all installs binaries instead of compiling
from source on 3.15: numpy 2.5.x, pydantic 2.14 / pydantic-core 2.50,
msgspec 0.22, markupsafe 3.0.4, cffi 2.1, pillow 12.3.
- minio_endpoint now catches Docker image pull failures (the pinned
  minio/minio release was removed from Docker Hub) and skips cleanly
  instead of erroring the whole S3 live-test module.
- test_skip_locked_two_workers_claim_disjoint_rows relied on both
  workers overlapping, but the worker body never held the transaction
  open after SELECT FOR UPDATE. When the threads serialised, each
  re-claimed the same first 10 rows (SKIP LOCKED only skips currently
  locked rows) and the union was 10 instead of 20. A second barrier
  now holds both claim transactions until both workers have claimed.
@rroblf01
rroblf01 merged commit 2f1e624 into main Oct 12, 2026
15 checks passed
@rroblf01
rroblf01 deleted the feature/python-3.15-support branch October 12, 2026 14:12
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