Skip to content

Commit 68a10e4

Browse files
committed
MNT: Move optional dependencies to pyproject.toml
1 parent d77a7b0 commit 68a10e4

File tree

2 files changed

+26
-42
lines changed

2 files changed

+26
-42
lines changed

pyproject.toml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ classifiers = [
2525
"Topic :: Scientific/Engineering",
2626
]
2727
# Version from versioneer
28-
# optional-dependencies from setup.cfg (using ConfigParser features)
29-
dynamic = ["version", "optional-dependencies"]
28+
dynamic = ["version"]
3029

3130
[project.urls]
3231
"Homepage" = "https://nipy.org/nibabel"
@@ -45,6 +44,31 @@ nib-trk2tck = "nibabel.cmdline.trk2tck:main"
4544
nib-roi = "nibabel.cmdline.roi:main"
4645
parrec2nii = "nibabel.cmdline.parrec2nii:main"
4746

47+
[project.optional-dependencies]
48+
dicom = ["pydicom >=1.0.0"]
49+
dicomfs = ["nibabel[dicom]", "pillow"]
50+
dev = ["gitpython", "twine"]
51+
doc = [
52+
"matplotlib >= 1.5.3",
53+
"numpydoc",
54+
"sphinx ~= 5.3",
55+
"texext",
56+
"tomli; python_version < \"3.11\"",
57+
]
58+
minc2 = ["h5py"]
59+
spm = ["scipy"]
60+
style = ["flake8"]
61+
test = [
62+
"coverage",
63+
"pytest !=5.3.4",
64+
"pytest-cov",
65+
"pytest-doctestplus",
66+
"pytest-httpserver",
67+
"pytest-xdist",
68+
]
69+
zstd = ["pyzstd >= 0.14.3"]
70+
all = ["nibabel[dicomfs,dev,doc,minc2,spm,style,test,zstd]"]
71+
4872
[tool.setuptools]
4973
platforms = ["OS Independent"]
5074
provides = ["nibabel", "nisext"]

setup.cfg

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,3 @@
1-
[options.extras_require]
2-
dicom =
3-
pydicom >=1.0.0
4-
dicomfs =
5-
%(dicom)s
6-
pillow
7-
dev =
8-
gitpython
9-
twine
10-
doc =
11-
matplotlib >= 1.5.3
12-
numpydoc
13-
sphinx ~= 5.3
14-
texext
15-
tomli; python_version < "3.11"
16-
minc2 =
17-
h5py
18-
spm =
19-
scipy
20-
style =
21-
flake8
22-
test =
23-
coverage
24-
pytest !=5.3.4
25-
pytest-cov
26-
pytest-doctestplus
27-
pytest-httpserver
28-
pytest-xdist
29-
zstd =
30-
pyzstd >= 0.14.3
31-
all =
32-
%(dicomfs)s
33-
%(dev)s
34-
%(doc)s
35-
%(minc2)s
36-
%(spm)s
37-
%(style)s
38-
%(test)s
39-
%(zstd)s
40-
411
[flake8]
422
max-line-length = 100
433
ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D208,D209,D210,D300,D301,D400,D401,D403,E24,E121,E123,E126,E226,E266,E402,E704,E731,F821,I100,I101,I201,N802,N803,N804,N806,W503,W504,W605

0 commit comments

Comments
 (0)