-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
184 lines (172 loc) · 3.79 KB
/
pyproject.toml
File metadata and controls
184 lines (172 loc) · 3.79 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "slide2vec"
version = "4.4.0"
description = "Embedding of whole slide images with Foundation Models"
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
authors = [
{ name = "Clément Grisi", email = "clement.grisi@radboudumc.nl" },
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"hs2p[asap,cucim,openslide,sam2,vips]>=4.0.1",
"omegaconf",
"matplotlib",
"numpy<2",
"pandas",
"pillow",
"rich",
"torch",
"torchvision",
"transformers",
"wandb",
"einops",
"timm",
"huggingface_hub",
]
[project.urls]
Homepage = "https://github.com/clemsgrs/slide2vec"
"Bug Tracker" = "https://github.com/clemsgrs/slide2vec/issues"
[project.scripts]
slide2vec = "slide2vec.cli:entrypoint"
[project.optional-dependencies]
hoptimus = [
"torch>=2.0",
"torchvision>=0.15.0",
"xformers>=0.0.18",
]
virchow = [
"timm>=0.9.11",
"torch>=2.0",
]
uni = [
"torch>=2.0",
"timm>=0.9.8",
"xformers>=0.0.18",
]
prism = [
"transformers~=4.53.0",
"torch>=2.3,<2.8",
"einops==0.8.0",
"environs==11.0.0",
"sacremoses==0.1.1",
"xformers==0.0.31",
]
hibou = [
"scipy~=1.8.1",
"scikit-image~=0.19.3",
]
moozy = [
"huggingface_hub>=0.30.0,<1.0",
]
titan = [
"torch==2.0.1",
"timm==1.0.3",
"einops==0.6.1",
"einops-exts==0.0.4",
"transformers==4.46.0",
]
fm = [
"omegaconf>=2.3.0",
"matplotlib",
"numpy<2",
"pandas",
"pillow",
"rich",
"hs2p[asap,cucim,openslide,sam2,vips]>=4.0.1",
"wandb",
"torch>=2.3,<2.8",
"torchvision>=0.18.0",
"einops>=0.8.0",
"timm>=1.0.3",
"huggingface_hub>=0.30.0,<1.0",
"environs",
"einops-exts>=0.0.4",
"transformers>=4.53",
"sacremoses",
"xformers>=0.0.31",
"scipy>=1.8.1",
"scikit-image>=0.19.3",
"torchmetrics>=0.10.3",
"fvcore",
"iopath",
"webdataset",
"scikit-survival",
"scikit-learn",
"fairscale",
"packaging==23.2",
"ninja==1.11.1.1",
"psutil<6",
]
docs = [
"sphinx>=8.1",
"furo",
"myst-parser",
"sphinx-copybutton",
"sphinx-autodoc-typehints",
]
testing = [
"pytest>=6.0",
"pytest-cov>=2.0",
"mypy>=0.910",
"flake8>=3.9",
"flake8-pyproject>=1.2.3",
"tox>=3.24",
]
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.packages.find]
include = ["slide2vec*"]
[tool.setuptools.package-data]
slide2vec = ["py.typed"]
"slide2vec.configs" = ["*.yaml", "models/*.yaml", "preprocessing/*.yaml"]
[tool.pytest.ini_options]
addopts = "--cov=slide2vec"
testpaths = [
"tests",
]
[tool.mypy]
mypy_path = "."
check_untyped_defs = true
disallow_any_generics = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true
[tool.flake8]
max-line-length = 160
[tool.bumpver]
current_version = "4.4.0"
version_pattern = "MAJOR.MINOR.PATCH"
commit = false # We do version bumping in CI, not as a commit
tag = false # Git tag already exists — we don't auto-tag
push = false # Don't push anything in CI
files = [
"pyproject.toml",
"slide2vec/__init__.py"
]
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'^current_version = "{version}"$',
'^version = "{version}"$',
]
"slide2vec/__init__.py" = [
'^__version__ = "{version}"$',
]