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
$ uv init .
warning: `uv init` is experimental and may change without warning
Initialized project `foo` at `/home/dch/foo`
$ uv add --extra-index-url="https://download.pytorch.org/whl/cpu" -- torch
warning: `uv add` is experimental and may change without warning
Using Python 3.10.12 interpreter at: /usr/bin/python3
Creating virtualenv at: .venv
Resolved 10 packages in 2.50s
error: Failed to prepare distributions
Caused by: Failed to fetch wheel: foo @ file:///home/dch/foo
Caused by: Failed to build: `foo @ file:///home/dch/foo`
Caused by: Build backend failed to build wheel through `build_editable()` with exit status: 1--- stdout:--- stderr:Traceback (most recent call last): File "<string>", line 11, in<module> File "/home/dch/.cache/uv/builds-v0/.tmpqaB24C/lib/python3.10/site-packages/hatchling/build.py", line 83, in build_editablereturn os.path.basename(next(builder.build(directory=wheel_directory, versions=['editable']))) File "/home/dch/.cache/uv/builds-v0/.tmpqaB24C/lib/python3.10/site-packages/hatchling/builders/plugin/interface.py", line 90, in buildself.metadata.validate_fields() File "/home/dch/.cache/uv/builds-v0/.tmpqaB24C/lib/python3.10/site-packages/hatchling/metadata/core.py", line 261, in validate_fieldsself.core.validate_fields() File "/home/dch/.cache/uv/builds-v0/.tmpqaB24C/lib/python3.10/site-packages/hatchling/metadata/core.py", line 1353, in validate_fields getattr(self, attribute) File "/home/dch/.cache/uv/builds-v0/.tmpqaB24C/lib/python3.10/site-packages/hatchling/metadata/core.py", line 1224, in dependencies self._dependencies = list(self.dependencies_complex) File "/home/dch/.cache/uv/builds-v0/.tmpqaB24C/lib/python3.10/site-packages/hatchling/metadata/core.py", line 1203, in dependencies_complex raise ValueError(message) from NoneValueError: Dependency #1 of field `project.dependencies` is invalid: Expected end or semicolon (after version specifier) torch>=2.4.0+cpu~~~~~~~^$ uv versionuv 0.2.33
torch>=2.4.0+cpu was introduced by uv itself
The text was updated successfully, but these errors were encountered:
I guess strictly speaking it is hatchling declaring that the dependency is invalid, but it is right: per PEP440 "Local version identifiers are NOT permitted in this version specifier."
torch>=2.4.0+cpu
was introduced byuv
itselfThe text was updated successfully, but these errors were encountered: