Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit 7cef18f

Browse files
KemingHegithub-actions[bot]
authored andcommitted
docs(src/assets/): update uv official documentation
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5c0260b commit 7cef18f

11 files changed

Lines changed: 47 additions & 23 deletions

File tree

src/assets/uv/_metadata.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
source_repo: astral-sh/uv
22
docs_path: docs
3-
updated_at: 2025-07-16T03:17:22Z
4-
commit_sha: 8d6d0678a71d86020caaf20107b1e81af29f471d
3+
updated_at: 2025-07-17T18:32:19Z
4+
commit_sha: 868ecd7b3a4855b3b84ec121a826fb218b843084

src/assets/uv/concepts/build-backend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To use uv as a build backend in an existing project, add `uv_build` to the
3636

3737
```toml title="pyproject.toml"
3838
[build-system]
39-
requires = ["uv_build>=0.7.21,<0.8.0"]
39+
requires = ["uv_build>=0.7.22,<0.8.0"]
4040
build-backend = "uv_build"
4141
```
4242

src/assets/uv/concepts/cache.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ The specifics of uv's caching semantics vary based on the nature of the dependen
1919

2020
If you're running into caching issues, uv includes a few escape hatches:
2121

22+
- To clear the cache entirely, run `uv cache clean`. To clear the cache for a specific package, run
23+
`uv cache clean <package-name>`. For example, `uv cache clean ruff` will clear the cache for the
24+
`ruff` package.
2225
- To force uv to revalidate cached data for all dependencies, pass `--refresh` to any command (e.g.,
2326
`uv sync --refresh` or `uv pip install --refresh ...`).
2427
- To force uv to revalidate cached data for a specific dependency pass `--refresh-package` to any
25-
command (e.g., `uv sync --refresh-package flask` or `uv pip install --refresh-package flask ...`).
28+
command (e.g., `uv sync --refresh-package ruff` or `uv pip install --refresh-package ruff ...`).
2629
- To force uv to ignore existing installed versions, pass `--reinstall` to any installation command
27-
(e.g., `uv sync --reinstall` or `uv pip install --reinstall ...`).
30+
(e.g., `uv sync --reinstall` or `uv pip install --reinstall ...`). (Consider running
31+
`uv cache clean <package-name>` first, to ensure that the cache is cleared prior to
32+
reinstallation.)
2833

2934
As a special case, uv will always rebuild and reinstall any local directory dependencies passed
3035
explicitly on the command-line (e.g., `uv pip install .`).

src/assets/uv/getting-started/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ uv provides a standalone installer to download and install uv:
2525
Request a specific version by including it in the URL:
2626

2727
```console
28-
$ curl -LsSf https://astral.sh/uv/0.7.21/install.sh | sh
28+
$ curl -LsSf https://astral.sh/uv/0.7.22/install.sh | sh
2929
```
3030

3131
=== "Windows"
@@ -41,7 +41,7 @@ uv provides a standalone installer to download and install uv:
4141
Request a specific version by including it in the URL:
4242

4343
```pwsh-session
44-
PS> powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.7.21/install.ps1 | iex"
44+
PS> powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.7.22/install.ps1 | iex"
4545
```
4646

4747
!!! tip

src/assets/uv/guides/integration/aws-lambda.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ the second stage, we'll copy this directory over to the final image, omitting th
9292
other unnecessary files.
9393

9494
```dockerfile title="Dockerfile"
95-
FROM ghcr.io/astral-sh/uv:0.7.21 AS uv
95+
FROM ghcr.io/astral-sh/uv:0.7.22 AS uv
9696

9797
# First, bundle the dependencies into the task root.
9898
FROM public.ecr.aws/lambda/python:3.13 AS builder
@@ -334,7 +334,7 @@ And confirm that opening http://127.0.0.1:8000/ in a web browser displays, "Hell
334334
Finally, we'll update the Dockerfile to include the local library in the deployment package:
335335

336336
```dockerfile title="Dockerfile"
337-
FROM ghcr.io/astral-sh/uv:0.7.21 AS uv
337+
FROM ghcr.io/astral-sh/uv:0.7.22 AS uv
338338

339339
# First, bundle the dependencies into the task root.
340340
FROM public.ecr.aws/lambda/python:3.13 AS builder

src/assets/uv/guides/integration/docker.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ docker run --rm -it ghcr.io/astral-sh/uv:debian uv --help
3131
The following distroless images are available:
3232

3333
- `ghcr.io/astral-sh/uv:latest`
34-
- `ghcr.io/astral-sh/uv:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/uv:0.7.21`
34+
- `ghcr.io/astral-sh/uv:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/uv:0.7.22`
3535
- `ghcr.io/astral-sh/uv:{major}.{minor}`, e.g., `ghcr.io/astral-sh/uv:0.7` (the latest patch
3636
version)
3737

@@ -75,7 +75,7 @@ And the following derived images are available:
7575

7676
As with the distroless image, each derived image is published with uv version tags as
7777
`ghcr.io/astral-sh/uv:{major}.{minor}.{patch}-{base}` and
78-
`ghcr.io/astral-sh/uv:{major}.{minor}-{base}`, e.g., `ghcr.io/astral-sh/uv:0.7.21-alpine`.
78+
`ghcr.io/astral-sh/uv:{major}.{minor}-{base}`, e.g., `ghcr.io/astral-sh/uv:0.7.22-alpine`.
7979

8080
For more details, see the [GitHub Container](https://github.com/astral-sh/uv/pkgs/container/uv)
8181
page.
@@ -113,7 +113,7 @@ Note this requires `curl` to be available.
113113
In either case, it is best practice to pin to a specific uv version, e.g., with:
114114

115115
```dockerfile
116-
COPY --from=ghcr.io/astral-sh/uv:0.7.21 /uv /uvx /bin/
116+
COPY --from=ghcr.io/astral-sh/uv:0.7.22 /uv /uvx /bin/
117117
```
118118

119119
!!! tip
@@ -131,7 +131,7 @@ COPY --from=ghcr.io/astral-sh/uv:0.7.21 /uv /uvx /bin/
131131
Or, with the installer:
132132

133133
```dockerfile
134-
ADD https://astral.sh/uv/0.7.21/install.sh /uv-installer.sh
134+
ADD https://astral.sh/uv/0.7.22/install.sh /uv-installer.sh
135135
```
136136

137137
### Installing a project
@@ -557,5 +557,5 @@ Verified OK
557557
!!! tip
558558

559559
These examples use `latest`, but best practice is to verify the attestation for a specific
560-
version tag, e.g., `ghcr.io/astral-sh/uv:0.7.21`, or (even better) the specific image digest,
560+
version tag, e.g., `ghcr.io/astral-sh/uv:0.7.22`, or (even better) the specific image digest,
561561
such as `ghcr.io/astral-sh/uv:0.5.27@sha256:5adf09a5a526f380237408032a9308000d14d5947eafa687ad6c6a2476787b4f`.

src/assets/uv/guides/integration/github.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: astral-sh/setup-uv@v6
4848
with:
4949
# Install a specific version of uv.
50-
version: "0.7.21"
50+
version: "0.7.22"
5151
```
5252
5353
## Setting up Python

src/assets/uv/guides/integration/pre-commit.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To make sure your `uv.lock` file is up to date even if your `pyproject.toml` fil
1919
repos:
2020
- repo: https://github.com/astral-sh/uv-pre-commit
2121
# uv version.
22-
rev: 0.7.21
22+
rev: 0.7.22
2323
hooks:
2424
- id: uv-lock
2525
```
@@ -30,7 +30,7 @@ To keep a `requirements.txt` file in sync with your `uv.lock` file:
3030
repos:
3131
- repo: https://github.com/astral-sh/uv-pre-commit
3232
# uv version.
33-
rev: 0.7.21
33+
rev: 0.7.22
3434
hooks:
3535
- id: uv-export
3636
```
@@ -41,7 +41,7 @@ To compile requirements files:
4141
repos:
4242
- repo: https://github.com/astral-sh/uv-pre-commit
4343
# uv version.
44-
rev: 0.7.21
44+
rev: 0.7.22
4545
hooks:
4646
# Compile requirements
4747
- id: pip-compile
@@ -54,7 +54,7 @@ To compile alternative requirements files, modify `args` and `files`:
5454
repos:
5555
- repo: https://github.com/astral-sh/uv-pre-commit
5656
# uv version.
57-
rev: 0.7.21
57+
rev: 0.7.22
5858
hooks:
5959
# Compile requirements
6060
- id: pip-compile
@@ -68,7 +68,7 @@ To run the hook over multiple files at the same time, add additional entries:
6868
repos:
6969
- repo: https://github.com/astral-sh/uv-pre-commit
7070
# uv version.
71-
rev: 0.7.21
71+
rev: 0.7.22
7272
hooks:
7373
# Compile requirements
7474
- id: pip-compile

src/assets/uv/pip/packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ $ uv pip install --group some/path/pyproject.toml:foo --group other/pyproject.to
128128

129129
!!! note
130130

131-
As in pip, `--group` flags do not apply to other sources specified with flags like `-r` or -e`.
131+
As in pip, `--group` flags do not apply to other sources specified with flags like `-r` or `-e`.
132132
For instance, `uv pip install -r some/path/pyproject.toml --group foo` sources `foo`
133133
from `./pyproject.toml` and **not** `some/path/pyproject.toml`.
134134

src/assets/uv/reference/cli.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2796,7 +2796,8 @@ uv python install [OPTIONS] [TARGETS]...
27962796
<p>May also be set with the <code>UV_PYTHON_INSTALL_MIRROR</code> environment variable.</p></dd><dt id="uv-python-install--native-tls"><a href="#uv-python-install--native-tls"><code>--native-tls</code></a></dt><dd><p>Whether to load TLS certificates from the platform's native certificate store.</p>
27972797
<p>By default, uv loads certificates from the bundled <code>webpki-roots</code> crate. The <code>webpki-roots</code> are a reliable set of trust roots from Mozilla, and including them in uv improves portability and performance (especially on macOS).</p>
27982798
<p>However, in some cases, you may want to use the platform's native certificate store, especially if you're relying on a corporate trust root (e.g., for a mandatory proxy) that's included in your system's certificate store.</p>
2799-
<p>May also be set with the <code>UV_NATIVE_TLS</code> environment variable.</p></dd><dt id="uv-python-install--no-bin"><a href="#uv-python-install--no-bin"><code>--no-bin</code></a></dt><dd><p>Do not install a Python executable into the <code>bin</code> directory</p>
2799+
<p>May also be set with the <code>UV_NATIVE_TLS</code> environment variable.</p></dd><dt id="uv-python-install--no-bin"><a href="#uv-python-install--no-bin"><code>--no-bin</code></a></dt><dd><p>Do not install a Python executable into the <code>bin</code> directory.</p>
2800+
<p>This can also be set with <code>UV_PYTHON_INSTALL_BIN=0</code>.</p>
28002801
</dd><dt id="uv-python-install--no-cache"><a href="#uv-python-install--no-cache"><code>--no-cache</code></a>, <code>--no-cache-dir</code>, <code>-n</code></dt><dd><p>Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation</p>
28012802
<p>May also be set with the <code>UV_NO_CACHE</code> environment variable.</p></dd><dt id="uv-python-install--no-config"><a href="#uv-python-install--no-config"><code>--no-config</code></a></dt><dd><p>Avoid discovering configuration files (<code>pyproject.toml</code>, <code>uv.toml</code>).</p>
28022803
<p>Normally, configuration files are discovered in the current directory, parent directories, or user configuration directories.</p>
@@ -2805,7 +2806,8 @@ uv python install [OPTIONS] [TARGETS]...
28052806
<p>May also be set with the <code>UV_NO_MANAGED_PYTHON</code> environment variable.</p></dd><dt id="uv-python-install--no-progress"><a href="#uv-python-install--no-progress"><code>--no-progress</code></a></dt><dd><p>Hide all progress outputs.</p>
28062807
<p>For example, spinners or progress bars.</p>
28072808
<p>May also be set with the <code>UV_NO_PROGRESS</code> environment variable.</p></dd><dt id="uv-python-install--no-python-downloads"><a href="#uv-python-install--no-python-downloads"><code>--no-python-downloads</code></a></dt><dd><p>Disable automatic downloads of Python.</p>
2808-
</dd><dt id="uv-python-install--no-registry"><a href="#uv-python-install--no-registry"><code>--no-registry</code></a></dt><dd><p>Do not register the Python installation in the Windows registry</p>
2809+
</dd><dt id="uv-python-install--no-registry"><a href="#uv-python-install--no-registry"><code>--no-registry</code></a></dt><dd><p>Do not register the Python installation in the Windows registry.</p>
2810+
<p>This can also be set with <code>UV_PYTHON_INSTALL_REGISTRY=0</code>.</p>
28092811
</dd><dt id="uv-python-install--offline"><a href="#uv-python-install--offline"><code>--offline</code></a></dt><dd><p>Disable network access.</p>
28102812
<p>When disabled, uv will only use locally cached data and locally available files.</p>
28112813
<p>May also be set with the <code>UV_OFFLINE</code> environment variable.</p></dd><dt id="uv-python-install--project"><a href="#uv-python-install--project"><code>--project</code></a> <i>project</i></dt><dd><p>Run the command within the given project directory.</p>

0 commit comments

Comments
 (0)