Skip to content

Commit 1d19713

Browse files
KemingHegithub-actions[bot]
authored andcommitted
docs(src/assets/): update uv official documentation
1 parent 3c0a264 commit 1d19713

File tree

13 files changed

+132
-88
lines changed

13 files changed

+132
-88
lines changed

src/assets/uv/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"source_repo": "astral-sh/uv",
33
"docs_path": "docs",
4-
"updated_at": "2025-11-25T22:05:38Z",
5-
"commit_sha": "17c1061676d3afbf7387505d8dd087f2146389ce"
4+
"updated_at": "2025-12-02T22:05:34Z",
5+
"commit_sha": "99c40f74c5cd3d252f9556f0e000c734a2fbc033"
66
}

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

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

3232
```toml title="pyproject.toml"
3333
[build-system]
34-
requires = ["uv_build>=0.9.12,<0.10.0"]
34+
requires = ["uv_build>=0.9.14,<0.10.0"]
3535
build-backend = "uv_build"
3636
```
3737

src/assets/uv/concepts/projects/dependencies.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,31 @@ dependencies = ["langchain"]
350350
langchain = { git = "https://github.com/langchain-ai/langchain", subdirectory = "libs/langchain" }
351351
```
352352

353+
Support for [Git LFS](https://git-lfs.com) is also configurable per source. By default, Git LFS
354+
objects will not be fetched.
355+
356+
```console
357+
$ uv add --lfs git+https://github.com/astral-sh/lfs-cowsay
358+
```
359+
360+
```toml title="pyproject.toml"
361+
[project]
362+
dependencies = ["lfs-cowsay"]
363+
364+
[tool.uv.sources]
365+
lfs-cowsay = { git = "https://github.com/astral-sh/lfs-cowsay", lfs = true }
366+
```
367+
368+
- When `lfs = true`, uv will always fetch LFS objects for this Git source.
369+
- When `lfs = false`, uv will never fetch LFS objects for this Git source.
370+
- When omitted, the `UV_GIT_LFS` environment variable is used for all Git sources without an
371+
explicit `lfs` configuration.
372+
373+
!!! important
374+
375+
Ensure Git LFS is installed and configured on your system before attempting to install sources
376+
using Git LFS, otherwise a build failure can occur.
377+
353378
### URL
354379

355380
To add a URL source, provide a `https://` URL to either a wheel (ending in `.whl`) or a source

src/assets/uv/concepts/projects/init.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ dependencies = []
113113
example-pkg = "example_pkg:main"
114114

115115
[build-system]
116-
requires = ["uv_build>=0.9.12,<0.10.0"]
116+
requires = ["uv_build>=0.9.14,<0.10.0"]
117117
build-backend = "uv_build"
118118
```
119119

@@ -136,7 +136,7 @@ dependencies = []
136136
example-pkg = "example_pkg:main"
137137

138138
[build-system]
139-
requires = ["uv_build>=0.9.12,<0.10.0"]
139+
requires = ["uv_build>=0.9.14,<0.10.0"]
140140
build-backend = "uv_build"
141141
```
142142

@@ -197,7 +197,7 @@ requires-python = ">=3.11"
197197
dependencies = []
198198

199199
[build-system]
200-
requires = ["uv_build>=0.9.12,<0.10.0"]
200+
requires = ["uv_build>=0.9.14,<0.10.0"]
201201
build-backend = "uv_build"
202202
```
203203

src/assets/uv/concepts/projects/workspaces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ bird-feeder = { workspace = true }
7575
members = ["packages/*"]
7676

7777
[build-system]
78-
requires = ["uv_build>=0.9.12,<0.10.0"]
78+
requires = ["uv_build>=0.9.14,<0.10.0"]
7979
build-backend = "uv_build"
8080
```
8181

@@ -106,7 +106,7 @@ tqdm = { git = "https://github.com/tqdm/tqdm" }
106106
members = ["packages/*"]
107107

108108
[build-system]
109-
requires = ["uv_build>=0.9.12,<0.10.0"]
109+
requires = ["uv_build>=0.9.14,<0.10.0"]
110110
build-backend = "uv_build"
111111
```
112112

@@ -188,7 +188,7 @@ dependencies = ["bird-feeder", "tqdm>=4,<5"]
188188
bird-feeder = { path = "packages/bird-feeder" }
189189

190190
[build-system]
191-
requires = ["uv_build>=0.9.12,<0.10.0"]
191+
requires = ["uv_build>=0.9.14,<0.10.0"]
192192
build-backend = "uv_build"
193193
```
194194

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.9.12/install.sh | sh
28+
$ curl -LsSf https://astral.sh/uv/0.9.14/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.9.12/install.ps1 | iex"
44+
PS> powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.9.14/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.9.12 AS uv
95+
FROM ghcr.io/astral-sh/uv:0.9.14 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.9.12 AS uv
337+
FROM ghcr.io/astral-sh/uv:0.9.14 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.9.12`
34+
- `ghcr.io/astral-sh/uv:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/uv:0.9.14`
3535
- `ghcr.io/astral-sh/uv:{major}.{minor}`, e.g., `ghcr.io/astral-sh/uv:0.8` (the latest patch
3636
version)
3737

@@ -95,7 +95,7 @@ And the following derived images are available:
9595

9696
As with the distroless image, each derived image is published with uv version tags as
9797
`ghcr.io/astral-sh/uv:{major}.{minor}.{patch}-{base}` and
98-
`ghcr.io/astral-sh/uv:{major}.{minor}-{base}`, e.g., `ghcr.io/astral-sh/uv:0.9.12-alpine`.
98+
`ghcr.io/astral-sh/uv:{major}.{minor}-{base}`, e.g., `ghcr.io/astral-sh/uv:0.9.14-alpine`.
9999

100100
In addition, starting with `0.8` each derived image also sets `UV_TOOL_BIN_DIR` to `/usr/local/bin`
101101
to allow `uv tool install` to work as expected with the default user.
@@ -136,7 +136,7 @@ Note this requires `curl` to be available.
136136
In either case, it is best practice to pin to a specific uv version, e.g., with:
137137

138138
```dockerfile
139-
COPY --from=ghcr.io/astral-sh/uv:0.9.12 /uv /uvx /bin/
139+
COPY --from=ghcr.io/astral-sh/uv:0.9.14 /uv /uvx /bin/
140140
```
141141

142142
!!! tip
@@ -154,7 +154,7 @@ COPY --from=ghcr.io/astral-sh/uv:0.9.12 /uv /uvx /bin/
154154
Or, with the installer:
155155

156156
```dockerfile
157-
ADD https://astral.sh/uv/0.9.12/install.sh /uv-installer.sh
157+
ADD https://astral.sh/uv/0.9.14/install.sh /uv-installer.sh
158158
```
159159

160160
### Installing a project
@@ -619,5 +619,5 @@ Verified OK
619619
!!! tip
620620

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

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v5
2828

2929
- name: Install uv
30-
uses: astral-sh/setup-uv@v6
30+
uses: astral-sh/setup-uv@v7
3131
```
3232
3333
It is considered best practice to pin to a specific uv version, e.g., with:
@@ -44,10 +44,10 @@ jobs:
4444
- uses: actions/checkout@v5
4545

4646
- name: Install uv
47-
uses: astral-sh/setup-uv@v6
47+
uses: astral-sh/setup-uv@v7
4848
with:
4949
# Install a specific version of uv.
50-
version: "0.9.12"
50+
version: "0.9.14"
5151
```
5252
5353
## Setting up Python
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v5
6767
6868
- name: Install uv
69-
uses: astral-sh/setup-uv@v6
69+
uses: astral-sh/setup-uv@v7
7070
7171
- name: Set up Python
7272
run: uv python install
@@ -98,7 +98,7 @@ jobs:
9898
python-version-file: ".python-version"
9999
100100
- name: Install uv
101-
uses: astral-sh/setup-uv@v6
101+
uses: astral-sh/setup-uv@v7
102102
```
103103

104104
Or, specify the `pyproject.toml` file to ignore the pin and use the latest version compatible with
@@ -121,7 +121,7 @@ jobs:
121121
python-version-file: "pyproject.toml"
122122
123123
- name: Install uv
124-
uses: astral-sh/setup-uv@v6
124+
uses: astral-sh/setup-uv@v7
125125
```
126126

127127
## Multiple Python versions
@@ -146,7 +146,7 @@ jobs:
146146
- uses: actions/checkout@v5
147147
148148
- name: Install uv and set the Python version
149-
uses: astral-sh/setup-uv@v6
149+
uses: astral-sh/setup-uv@v7
150150
with:
151151
python-version: ${{ matrix.python-version }}
152152
```
@@ -187,7 +187,7 @@ jobs:
187187
- uses: actions/checkout@v5
188188
189189
- name: Install uv
190-
uses: astral-sh/setup-uv@v6
190+
uses: astral-sh/setup-uv@v7
191191
192192
- name: Install the project
193193
run: uv sync --locked --all-extras --dev
@@ -212,7 +212,7 @@ persisting the cache:
212212

213213
```yaml title="example.yml"
214214
- name: Enable caching
215-
uses: astral-sh/setup-uv@v6
215+
uses: astral-sh/setup-uv@v7
216216
with:
217217
enable-cache: true
218218
```
@@ -377,7 +377,7 @@ jobs:
377377
- name: Checkout
378378
uses: actions/checkout@v5
379379
- name: Install uv
380-
uses: astral-sh/setup-uv@v6
380+
uses: astral-sh/setup-uv@v7
381381
- name: Install Python 3.13
382382
run: uv python install 3.13
383383
- name: Build

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.9.12
22+
rev: 0.9.14
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.9.12
33+
rev: 0.9.14
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.9.12
44+
rev: 0.9.14
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.9.12
57+
rev: 0.9.14
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.9.12
71+
rev: 0.9.14
7272
hooks:
7373
# Compile requirements
7474
- id: pip-compile

0 commit comments

Comments
 (0)