-
Notifications
You must be signed in to change notification settings - Fork 52
/
pyproject.toml
143 lines (128 loc) · 3.29 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "niworkflows"
dynamic = ["version"]
description = "NeuroImaging Workflows provides processing tools for magnetic resonance images of the brain."
readme = "README.rst"
license = {file = "LICENSE"}
requires-python = ">= 3.9"
authors = [
{ name = "The NiPreps Developers", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Image Recognition",
]
dependencies = [
"acres",
"attrs",
"importlib_resources >= 5.7; python_version < '3.11'",
"jinja2",
"looseversion",
"matplotlib >= 3.4.2",
"nibabel >= 3.0",
"nilearn >= 0.5.2",
"nipype >= 1.8.5",
"nitransforms >= 21.0.0",
"numpy",
"packaging",
"pandas",
"pybids >= 0.15.1",
"PyYAML",
"scikit-image",
"scipy",
"seaborn",
"svgutils >= 0.3.4",
"templateflow >= 0.7.2",
"transforms3d",
]
[project.optional-dependencies]
doc = [
"furo",
"pydot >= 1.2.3",
"pydotplus",
"sphinx",
"sphinxcontrib-apidoc",
"sphinxcontrib-napoleon",
]
pointclouds = [
"pyntcloud",
]
style = [
"flake8 >= 3.7.0",
]
tests = [
"coverage >=5.2.1",
"pytest >= 4.4",
"pytest-cov",
"pytest-env",
"pytest-xdist >= 1.28",
"pytest-xvfb",
]
# Aliases
all = ["niworkflows[doc,pointclouds,style,tests]"]
docs = ["niworkflows[doc]"]
[project.scripts]
niworkflows-boldref = "niworkflows.cli.boldref:main"
[project.urls]
"Bug Tracker" = "https://github.com/nipreps/niworkflows/issues"
Documentation = "https://www.nipreps.org/niworkflows"
GitHub = "https://github.com/nipreps/niworkflows"
Homepage = "https://www.nipreps.org"
"Source Code" = "https://github.com/nipreps/niworkflows"
Zenodo = "https://doi.org/10.5281/zenodo.2650331"
#
# Hatch configurations
#
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
exclude = [".git_archival.txt"] # No longer needed in sdist
[tool.hatch.build.targets.wheel]
packages = ["niworkflows"]
exclude = [
"niworkflows/data/tests/work", # Large test data directory
]
## The following two sections configure setuptools_scm in the hatch way
[tool.hatch.version]
source = "vcs"
raw-options = {version_scheme = "release-branch-semver" }
[tool.hatch.build.hooks.vcs]
version-file = "niworkflows/_version.py"
[tool.black]
line-length = 99
target-version = ['py37']
skip-string-normalization = true
extend-exclude = '_version.py'
[tool.pytest.ini_options]
norecursedirs = ".git"
addopts = "-sv --doctest-modules"
doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
env = """
PYTHONHASHSEED=0
"""
filterwarnings = """
ignore::DeprecationWarning
"""
junit_family = "xunit2"
[tool.coverage.run]
branch = true
omit = [
"*/tests/*",
"niworkflows/_version.py",
"niworkflows/conftest.py",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
"raise NotImplementedError",
"warnings\\.warn",
]