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
Environment
UV Version: uv 0.6.8 (c1ef48276 2025-03-18)
Python Version: 3.13.0
OS: Mac OS
Issue Description
I've set up a UV workspace with multiple packages that each have their own dev dependencies defined in the [dependency-groups] section. When I run commands that should install dev dependencies, only the root workspace's dev dependencies get installed, but the dev dependencies from the workspace members are missing.
Could someone please tell me if I am doing something wrong or if I perhaps have the wrong expectation of what can be accomplished with workspaces and/or dependency-groups?
RensDimmendaal
changed the title
Why are dev dependency-groups of workspace members not being installed?
Question: Why are dev dependency-groups of workspace members not being installed?
Mar 19, 2025
RensDimmendaal
changed the title
Question: Why are dev dependency-groups of workspace members not being installed?
Question: why are dev dependency-groups of workspace members not being installed?
Mar 19, 2025
This is intentional. uv sync installs the workspace root by default, and so you get the workspace root's dev dependencies. If you want the dev dependency for a member, you should uv sync -p that member. Just like you wouldn't want to import one of the member's dependencies from the root package without declaring it as a dependency yourself, you shouldn't be accessing dev dependencies on members like that.
@charliermarsh thank you so much for the quick reply. uv sync --all-packages was indeed the command that I had missed. Thanks again, I really enjoy using uv.
Question
Environment
UV Version:
uv 0.6.8 (c1ef48276 2025-03-18)
Python Version: 3.13.0
OS: Mac OS
Issue Description
I've set up a UV workspace with multiple packages that each have their own dev dependencies defined in the [dependency-groups] section. When I run commands that should install dev dependencies, only the root workspace's dev dependencies get installed, but the dev dependencies from the workspace members are missing.
Could someone please tell me if I am doing something wrong or if I perhaps have the wrong expectation of what can be accomplished with workspaces and/or dependency-groups?
Steps to Reproduce
dir tree:
./pyproject.toml
:./ws/my-ws-member/pyproject.toml
:ran commands from root dir:
uv sync
uv tree
output:uv pip freeze
:What I would expect is also
black
the dev group-dependency frommy-ws-member
to also be included. And I'm puzzled why it is notPlatform
macOS Darwin 24.2.0 arm64uv
Version
uv 0.6.8 (c1ef482 2025-03-18)
The text was updated successfully, but these errors were encountered: