mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35: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
|
## Installing Dependencies for the Entire Workspace or Specific Packages
|
||||||
|
|
||||||
To install the dependencies for the entire workspace and its sub-workspaces, you can run:
|
To install the dependencies for the entire workspace and its sub-workspaces, you can run:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
uv sync --all-packages
|
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:
|
This will install the dependencies for the root workspace as well as all the packages defined within
|
||||||
1. First, install the dependencies for the root workspace by running:
|
your workspace.
|
||||||
```shell
|
|
||||||
uv sync
|
If you want to install dependencies for the root workspace and a specific sub-workspace only, follow
|
||||||
```
|
these steps:
|
||||||
2. Then, install the dependencies for the specific sub-workspace (for example, bird-feeder) by running:
|
|
||||||
```shell
|
1. First, install the dependencies for the root workspace by running:
|
||||||
uv sync --inexact --package bird-feeder
|
|
||||||
```
|
```shell
|
||||||
The --inexact flag ensures that only the specified package and its dependencies are installed, without impacting the rest of the workspace.
|
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
|
## Workspace sources
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue