Drop Python 3.11 support (require >=3.12)#81
Merged
Merged
Conversation
cellrank requires Python >=3.12 since 2.1.0, so CellMapper's >=3.11 floor forced uv's universal lock to pin the whole graph (including the kernel venv) to the old cellrank 2.0.7 — the last release supporting 3.11. Bump requires-python to >=3.12, drop the 3.11 trove classifier, and move the hatch-test matrix to 3.12/3.14. This unpins the tutorials extra to cellrank 2.3.x (and modernizes scanpy/scvi-tools alongside) and is the prerequisite for delegating the petsc backend to `cellrank[petsc]` once a cellrank release ships an mpi4py-free extra. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #81 +/- ##
=======================================
Coverage 86.37% 86.37%
=======================================
Files 13 13
Lines 1387 1387
=======================================
Hits 1198 1198
Misses 189 189 🚀 New features to boost your workflow:
|
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
Bump CellMapper's minimum Python from 3.11 to 3.12.
cellrankrequires Python ≥3.12 since 2.1.0, so ourrequires-python = ">=3.11"floor forced uv's universal lock to hold the entire dependency graph — including the local kernel venv — back to the last cellrank that still supported 3.11 (2.0.7). Dropping 3.11 unpins thetutorialsextra to cellrank 2.3.x (and modernizes scanpy → 1.12, scvi-tools → 1.4.3, etc.).Behavior Or Invariants Changed
requires-python = ">=3.12", the:: 3.11trove classifier is removed, and thehatch-testmatrix moves from3.11, 3.14to3.12, 3.14. No code/API changes.Tests Run
uv lock --dry-runwithrequires-python = ">=3.12"→ resolves cleanly (302 packages), cellrank moves off 2.0.7. The same dry-run on the old>=3.11floor with acellrank>=2.3probe fails with "cellrank==2.3.0 depends on Python>=3.12", confirming the root cause.pre-commit run --files pyproject.toml README.md AGENTS.md CHANGELOG.md→ passes (pyproject-fmtetc.).hatch testmatrix not run locally (CI will exercise 3.12/3.14).Reviewer Focus
pyproject.toml—requires-python, classifiers, and thehatch-testmatrix. Doc touch-ups inREADME.mdandAGENTS.md. No ruff/mypytarget-versionpins exist (they infer fromrequires-python), so nothing else needed updating.Context
This is step 1 of delegating the pyGPCCA fast backend to CellRank. Once a cellrank release ships the mpi4py-free
[petsc]extra (scverse/cellrank#1362, merged to main), a follow-up will replace the hardcodedgpcca-fastgroup (petsc petsc4py slepc slepc4py) withcellrank[petsc]>=<that release>. That follow-up is blocked on the release and is intentionally not part of this PR.Open Questions Or Follow-Ups
{pr}with a placeholder that will be updated to this PR's number.tutorialsextra — intentional, per maintainer decision, and consistent with the broader scverse ecosystem moving to ≥3.12.🤖 Generated with Claude Code