-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
146 lines (131 loc) · 3.02 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
144
145
146
[build-system]
build-backend = "mesonpy"
requires = [
"meson-python>=0.15.0",
"Cython>=0.29",
"numpy==1.26.4",
"pybind11",
"ninja",
]
[project]
name = "dlup"
dynamic = ["version"]
description = "A package for digital pathology image analysis"
authors = [{name = "Jonas Teuwen", email = "[email protected]"}]
maintainers = [
{name = "DLUP Developers", email="[email protected]"},
]
requires-python = ">=3.10"
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Image Processing",
"Operating System :: OS Independent",
]
dependencies = [
"numpy==1.26.4",
"tifftools>=1.5.2",
"tifffile>=2024.9.20",
"pyvips>=2.2.3",
"tqdm>=2.66.4",
"pillow>=10.3.0",
"openslide-python>=1.3.1",
"opencv-python-headless>=4.9.0.80",
"shapely>=2.0.4",
"packaging>=24.0",
"pybind11>=2.8.0",
"xsdata>=24.7",
]
[project.optional-dependencies]
dev = [
"psutil",
"pytest>=8.2.1",
"mypy>=1.10.0",
"pytest-mock>=3.14.0",
"sphinx_copybutton>=0.5.2",
"numpydoc>=1.7.0",
"myst_parser>=3.0.1",
"sphinx-book-theme>=1.1.2",
"pylint>=3.2.2",
"pydantic>=2.7.2",
"types-Pillow>=10.2.0",
"darwin-py>=0.8.62",
]
darwin = ["darwin-py>=0.8.59"]
[project.urls]
Homepage = "https://github.com/NKI-AI/dlup"
Documentation = "https://docs.aiforoncology.nl/dlup/"
Source = "https://github.com/NKI-AI/dlup"
"Bug Tracker" = "https://github.com/NKI-AI/dlup/issues"
[tool.spin]
package = 'dlup'
[tool.spin.commands]
"Build" = [
".spin/cmds.py:build",
".spin/cmds.py:test",
".spin/cmds.py:coverage",
".spin/cmds.py:mypy",
".spin/cmds.py:lint",
".spin/cmds.py:format",
".spin/cmds.py:precommit",
]
"Environments" = [
"spin.cmds.meson.run",
".spin/cmds.py:ipython",
".spin/cmds.py:python",
]
"Documentation" = [
".spin/cmds.py:docs",
".spin/cmds.py:changelog",
]
[tool.black]
line-length = 120
target-version = ['py310', 'py311']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| \.idea
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 120
[tool.pylint]
disable = [
"possibly-used-before-assignment",
"import-error",
]
[tool.pylint.format]
max-line-length = "120"
[tool.pylint.'TYPECHECK']
generated-members = ['numpy.*', 'torch.*', 'np.*', 'cv2.*', 'openslide.*']
[tool.pylint.master]
extension-pkg-whitelist = ["dlup._background"]
ignore-patterns = '.*\.pyi'
[tool.cython-lint]
max-line-length = 120
[tool.pytest.ini_options]
addopts = "--ignore=libvips"
[tool.coverage.run]
branch = true
parallel = false # To see if there are threading issues
[tool.coverage.html]
directory = "htmlcov"