Open BenediktMaag opened 2 months ago
Actually i found the error. I forgot to put the dependencies under [project]. Once i move them the error is more understandable from:
❯ : uv pip install -r pyproject.toml --extra-index-url file:\C:\temp\simple\
error: Failed to build: file:///C:/temp/test_install/
Caused by: Failed to install requirements from setup.py build (resolve)
Caused by: No solution found when resolving: setuptools>=40.8.0
Caused by: failed to read from file C:\temp\simple\setuptools\index.html
Caused by: The system cannot find the path specified. (os error 3)
to
❯ : uv pip install -r pyproject.toml --extra-index-url file:\C:\temp\simple\
error: Failed to parse: pyproject.toml
Caused by: TOML parse error at line 1, column 1
|
1 | [project]
| ^^^^^^^^^^
missing field name
and once i add name and version it works: ❯ : uv pip install -r pyproject.toml --extra-index-url file:\C:\temp\simple\ Resolved 1 package in 10ms Installed 1 package in 14ms
IMO this can be closed but you might consider improving the error message to hint no dependencies found in project.dependencies
Thanks! Can you share the full contents of the pyproject.toml
that was initially failing? Need to figure out the right heuristic because (e.g.) projects that use Poetry won't have a project
table either.
Either: ❯ : bat pyproject.toml -n 1 [tool.uv.pip] 2 extra-index-url = ["file:\\C:\temp\simple\"] ❯ : uv pip install -r pyproject.toml error: Failed to parse metadata from built wheel Caused by: metadata field Name not found
Or empty pyproject and:
❯ : uv pip install -r pyproject.toml --extra-index-url file:\C:\temp\simple\
error: Failed to build: file:///C:/temp/test_install/
Caused by: Failed to install requirements from setup.py build (resolve)
Caused by: No solution found when resolving: setuptools>=40.8.0
Caused by: failed to read from file C:\temp\simple\setuptools\index.html
Caused by: The system cannot find the path specified. (os error 3)
Initially i tried it with: ❯ : bat pyproject.toml -n 1 dependencies = [ 2 "pyplugin" 3 ]
but that seems to be ignored then anyway.
Thanks!
Installing the example plugin works when directly declaring it in the prompt:
❯ : uv pip install pyplugin --extra-index-url file:\C:\temp\simple\ Resolved 1 package in 11ms Installed 1 package in 19ms
When moving the dependency into the pyproject.toml installation fails: