-
Notifications
You must be signed in to change notification settings - Fork 260
/
Copy pathpyproject.toml
129 lines (118 loc) · 3.09 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "nibabel"
description = "Access a multitude of neuroimaging data formats"
authors = [{ name = "NiBabel developers", email = "[email protected]" }]
maintainers = [{ name = "Christopher Markiewicz" }]
readme = "README.rst"
license = { text = "MIT License" }
requires-python = ">=3.8"
dependencies = [
"numpy >=1.19",
"packaging >=17",
"importlib_resources; python_version < '3.9'",
"jdata >=0.5",
"bjdata >=0.4",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
]
# Version from setuptools_scm
dynamic = ["version"]
[project.urls]
"Homepage" = "https://nipy.org/nibabel"
"Development" = "https://github.com/nipy/nibabel"
[project.scripts]
nib-conform = "nibabel.cmdline.conform:main"
nib-convert = "nibabel.cmdline.convert:main"
nib-ls = "nibabel.cmdline.ls:main"
nib-dicomfs = "nibabel.cmdline.dicomfs:main"
nib-diff = "nibabel.cmdline.diff:main"
nib-stats = "nibabel.cmdline.stats:main"
nib-nifti-dx = "nibabel.cmdline.nifti_dx:main"
nib-tck2trk = "nibabel.cmdline.tck2trk:main"
nib-trk2tck = "nibabel.cmdline.trk2tck:main"
nib-roi = "nibabel.cmdline.roi:main"
parrec2nii = "nibabel.cmdline.parrec2nii:main"
[project.optional-dependencies]
all = ["nibabel[dicomfs,dev,doc,minc2,spm,style,test,zstd]"]
dev = ["gitpython", "twine", "nibabel[style]"]
dicom = ["pydicom >=1.0.0"]
dicomfs = ["nibabel[dicom]", "pillow"]
doc = [
"matplotlib >= 1.5.3",
"numpydoc",
"sphinx ~= 5.3",
"texext",
"tomli; python_version < \"3.11\"",
]
doctest = ["nibabel[doc,test]"]
minc2 = ["h5py"]
spm = ["scipy"]
style = ["flake8", "blue", "isort"]
test = [
"coverage",
"pytest !=5.3.4",
"pytest-cov",
"pytest-doctestplus",
"pytest-httpserver",
"pytest-xdist",
]
typing = [
"mypy",
"importlib_resources",
"pydicom",
"pytest",
"pyzstd",
"types-setuptools",
"types-Pillow",
]
zstd = ["pyzstd >= 0.14.3"]
[tool.hatch.build.targets.sdist]
exclude = [
".git_archival.txt",
# Submodules with large files; if we don't want them in the repo...
"nibabel-data/",
]
[tool.hatch.build.targets.wheel]
packages = ["nibabel", "nisext"]
exclude = [
# 56MB test file does not need to be installed everywhere
"nibabel/nicom/tests/data/4d_multiframe_test.dcm",
]
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "release-branch-semver" }
[tool.hatch.build.hooks.vcs]
version-file = "nibabel/_version.py"
[tool.blue]
line_length = 99
target-version = ["py37"]
force-exclude = """
(
_version.py
| nibabel/externals/
| versioneer.py
)
"""
[tool.isort]
profile = "black"
line_length = 99
extend_skip = ["_version.py", "externals"]
[tool.mypy]
python_version = "3.11"
exclude = [
"/tests",
]