You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am exporting uv.lock to requirements.txt for bazel.
I have torch index overrides which aren't exported and produce impossible to insall requirements file:
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu" },
]
[[tool.uv.index]]
name = "pytorch-cpu"url = "https://download.pytorch.org/whl/cpu"explicit = true
This probably isn't as simple as writing all indexes to requirements file because ordering matters. Maybe there could be a way to manually give it indexes instead?
The text was updated successfully, but these errors were encountered:
+1 on this issue. We have the exactly same problem with multiple indexes that contain different flavours of torch. It would be great to be able to export a requirements file that contains the full URL where uv is taking the package from.
The format of a requirements.txt file does support supplying the full URL: https://pip.pypa.io/en/stable/reference/requirements-file-format/
I am exporting
uv.lock
torequirements.txt
for bazel.I have
torch
index overrides which aren't exported and produce impossible to insall requirements file:results in:
Looks like lock file contains index info so this should be possible:
This probably isn't as simple as writing all indexes to requirements file because ordering matters. Maybe there could be a way to manually give it indexes instead?
The text was updated successfully, but these errors were encountered: