forked from darksim33/Pyneapple
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (107 loc) · 3.54 KB
/
Copy pathpyproject.toml
File metadata and controls
118 lines (107 loc) · 3.54 KB
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
[project]
name = "pyneapple"
version = "2.0.0"
description = "Pyneapple is an advanced tool for analysing multi-exponential signal data in MR DWI images."
authors = [
{ name = "Thomas Thiel", email = "thomas.thiel@hhu.de" },
]
maintainers = [{ name = "Thomas Thiel", email = "thomas.thiel@hhu.de" }]
readme = "README.md"
license = { text = "GPL-3.0-or-later" }
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: Microsoft :: Windows :: Windows 11",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
dependencies = [
"h5py>=3.10.0",
"joblib>=1.5.3",
"loguru>=0.7.3",
"nibabel>=5.0,<5.4; python_version < '3.10'",
"nibabel>=5.4.0; python_version >= '3.10'",
"numpy>=2.0,<2.1; python_version < '3.10'",
"numpy>=2.1,<2.4; python_version >= '3.10' and python_version < '3.11'",
"numpy>=2.4.2; python_version >= '3.11'",
"opencv-python>=4.13.0.92",
"pathlib>=1.0.1",
"scipy>=1.13,<1.14; python_version < '3.10'",
"scipy>=1.14,<1.17; python_version >= '3.10' and python_version < '3.11'",
"scipy>=1.17.1; python_version >= '3.11'",
"tqdm>=4.67.3",
"tomli>=2.0; python_version < '3.11'",
"click>=8.1",
]
[project.optional-dependencies]
excel = ["pandas>=2.0", "openpyxl>=3.1"]
plotting = ["matplotlib>=3.8"]
export = ["pandas>=2.0", "openpyxl>=3.1", "matplotlib>=3.8"]
[project.urls]
Homepage = "https://github.com/darksim33/Pyneapple/"
Repository = "https://github.com/darksim33/Pyneapple/"
[dependency-groups]
test = [
"pytest>=8.1.1",
"pytest-order>=1.2.1",
"pytest-mock>=3.14.1",
"pytest-cov>=6.2.1",
]
lint = [
"black>=24.3.0",
"ruff>=0.15.4",
]
dev = [
{ include-group = "test" },
{ include-group = "lint" },
"tox>=4.21.2",
]
[project.scripts]
pyneapple = "pyneapple.cli.main:cli"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--cov=pyneapple",
"--cov-report=html",
"--cov-report=term-missing",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
"unit: marks tests as unit tests (deselect with '-m \"not unit\"')",
]
[tool.ruff]
line-length = 88
target-version = "py39"
lint.select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4", "SIM"]
lint.ignore = ["E501"] # Line length handled by black
lint.per-file-ignores."tests/**" = ["N806","N803"]
lint.per-file-ignores."src/pyneapple/models/**" = ["N806","N803"]
lint.per-file-ignores."src/pyneapple/model_functions/**" = ["N806","N803"]
lint.per-file-ignores."src/pyneapple/solvers/**" = ["N806","N803","E731"]
lint.per-file-ignores."src/pyneapple/io/toml.py" = ["E402"]
[tool.black]
line-length = 88
target-version = ["py39", "py310", "py311", "py312"]
[tool.pyright]
venvPath = ""
venv = ".venv"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/pyneapple"]