From dd79b9b120342e023aacb495eb8146a27cb34e27 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Thu, 3 Dec 2026 12:53:26 +0100 Subject: [PATCH] maint: require Python 3.13 or newer (SPEC 0) 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 --- .github/workflows/pythonapp.yml | 4 ++-- CHANGES.rst | 5 +++++ pyproject.toml | 1 + setup.cfg | 8 ++++---- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 50a53ed..1104753 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-26.04 strategy: matrix: - python-version: ['3.10', '3.12'] + python-version: ['3.13', '3.15'] steps: - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} @@ -33,7 +33,7 @@ jobs: runs-on: ubuntu-26.04 strategy: matrix: - python-version: ['3.10', '3.11', '3.12'] + python-version: ['3.13', '3.14', '3.15'] steps: - uses: actions/checkout@v7 diff --git a/CHANGES.rst b/CHANGES.rst index a0ddb69..a676842 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,5 +1,10 @@ Unreleased ========== +* Python 3.13 or newer, following `SPEC 0 `__ + (tested on 3.13 to 3.15). + +26.0.0rc4 (December 3, 2026) +============================ TF804 follows the renames table the template action writes. * TF804 renames-table reads the two columns of ``renames.tsv`` (``old_path``, diff --git a/pyproject.toml b/pyproject.toml index 50fcef2..a868d46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,6 +11,7 @@ fallback_version = "0.0" [tool.ruff] line-length = 99 +target-version = "py313" # SPEC 0; keep in step with python_requires (setup.cfg) extend-exclude = ["docs", "tfmanager/_version.py"] [tool.ruff.format] diff --git a/setup.cfg b/setup.cfg index 5605f0d..ed7ebfe 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,9 +6,9 @@ classifiers = Intended Audience :: Science/Research Topic :: Scientific/Engineering :: Image Recognition License :: OSI Approved :: BSD License - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 + Programming Language :: Python :: 3.13 + Programming Language :: Python :: 3.14 + Programming Language :: Python :: 3.15 description = TemplateFlow Manager eases the process of contributing to the Archive license = Apache-2.0 long_description = file:README.rst @@ -19,7 +19,7 @@ project_urls = url = https://github.com/templateflow/python-manager [options] -python_requires = >= 3.10 +python_requires = >= 3.13 setup_requires = setuptools >= 64 setuptools_scm >= 8