Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide uv sync --all-dev for workspace projects #8002

Closed
Wurstnase opened this issue Oct 8, 2024 · 3 comments
Closed

Provide uv sync --all-dev for workspace projects #8002

Wurstnase opened this issue Oct 8, 2024 · 3 comments
Labels
needs-decision Undecided if this should be done

Comments

@Wurstnase
Copy link

I would like to install all dev dependencies in the workspaces.

Maybe you have the following structure:

.
├── pyproject.toml
├── uv.lock
├── cdk
│  ├── pyproject.toml
│  ├── src
│  │  └── cdk
│  │     └── __init__.py
└── sources
   ├── pyproject.toml
   ├── README.md
   └── src
      ├── service_a
      │  └── __init__.py
      └── service_b
         └── __init__.py

In each pyproject.toml are different dev-dependencies.

Currently I can install only the dev-dependencies once each project. E.g.

uv sync  # installs dev from root only
uv sync --project cdk  # installs dev from cdk only
uv sync --project sources  # installs dev from sources only

I can work around this issue with

uv sync && uv sync --project cdk --inexact && uv sync --project sources --inexact

But a more handy version would be very nice. Something like

uv sync --all-dev
@charliermarsh
Copy link
Member

I think this may be best handled via an --all-packages flag to sync an entire workspace, as in: #6935.

@charliermarsh charliermarsh added the needs-decision Undecided if this should be done label Oct 8, 2024
@charliermarsh charliermarsh changed the title Provide uv sync --all-dev for workspace projects Provide uv sync --all-dev for workspace projects Oct 8, 2024
@zanieb
Copy link
Member

zanieb commented Oct 21, 2024

Let's track this in the linked issue.

@zanieb zanieb closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
@charliermarsh
Copy link
Member

uv sync --all-packages exists in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-decision Undecided if this should be done
Projects
None yet
Development

No branches or pull requests

3 participants