Skip to content

maint: require Python 3.13 or newer (SPEC 0) - #17

Merged
oesteban merged 1 commit into
masterfrom
chore/spec0-python313
Dec 3, 2026
Merged

oesteban merged 1 commit into
masterfrom
chore/spec0-python313

Conversation

@oesteban

@oesteban oesteban commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

tfmanager follows SPEC 0: Python 3.12 left the support window on 2026-10-01.

 setup.cfg
-python_requires = >= 3.10
+python_requires = >= 3.13
-classifiers: 3.10, 3.11, 3.12
+classifiers: 3.13, 3.14, 3.15
 .github/workflows/pythonapp.yml
-test:  ['3.10', '3.12']
+test:  ['3.13', '3.15']
-build: ['3.10', '3.11', '3.12']
+build: ['3.13', '3.14', '3.15']
 pyproject.toml  [tool.ruff]
+target-version = "py313"
 CHANGES.rst
+Unreleased: Python 3.13 or newer
-Unreleased  (the TF804 entry)
+26.0.0rc4 (December 3, 2026)

Three consumers pin 26.0.0rc4 on Python 3.12 today. rc4 runs on 3.13, so each moves to 3.13 in its own small PR before it pins a tag with this floor:

Consumer Today Change
templateflow validate.yml uv tool install --python 3.12 --python 3.13 (templateflow/templateflow#218)
intake-previews workflows on 3.12, requires-python >=3.11 3.13, >=3.13 (templateflow/intake-previews#3)
actions-intake FROM python:3.12.16-slim-bookworm python:3.13.18 (templateflow/actions-intake#5)

Evidence

  • pytest --doctest-modules tfmanager, as CI runs it: 178 passed on Python 3.13.7 and on 3.15.0rc2.
  • ruff check . passes with the py313 target. ruff format --check flags setup.py with either target, as it does on master.

Merge Danger

Door: two-way

Blast Radius: Python ≤3.12 users

Nothing is on PyPI; consumers pin git tags. The floor takes effect at the next tag (26.0.0rc5), which a consumer still on 3.12 would fail to install. Merge the three consumer PRs before bumping any pin.

SPEC 0 drops Python 3.12 after 2026-10-01. python_requires moves to >=3.13, the
classifiers and CI cover 3.13 to 3.15, and ruff targets py313. The changelog names
the 26.0.0rc4 section, which was still under "Unreleased".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oesteban
oesteban marked this pull request as ready for review December 3, 2026 20:26
@oesteban
oesteban merged commit 81bec4b into master Dec 3, 2026
6 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T20:27:45.918174Z dd79b9b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@oesteban
oesteban deleted the chore/spec0-python313 branch December 3, 2026 20:26
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