Skip to content

Commit 9323558

Browse files
authored
Merge pull request #131 from KatherLab/fix/build-4
Dependency Update / Build system
2 parents bb0a469 + d603470 commit 9323558

File tree

2 files changed

+418
-147
lines changed

2 files changed

+418
-147
lines changed

pyproject.toml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies = [
4040
"pyyaml>=6.0.2",
4141
"scikit-learn>=1.6.1",
4242
"scipy>=1.16.1",
43-
"torch>=2.7.1",
43+
"torch>=2.7.1,<2.8.0",
4444
"torchmetrics>=1.6.0",
4545
"torchvision>=0.22.1",
4646
"tqdm>=4.67.1",
@@ -99,11 +99,9 @@ virchow2 = [
9999
]
100100
cobra = [
101101
"stamp[flash-attention]",
102-
"causal-conv1d",
103-
"mamba-ssm",
104-
# "causal-conv1d @ git+https://github.com/KatherLab/causal-conv1d.git@dededae18d0258ccec833ab950d45279f1616fd1",
105-
# "mamba-ssm @ git+https://github.com/KatherLab/mamba.git@3dad301098b721ee5c93d9ad16aafbbc1dc42cfd",
106-
"cobra @ git+http://github.com/KatherLab/COBRA.git@73712e9ffa4d1bdecf9be9826d66094bd2b17534",
102+
"causal-conv1d>=1.5.3.post1",
103+
"mamba-ssm>=2.2.6.post3",
104+
"cobra @ git+http://github.com/KatherLab/COBRA.git@49d231191db5a9c2ea37a2398dd922c8c9ee9cdb",
107105
"jinja2>=3.1.4",
108106
"triton"
109107
]
@@ -179,10 +177,19 @@ conflicts = [
179177
{ extra = "gpu" }
180178
]
181179
]
180+
build-constraint-dependencies = [
181+
"torch<2.8",
182+
"torchvision<0.23",
183+
]
184+
182185

183186
[tool.uv.sources]
184-
torch = { index = "pytorch-cu128" }
185-
torchvision = { index = "pytorch-cu128" }
187+
torch = [
188+
{ index = "pytorch-cu128", marker = "sys_platform != 'darwin'" }
189+
]
190+
torchvision = [
191+
{ index = "pytorch-cu128", marker = "sys_platform != 'darwin'" }
192+
]
186193

187194
[[tool.uv.index]]
188195
name = "pytorch-cu128"
@@ -224,6 +231,7 @@ requires-dist = [
224231
name = "causal-conv1d"
225232
requires-dist = [
226233
"setuptools",
234+
"torch"
227235
]
228236

229237
[tool.uv.extra-build-dependencies]

0 commit comments

Comments
 (0)