Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
needs: build
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
python-version: ['3.13', '3.14', '3.15']
mode: ['wheel']
include:
- {python-version: '3.13', mode: 'repo'}
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Unreleased (26.0.0)
===================
TemplateFlow 2.0 file names: the client reads the v2 skeleton and resolves old names.

* Python 3.13 or newer, following `SPEC 0 <https://scientific-python.org/specs/spec-0000/>`__
(tested on 3.13 to 3.15). Python 3.10 to 3.12 users keep templateflow 25.x.
* New home folders start from the v2 skeleton (``templateflow-skel-v2.zip``): current
names only, with ``renames.tsv`` and a manifest of every file's size and checksum.
Updates make the home match it: they add files, refresh text files, prune stubs of
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Image Recognition",
"License :: OSI Approved :: Apache Software 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",
]
license = {file = "LICENSE"}
requires-python = ">=3.10"
requires-python = ">=3.13"
dependencies = [
"acres >= 0.5.0",
"platformdirs >= 4.0",
Expand Down
4 changes: 2 additions & 2 deletions templateflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
#
"""TemplateFlow is the Zone of Templates."""

from datetime import UTC as _UTC
from datetime import datetime as _dt
from datetime import timezone as _tz

__packagename__ = 'templateflow'
__copyright__ = f'{_dt.now(tz=_tz.utc).year} The NiPreps Developers'
__copyright__ = f'{_dt.now(tz=_UTC).year} The NiPreps Developers'
try:
from ._version import __version__
except ModuleNotFoundError:
Expand Down
4 changes: 2 additions & 2 deletions templateflow/conf/_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import os
from contextlib import suppress
from dataclasses import dataclass, field
from datetime import datetime, timezone
from datetime import UTC, datetime
from hashlib import md5
from io import BytesIO
from json import dumps, loads
Expand Down Expand Up @@ -210,7 +210,7 @@ def write_state(dest, state: dict) -> None:
path.parent.mkdir(parents=True, exist_ok=True)
state = {
**state,
'Updated': datetime.now(tz=timezone.utc).isoformat(timespec='seconds'),
'Updated': datetime.now(tz=UTC).isoformat(timespec='seconds'),
'Client': __version__,
}
path.write_text(dumps(state, indent=2) + '\n')
Expand Down
Loading