-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (132 loc) · 3.62 KB
/
Copy pathpyproject.toml
File metadata and controls
141 lines (132 loc) · 3.62 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "histopia"
version = "0.1.0"
description = "Histology Spatial Topology for Omics Profiling and Inter-section Alignment"
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [
{ name = "Oncology Lab" },
]
keywords = [
"computational-pathology",
"histology",
"image-registration",
"spatial-omics",
"tissue-sections",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = [
"packaging>=24,<27",
"tomli>=1.1; python_version < '3.11'",
]
[project.optional-dependencies]
registration = [
"numpy>=1.26,<3",
"opencv-contrib-python-headless>=4.8,<6",
"scipy>=1.11,<2",
]
wsi = [
"pillow>=10,<13",
"pyvips>=2.2,<3",
"tifffile>=2024.8",
]
semantic = [
"numpy>=1.26,<3",
"pillow>=10,<13",
"scikit-learn>=1.5,<2",
"scipy>=1.11,<2",
"threadpoolctl>=3.1,<4",
]
topology = [
"numpy>=1.26,<3",
"pillow>=10,<13",
"scikit-image>=0.24,<1",
"scikit-learn>=1.5,<2",
"scipy>=1.11,<2",
]
stain = [
"numpy>=1.26,<3",
"opencv-contrib-python-headless>=4.8,<6",
"pillow>=10,<13",
"pyvips>=2.2,<3",
"scikit-learn>=1.5,<2",
"scipy>=1.11,<2",
"threadpoolctl>=3.1,<4",
"tifffile>=2024.8",
]
qupath = [
"numpy>=1.26,<3",
]
uni2h = [
"huggingface-hub>=0.34,<1",
"numpy>=1.26,<3",
"pillow>=10,<13",
"pyvips>=2.2,<3",
"scikit-learn>=1.5,<2",
"scipy>=1.11,<2",
"timm>=1.0.19,<2",
"tifffile>=2024.8",
"threadpoolctl>=3.1,<4",
"torch>=2.8,<3",
"torchvision>=0.23,<1",
]
browser-test = [
"playwright>=1.50,<2",
"pytest>=8",
]
dev = [
"build>=1.2",
"pytest>=8",
"ruff>=0.16,<0.17",
"twine>=5",
]
[project.scripts]
histopia-register = "histopia.registration._cli:main"
histopia-semantic = "histopia.semantic._cli:main"
histopia-topology = "histopia.topology._cli:main"
histopia-stain = "histopia.stain._cli:main"
histopia-visualize = "histopia.visualization._cli:main"
histopia-qupath = "histopia.qupath._cli:main"
[project.urls]
Homepage = "https://github.com/oncologylab/histopia"
Documentation = "https://github.com/oncologylab/histopia/tree/main/docs"
Interactive-Demo = "https://oncologylab.github.io/histopia/"
QuPath-Extension = "https://github.com/oncologylab/qupath-extension-histopia/releases/latest"
Repository = "https://github.com/oncologylab/histopia"
Issues = "https://github.com/oncologylab/histopia/issues"
[tool.hatch.build.targets.wheel]
packages = ["src/histopia"]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
markers = [
"browser: headless browser checks requiring Playwright Chromium",
"integration: local tests that require external image data or optional WSI dependencies",
"uni2h: local tests that require a gated UNI2-h checkpoint and GPU dependencies",
"stain: local tests that require optional WSI stain dependencies",
"topology: local tests that require optional topology dependencies",
]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"