We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 533b91f commit 2480ab5Copy full SHA for 2480ab5
pyproject.toml
@@ -1,5 +1,3 @@
1
-[tool.uv.pip]
2
-extra-index-url = ["https://download.pytorch.org/whl/cpu"]
3
4
[project]
5
name = "merino-py"
@@ -33,11 +31,22 @@ dependencies = [
33
31
"ua-parser>=1.0,<2.0",
34
32
"redis[hiredis]>=5.2.1,<6",
35
"circuitbreaker>=2.1.3",
36
- "torch>=2.9.1,<3",
37
- "safetensors>=0.7.0,<1",
38
"mozilla-merino-ext>=0.2.0",
+ "torch>=2.9.1",
+ "safetensors>=0.7.0,<1"
39
]
40
+[[tool.uv.index]]
+name = "pytorch-cpu"
41
+url = "https://download.pytorch.org/whl/cpu"
42
+explicit = true
43
+
44
+[tool.uv.sources]
45
+torch = [
46
+ { index = "pytorch-cpu" },
47
+]
48
49
50
[project.scripts]
51
merino-jobs = "merino.jobs.cli:cli"
52
probe-images = "merino.jobs.utils.domain_tester:main"
0 commit comments