Open chrisrodrigue opened 1 month ago
Can workspaces be pulled in from a remote source?
[project]
dependencies = [
"some_dependency >=0.1.0,<1"
]
[tool.uv.sources]
some_dependency = { workspace = true }
[tool.uv.workspace]
include = [
"packages/some_dependency @ ssh://git@gitlab.mycompany.com/project/some_dependency.git"
]
Hello all,
I've been browsing the documentation/issues and I'm having trouble finding examples on annotating dependencies in
pyproject.toml
.My current use case is to be able to install an editable local dependency, such as another python project nested in my project as a submodule.
I would also like to support users who don't like to use submodules and would rather install my project directly from a git URL with their package manager, with the option to install it as editable so that they can get the entire project and make local modifications if necessary.
The reason it is important to have an editable installation is so that my entire project gets pulled into
.venv\src\myproject
, including my non-Python API (.venv\src\myproject\api
). Otherwise, my project is installed tosite-packages
and only includes my project's source (myproject\src\myproject\
) and not other components that developers may need, such as API or docs.See below for my comments/questions.