mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
fix style
This commit is contained in:
parent
9c4c69c600
commit
320052f466
1 changed files with 22 additions and 11 deletions
|
@ -59,21 +59,32 @@ example, `uv run` and `uv run --package albatross` would be equivalent, while
|
|||
## Installing Dependencies for the Entire Workspace or Specific Packages
|
||||
|
||||
To install the dependencies for the entire workspace and its sub-workspaces, you can run:
|
||||
|
||||
```shell
|
||||
uv sync --all-packages
|
||||
```
|
||||
This will install the dependencies for the root workspace as well as all the packages defined within your workspace.
|
||||
|
||||
If you want to install dependencies for the root workspace and a specific sub-workspace only, follow these steps:
|
||||
1. First, install the dependencies for the root workspace by running:
|
||||
```shell
|
||||
uv sync
|
||||
```
|
||||
2. Then, install the dependencies for the specific sub-workspace (for example, bird-feeder) by running:
|
||||
```shell
|
||||
uv sync --inexact --package bird-feeder
|
||||
```
|
||||
The --inexact flag ensures that only the specified package and its dependencies are installed, without impacting the rest of the workspace.
|
||||
This will install the dependencies for the root workspace as well as all the packages defined within
|
||||
your workspace.
|
||||
|
||||
If you want to install dependencies for the root workspace and a specific sub-workspace only, follow
|
||||
these steps:
|
||||
|
||||
1. First, install the dependencies for the root workspace by running:
|
||||
|
||||
```shell
|
||||
uv sync
|
||||
```
|
||||
|
||||
2. Then, install the dependencies for the specific sub-workspace (for example, bird-feeder) by
|
||||
running:
|
||||
|
||||
```shell
|
||||
uv sync --inexact --package bird-feeder
|
||||
```
|
||||
|
||||
The --inexact flag ensures that only the specified package and its dependencies are installed,
|
||||
without impacting the rest of the workspace.
|
||||
|
||||
## Workspace sources
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue