mirror of https://github.com/astral-sh/uv
Extend the reference documentation for `uv pip sync` (#12683)
See https://github.com/astral-sh/uv/issues/12680
This commit is contained in:
parent
a0f5c7250b
commit
8ea34b56a1
|
|
@ -625,6 +625,14 @@ pub enum PipCommand {
|
||||||
)]
|
)]
|
||||||
Compile(PipCompileArgs),
|
Compile(PipCompileArgs),
|
||||||
/// Sync an environment with a `requirements.txt` file.
|
/// Sync an environment with a `requirements.txt` file.
|
||||||
|
///
|
||||||
|
/// When syncing an environment, any packages not listed in the `requirements.txt` file will
|
||||||
|
/// be removed. To retain extraneous packages, use `uv pip install` instead.
|
||||||
|
///
|
||||||
|
/// The `requirements.txt` file is presumed to be the output of a `pip compile` or `uv export`
|
||||||
|
/// operation, in which it will include all transitive dependencies. If transitive dependencies
|
||||||
|
/// are not present in the file, they will not be installed. Use `--strict` to warn if any
|
||||||
|
/// transitive dependencies are missing.
|
||||||
#[command(
|
#[command(
|
||||||
after_help = "Use `uv help pip sync` for more details.",
|
after_help = "Use `uv help pip sync` for more details.",
|
||||||
after_long_help = ""
|
after_long_help = ""
|
||||||
|
|
|
||||||
|
|
@ -6111,7 +6111,11 @@ uv pip compile [OPTIONS] <SRC_FILE|--group <GROUP>>
|
||||||
|
|
||||||
### uv pip sync
|
### uv pip sync
|
||||||
|
|
||||||
Sync an environment with a `requirements.txt` file
|
Sync an environment with a `requirements.txt` file.
|
||||||
|
|
||||||
|
When syncing an environment, any packages not listed in the `requirements.txt` file will be removed. To retain extraneous packages, use `uv pip install` instead.
|
||||||
|
|
||||||
|
The `requirements.txt` file is presumed to be the output of a `pip compile` or `uv export` operation, in which it will include all transitive dependencies. If transitive dependencies are not present in the file, they will not be installed. Use `--strict` to warn if any transitive dependencies are missing.
|
||||||
|
|
||||||
<h3 class="cli-reference">Usage</h3>
|
<h3 class="cli-reference">Usage</h3>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue