Skip to content

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

Merged
oesteban merged 2 commits into
masterfrom
chore/spec0-python313
Dec 3, 2026
Merged

oesteban merged 2 commits into
masterfrom
chore/spec0-python313

Conversation

@oesteban

@oesteban oesteban commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

templateflow 26.0 follows SPEC 0: Python 3.12 left the support window on 2026-10-01. Stacked on #160 so the changelog line lands in its 26.0.0 section; GitHub retargets it to master when #160 merges.

 pyproject.toml
-requires-python = ">=3.10"
+requires-python = ">=3.13"
-classifiers: 3.10, 3.11, 3.12, 3.13, 3.14
+classifiers: 3.13, 3.14, 3.15
 .github/workflows/pythonpackage.yml  (test-install)
-python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
+python-version: ['3.13', '3.14', '3.15']
 templateflow/__init__.py, conf/_s3.py
-datetime.now(tz=timezone.utc)
+datetime.now(tz=UTC)          # ruff UP017 under the 3.13 target

CircleCI already runs on 3.13. Users on Python 3.10 to 3.12 keep resolving templateflow 25.x, which reads the Archive through the legacy skeleton (#161 checks that 25.0.4 and 25.1.2 keep working).

Evidence

  • pytest -n 4 --doctest-modules templateflow on Python 3.13.7: 79 passed (the suite of feat: read the v2 skeleton and resolve TemplateFlow 2.0 renames #160, live S3 included).
  • Python package, dispatched on this branch because it only runs for PRs into master (run): build, flake8, and test-install on 3.13 (wheel, sdist, repo, editable), 3.14 and 3.15 all pass. numpy, pandas, scipy, SQLAlchemy, PyYAML and greenlet publish cp315 wheels.
  • ruff (repository settings, now targeting 3.13) and flake8 (as CI runs it) are clean.

Merge Danger

Door: two-way

Blast Radius: Python ≤3.12 users

Once 26.0 is released, pip on Python 3.10 to 3.12 installs 25.1.2 instead. Downstream packages that still support those Pythons and pin templateflow>=26 would fail to resolve there; the 26.0 announcement should say so.

SPEC 0 drops Python 3.12 after 2026-10-01. requires-python moves to >=3.13, the
classifiers and the test-install matrix cover 3.13 to 3.15, and datetime.UTC replaces
timezone.utc (ruff UP017 under the new target). Python 3.10 to 3.12 users keep 25.x.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oesteban
oesteban force-pushed the chore/spec0-python313 branch from 8597786 to b2b8adb Compare December 3, 2026 15:45
Base automatically changed from feat/archive-2 to master December 3, 2026 18:37
@oesteban
oesteban marked this pull request as ready for review December 3, 2026 18:41
@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-03T18:45:04.008614Z a3da767 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.

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.02%. Comparing base (3e0954f) to head (a3da767).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #162   +/-   ##
=======================================
  Coverage   84.02%   84.02%           
=======================================
  Files          10       10           
  Lines         920      920           
  Branches      192      192           
=======================================
  Hits          773      773           
  Misses         83       83           
  Partials       64       64           
Flag Coverage Δ
api,datalad 44.89% <100.00%> (ø)
api,dls3 20.97% <66.66%> (ø)
api,s3 52.28% <100.00%> (ø)
config 81.95% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oesteban
oesteban merged commit d474dd8 into master Dec 3, 2026
17 checks passed
@oesteban
oesteban deleted the chore/spec0-python313 branch December 3, 2026 18:55
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