-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathpyproject.toml
103 lines (93 loc) · 2.68 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
[project]
name = "stamp"
version = "2.0.0"
authors = [
{ name = "Omar El Nahhas", email = "[email protected]" },
{ name = "Marko van Treeck", email = "[email protected]" },
{ name = "Georg Wölflein", email = "[email protected]" },
{ name = "Tim Lenz", email = "[email protected]" },
{ name = "Laura Žigutytė", email = "[email protected]" },
{ name = "Cornelius Kummer", email = "[email protected]" },
]
description = "A protocol for Solid Tumor Associative Modeling in Pathology"
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"beartype>=0.19.0",
"einops>=0.8.0",
"h5py>=3.12.1",
"jaxtyping>=0.2.36",
"lightning>=2.4.0",
"matplotlib>=3.9.2",
"numpy>=2.2.2",
"opencv-python>=4.10.0.84",
"openpyxl>=3.1.5",
"openslide-bin>=4.0.0.6",
"openslide-python>=1.4.1",
"packaging>=24.2",
"pandas>=2.2.3",
"pillow>=11.1.0",
"pydantic>=2.10.3",
"pyyaml>=6.0.2",
"scikit-learn>=1.5.2",
"scipy>=1.15.1",
"torch>=2.5.1",
"torchmetrics>=1.6.0",
"torchvision>=0.20.1",
"tqdm>=4.66.6",
]
[project.optional-dependencies]
dinobloom = [
"torchvision>=0.20.1",
"xformers>=0.0.28.post3",
]
conch = [
"huggingface-hub>=0.26.2",
"conch @ git+https://github.com/Mahmoodlab/CONCH.git@02d6ac59cc20874bff0f581de258c2b257f69a84",
]
ctranspath = [
"gdown>=5.2.0",
"torchvision>=0.20.1",
]
uni = [
"huggingface-hub>=0.26.2",
#TODO change the git repo back to mahmoodlab's once our pull request has been accepted
"uni @ git+https://github.com/KatherLab/uni.git@f37c299eb0bffa0e585f120974082cfec6ee6d53",
]
virchow2 = [
"huggingface-hub>=0.27.1",
"timm>=0.9.11",
"torch>=2.0.0",
]
# Blanket target
all = ["stamp[dinobloom,conch,ctranspath,uni,virchow2]"]
[project.scripts]
"stamp" = "stamp.__main__:main"
[project.urls]
"Homepage" = "https://github.com/KatherLab/STAMP"
"Bug Tracker" = "https://github.com/KatherLab/STAMP/issues"
[dependency-groups]
dev = [
"huggingface-hub>=0.27.1",
"ipykernel>=6.29.5",
"pyright>=1.1.389,!=1.1.391",
"pytest>=8.3.4",
"ruff>=0.8.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
# To allow referencing git repos in dependencies
allow-direct-references = true
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.ruff]
lint.ignore = ["F722"] # https://docs.kidger.site/jaxtyping/faq/#flake8-or-ruff-are-throwing-an-error