-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Hi!
I have just noticed that dependencies between workspace members are editable by default.
Steps:
uv init --package my_package
cd my_package/src/my_package
uv init --lib core_lib
uv init --package cli
cd cliWhether we do uv add ../core-lib or uv add --editable ../core-lib we get the same result.
The pyproject.toml in cli doesn't reflect an editable or not dependency. It only adds this:
...
dependencies = [
"core-lib",
]
...
[tool.uv.sources]
core-lib = { workspace = true }We only know if the dependency is editable or not through the lockfile:
[[package]]
name = "cli"
version = "0.1.0"
source = { editable = "src/my_package/cli" }
dependencies = [
{ name = "core-lib" },
]
[package.metadata]
requires-dist = [{ name = "core-lib", editable = "src/my_package/core_lib" }]
And it's the same case for both types of installations.
I'm not suggesting that this behavior should be changed, but maybe a small addition to the doc for that would be cool 😄
I have added a very note to the doc in case it can lighten the workload for the maintainers, but don't hesitate to close the PR / this issue or just signal that to me and I'll do it myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation