Skip to content

Commit 2cd6921

Browse files
committed
cpu torch by default
1 parent 39f4590 commit 2cd6921

File tree

1 file changed

+5
-41
lines changed

1 file changed

+5
-41
lines changed

pyproject.toml

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -23,67 +23,31 @@ dependencies = [
2323
"geopandas>=1.0",
2424
"rasterio>=1.4",
2525
"spatial_image>=1.2",
26-
"spatialdata>=0.6.1,<0.7",
26+
"spatialdata>=0.6.1",
2727
"ome-zarr>=0.13",
2828
"zarr>=3.0.0",
2929
"anndata>=0.12.0",
3030
"cp-measure>=0.1.13",
3131
"pycytominer>=1.4",
3232
"toml>=0.10",
3333
"matplotlib>=3.10",
34+
"torch>=2.7.0,<3",
35+
"torchvision>=0.22.0,<1",
3436
]
3537

3638
[project.scripts]
3739
feature_blocks = "feature_blocks.main:app"
3840

3941
[project.optional-dependencies]
40-
cpu = [
41-
"torch>=2.7.0,<3",
42-
"torchvision>=0.22.0,<1",
43-
]
44-
cu128 = [
45-
"torch>=2.7.0,<3",
46-
"torchvision>=0.22.0,<1",
47-
]
4842
benchmarking = [
4943
"jupyterlab>=4.5.0",
5044
"scanpy[leiden]",
5145
"spatialdata_plot",
5246
]
5347

5448
[tool.uv]
55-
environments = [
56-
"sys_platform == 'linux'",
57-
"sys_platform == 'darwin'",
58-
]
59-
conflicts = [
60-
[
61-
{ extra = "cpu" },
62-
{ extra = "cu128" },
63-
],
64-
]
6549
cache-keys = [
66-
{ file = "pyproject.toml" },
50+
{ file = "pyproject.toml" },
6751
{ file = "**/**.py.txt" }, # Ensure rebuilds are triggered upon code changes
6852
{ git = { commit = true } }
69-
]
70-
71-
[tool.uv.sources]
72-
torch = [
73-
{ index = "pytorch-cpu", extra = "cpu" },
74-
{ index = "pytorch-cu128", extra = "cu128" },
75-
]
76-
torchvision = [
77-
{ index = "pytorch-cpu", extra = "cpu" },
78-
{ index = "pytorch-cu128", extra = "cu128" },
79-
]
80-
81-
[[tool.uv.index]]
82-
name = "pytorch-cpu"
83-
url = "https://download.pytorch.org/whl/cpu"
84-
explicit = true
85-
86-
[[tool.uv.index]]
87-
name = "pytorch-cu128"
88-
url = "https://download.pytorch.org/whl/cu128"
89-
explicit = true
53+
]

0 commit comments

Comments
 (0)