-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (107 loc) · 2.74 KB
/
Copy pathpyproject.toml
File metadata and controls
116 lines (107 loc) · 2.74 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
# pyproject.toml
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pathforge"
version = "0.1.0"
description = "PathForge"
authors = [{ name = "Siemen Brussee" }]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"numpy",
"pandas",
"openpyxl",
"scikit-learn",
"scikit-image",
"opencv-python-headless",
"PyYAML",
"pydantic>=2.5,<3.0",
"h5py",
"tqdm",
"torch",
"pytorch-lightning",
"optuna",
"shapely",
"transformers==4.46.1",
"pillow>=12.0.0",
"reportlab>=4.4.10",
"einops>=0.8.2",
"einops-exts>=0.0.4",
"torchstain>=1.4.1",
"scikit-survival>=0.27.0",
"plotly",
"kaleido",
"typer",
"lazyslide>=0.10.0",
"wsidata",
"timm",
"geopandas",
"anndata>=0.10.9",
# xarray-schema (transitively required by lazyslide) still imports pkg_resources.
"setuptools>=68,<81",
]
[project.optional-dependencies]
cu128 = [
"torch==2.9.1",
"torchvision==0.24.1",
"torchaudio==2.9.1",
]
# ---- backends / heavier stacks ----
mil-backends = [
"torchmil",
"torchmetrics",
"torchsurv",
"pycox",
]
survival = ["scikit-survival"]
tcga = ["tcga-tools"]
gnn = ["torch-geometric>=2.5"]
distributed = [
"dask[distributed]",
"dask-jobqueue",
"psycopg[binary]",
]
hf = [
"huggingface_hub>=0.25,<1.0",
]
docs = [
"sphinx>=7.0",
"furo>=2024.1.29",
"myst-parser>=2.0",
"sphinx-autodoc-typehints>=1.25",
]
dev = [
"pytest>=8.4.2",
"pytest-cov>=7.0.0",
"pytest-mock>=3.14",
"ruff>=0.6",
]
[project.scripts]
pathforge = "pathforge.cli.app:main"
pathforge-benchmark = "pathforge.cli.benchmark_run:main"
pathforge-evaluate = "pathforge.cli.evaluate_run:main"
pathforge-optimize = "pathforge.cli.optimize_run:main"
pathforge-features = "pathforge.cli.features_run:main"
pathforge-mean-rgb = "pathforge.cli.retrieval_mean_rgb:main"
pathforge-infer = "pathforge.cli.infer_run:main"
pathforge-infer-model = "pathforge.cli.inference:main"
pathforge-visualize = "pathforge.cli.visualize_run:main"
pathforge-slide-retrieval-representations = "pathforge.cli.retrieval_representations:main"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-q --import-mode=importlib"
testpaths = ["tests"]
markers = [
"smoke: quick high-level sanity checks",
]
[tool.uv.sources]
torch = [{ index = "pytorch-cu128", extra = "cu128" }]
torchvision = [{ index = "pytorch-cu128", extra = "cu128" }]
torchaudio = [{ index = "pytorch-cu128", extra = "cu128" }]
tcga-tools = { git = "https://github.com/LUMCPathAI/TCGA-Tools.git", rev = "86b835e876c6109fb225ebb73804ce148aaa4159" }
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true