Skip to content

Commit 25bdb2b

Browse files
authored
MNT: Drop Python 3.9 (#259)
* mnt: drop Python 3.9 numpy dropped Python 3.9 on Aug 2024 with 2.1.0 * fix: pin new minimal nibabel * fix: pin minimum h5py 3.11 * fix: pin minimum pytest 6.2.5 * fix: update circleci for Python 3.10
1 parent 0dff054 commit 25bdb2b

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165

166166
test_package:
167167
docker:
168-
- image: cimg/python:3.9
168+
- image: cimg/python:3.10
169169
auth:
170170
username: $DOCKER_USER
171171
password: $DOCKER_PAT
@@ -217,7 +217,7 @@ jobs:
217217
218218
deploy_pypi:
219219
docker:
220-
- image: cimg/python:3.9
220+
- image: cimg/python:3.10
221221
auth:
222222
username: $DOCKER_USER
223223
password: $DOCKER_PAT

.github/workflows/tox.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ jobs:
6666
needs: [cache-test-data]
6767
strategy:
6868
matrix:
69-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
69+
python-version: ["3.10", "3.11", "3.12", "3.13"]
7070
dependencies: [latest, pre]
7171
include:
72-
- python-version: "3.9"
72+
- python-version: "3.10"
7373
dependencies: min
7474
exclude:
7575
# Do not test pre-releases for versions out of SPEC0
76-
- python-version: "3.9"
77-
dependencies: pre
7876
- python-version: "3.10"
7977
dependencies: pre
78+
- python-version: "3.11"
79+
dependencies: pre
8080

8181
env:
8282
DEPENDS: ${{ matrix.dependencies }}

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,19 @@ classifiers = [
1111
"Intended Audience :: Science/Research",
1212
"Topic :: Scientific/Engineering :: Image Recognition",
1313
"License :: OSI Approved :: BSD License",
14-
"Programming Language :: Python :: 3.9",
1514
"Programming Language :: Python :: 3.10",
1615
"Programming Language :: Python :: 3.11",
1716
"Programming Language :: Python :: 3.12",
1817
"Programming Language :: Python :: 3.13",
1918
]
2019
description = "NiTransforms -- Neuroimaging spatial transforms in Python."
2120
license = {text = "MIT License"}
22-
requires-python = ">= 3.9"
21+
requires-python = ">= 3.10"
2322
dependencies = [
24-
"numpy >= 1.21",
23+
"numpy >= 2.1",
2524
"scipy >= 1.8",
26-
"nibabel >= 4.0",
27-
"h5py >= 3.9",
25+
"nibabel >= 5.2",
26+
"h5py >= 3.11",
2827
]
2928
dynamic = ["version"]
3029

@@ -34,9 +33,9 @@ Manuscript = "https://doi.org/10.31219/osf.io/8aq7b"
3433
NiBabel = "https://github.com/nipy/nibabel/pull/656"
3534

3635
[project.optional-dependencies]
37-
niftiext = ["lxml >= 4.6"]
36+
niftiext = ["lxml >= 4.6.4"]
3837
test = [
39-
"pytest >= 6",
38+
"pytest >= 6.2.5",
4039
"pytest-cov >= 2.11",
4140
"pytest-env",
4241
"pytest-xdist >= 2.5",

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
requires =
33
tox>=4
44
envlist =
5-
py3{9,10,11,12,13}-latest
6-
py39-min
5+
py3{10,11,12,13}-latest
6+
py310-min
77
py3{11,12,13}-pre
88
skip_missing_interpreters = true
99

1010
# Configuration that allows us to split tests across GitHub runners effectively
1111
[gh-actions]
1212
python =
13-
3.9: py39
1413
3.10: py310
1514
3.11: py311
1615
3.12: py312

0 commit comments

Comments
 (0)