Open Bobronium opened 1 year ago
The feature @Bobronium you've mentioned is described here. I was struggling with the same. With this technique you can install from source (also defining a specific git reference like a branch). But it is not installing the dependencies in editable mode (referencing a git clone into src
folder of the virtual env, like pip install -e
does). 👉 Discussion on that is here #588
I ended up setting skip-install = true
and creating a workaround using requirements.txt files and uv. However, with the latest version of uv you can do this, which seems to work:
[project]
...
dependencies = [
...
"local_dep"
...
]
[tool.uv.sources]
local_dep = { path = "path/to/directory", editable = "true" }
or more simply, add it through the cli:
uv add --editable path/to/package/directory
Consider following configuration:
How to tell hatch to install
sub_requirement
in editable mode? Inserting-e
in any place in requirement string gives similar value errors: