Skip to content

Commit c198e22

Browse files
Bump version to v0.5.17 (#10480)
1 parent 8420195 commit c198e22

File tree

10 files changed

+73
-17
lines changed

10 files changed

+73
-17
lines changed

CHANGELOG.md

+56
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
# Changelog
22

3+
## 0.5.17
4+
5+
This release includes support for generating lockfiles from scripts based on inline metadata, as defined in PEP 723.
6+
7+
By default, scripts remain unlocked, and must be locked explicitly with `uv lock --script /path/to/script.py`, which
8+
will generate a lockfile adjacent to the script (e.g., `script.py.lock`). Once generated, the lockfile will be
9+
respected (and updated, if necessary) across `uv run --script`, `uv add --script`, and `uv remove --script` invocations.
10+
11+
This release also includes support for `uv export --script` and `uv tree --script`. Both commands support PEP 723
12+
scripts with and without accompanying lockfiles.
13+
14+
### Enhancements
15+
16+
- Add support for locking PEP 723 scripts ([#10135](https://github.com/astral-sh/uv/pull/10135))
17+
- Respect PEP 723 script lockfiles in `uv run` ([#10136](https://github.com/astral-sh/uv/pull/10136))
18+
- Update PEP 723 lockfile in `uv add --script` ([#10145](https://github.com/astral-sh/uv/pull/10145))
19+
- Update PEP 723 lockfile in `uv remove --script` ([#10162](https://github.com/astral-sh/uv/pull/10162))
20+
- Add `--script` support to `uv export` for PEP 723 scripts ([#10160](https://github.com/astral-sh/uv/pull/10160))
21+
- Add `--script` support to `uv tree` for PEP 723 scripts ([#10159](https://github.com/astral-sh/uv/pull/10159))
22+
- Add `ls` alias to `uv {tool, python, pip} list` ([#10240](https://github.com/astral-sh/uv/pull/10240))
23+
- Allow reading `--with-requirements` from stdin in `uv add` and `uv run` ([#10447](https://github.com/astral-sh/uv/pull/10447))
24+
- Warn-and-ignore for unsupported `requirements.txt` options ([#10420](https://github.com/astral-sh/uv/pull/10420))
25+
26+
### Preview features
27+
28+
- Add remaining Python type annotations to build backend ([#10434](https://github.com/astral-sh/uv/pull/10434))
29+
30+
### Performance
31+
32+
- Avoid allocating for names in the PEP 508 parser ([#10476](https://github.com/astral-sh/uv/pull/10476))
33+
- Fetch concurrently for non-first-match index strategies ([#10432](https://github.com/astral-sh/uv/pull/10432))
34+
- Remove unnecessary `.to_string()` call ([#10419](https://github.com/astral-sh/uv/pull/10419))
35+
- Respect sentinels in package prioritization ([#10443](https://github.com/astral-sh/uv/pull/10443))
36+
- Use `ArcStr` for marker values ([#10453](https://github.com/astral-sh/uv/pull/10453))
37+
- Use `ArcStr` for package, extra, and group names ([#10475](https://github.com/astral-sh/uv/pull/10475))
38+
- Use `matches!` rather than `contains` in `requirements.txt` parsing ([#10423](https://github.com/astral-sh/uv/pull/10423))
39+
- Use faster disjointness check for markers ([#10439](https://github.com/astral-sh/uv/pull/10439))
40+
- Pre-compute PEP 508 markers from universal markers ([#10472](https://github.com/astral-sh/uv/pull/10472))
41+
42+
### Bug fixes
43+
44+
- Fix `UV_FIND_LINKS` delimiter to split on commas ([#10477](https://github.com/astral-sh/uv/pull/10477))
45+
- Improve `uv tool list` output when tool environment is broken ([#10409](https://github.com/astral-sh/uv/pull/10409))
46+
- Only track markers for compatible versions ([#10457](https://github.com/astral-sh/uv/pull/10457))
47+
- Respect `requires-python` when installing tools ([#10401](https://github.com/astral-sh/uv/pull/10401))
48+
- Visit proxy packages eagerly ([#10441](https://github.com/astral-sh/uv/pull/10441))
49+
- Improve shell compatibility of `venv` activate scripts ([#10397](https://github.com/astral-sh/uv/pull/10397))
50+
- Read publish username from URL ([#10469](https://github.com/astral-sh/uv/pull/10469))
51+
52+
### Documentation
53+
54+
- Add Lambda layer instructions to AWS Lambda guide ([#10411](https://github.com/astral-sh/uv/pull/10411))
55+
- Add `uv lock --script` to the docs ([#10414](https://github.com/astral-sh/uv/pull/10414))
56+
- Use Windows-specific instructions in Jupyter guide ([#10446](https://github.com/astral-sh/uv/pull/10446))
57+
58+
359
## 0.5.16
460

561
### Enhancements

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/uv-version/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "uv-version"
3-
version = "0.5.16"
3+
version = "0.5.17"
44
edition = { workspace = true }
55
rust-version = { workspace = true }
66
homepage = { workspace = true }

crates/uv/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "uv"
3-
version = "0.5.16"
3+
version = "0.5.17"
44
edition = { workspace = true }
55
rust-version = { workspace = true }
66
homepage = { workspace = true }

docs/getting-started/installation.md

+2-2
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.5.16/install.sh | sh
28+
$ curl -LsSf https://astral.sh/uv/0.5.17/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
```console
44-
$ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.5.16/install.ps1 | iex"
44+
$ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.5.17/install.ps1 | iex"
4545
```
4646

4747
!!! tip

docs/guides/integration/aws-lambda.md

+2-2
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.5.16 AS uv
95+
FROM ghcr.io/astral-sh/uv:0.5.17 AS uv
9696

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

296296
```dockerfile title="Dockerfile"
297-
FROM ghcr.io/astral-sh/uv:0.5.16 AS uv
297+
FROM ghcr.io/astral-sh/uv:0.5.17 AS uv
298298

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

docs/guides/integration/docker.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $ docker run ghcr.io/astral-sh/uv --help
2828
uv provides a distroless Docker image including the `uv` binary. The following tags are published:
2929

3030
- `ghcr.io/astral-sh/uv:latest`
31-
- `ghcr.io/astral-sh/uv:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/uv:0.5.16`
31+
- `ghcr.io/astral-sh/uv:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/uv:0.5.17`
3232
- `ghcr.io/astral-sh/uv:{major}.{minor}`, e.g., `ghcr.io/astral-sh/uv:0.5` (the latest patch
3333
version)
3434

@@ -69,7 +69,7 @@ In addition, uv publishes the following images:
6969

7070
As with the distroless image, each image is published with uv version tags as
7171
`ghcr.io/astral-sh/uv:{major}.{minor}.{patch}-{base}` and
72-
`ghcr.io/astral-sh/uv:{major}.{minor}-{base}`, e.g., `ghcr.io/astral-sh/uv:0.5.16-alpine`.
72+
`ghcr.io/astral-sh/uv:{major}.{minor}-{base}`, e.g., `ghcr.io/astral-sh/uv:0.5.17-alpine`.
7373

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

109109
```dockerfile
110-
COPY --from=ghcr.io/astral-sh/uv:0.5.16 /uv /uvx /bin/
110+
COPY --from=ghcr.io/astral-sh/uv:0.5.17 /uv /uvx /bin/
111111
```
112112

113113
Or, with the installer:
114114

115115
```dockerfile
116-
ADD https://astral.sh/uv/0.5.16/install.sh /uv-installer.sh
116+
ADD https://astral.sh/uv/0.5.17/install.sh /uv-installer.sh
117117
```
118118

119119
### Installing a project

docs/guides/integration/github.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: astral-sh/setup-uv@v5
4848
with:
4949
# Install a specific version of uv.
50-
version: "0.5.16"
50+
version: "0.5.17"
5151
```
5252
5353
## Setting up Python

docs/guides/integration/pre-commit.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To compile requirements via pre-commit, add the following to the `.pre-commit-co
3636
```yaml title=".pre-commit-config.yaml"
3737
- repo: https://github.com/astral-sh/uv-pre-commit
3838
# uv version.
39-
rev: 0.5.16
39+
rev: 0.5.17
4040
hooks:
4141
# Compile requirements
4242
- id: pip-compile
@@ -48,7 +48,7 @@ To compile alternative files, modify `args` and `files`:
4848
```yaml title=".pre-commit-config.yaml"
4949
- repo: https://github.com/astral-sh/uv-pre-commit
5050
# uv version.
51-
rev: 0.5.16
51+
rev: 0.5.17
5252
hooks:
5353
# Compile requirements
5454
- id: pip-compile
@@ -61,7 +61,7 @@ To run the hook over multiple files at the same time:
6161
```yaml title=".pre-commit-config.yaml"
6262
- repo: https://github.com/astral-sh/uv-pre-commit
6363
# uv version.
64-
rev: 0.5.16
64+
rev: 0.5.17
6565
hooks:
6666
# Compile requirements
6767
- id: pip-compile

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "uv"
7-
version = "0.5.16"
7+
version = "0.5.17"
88
description = "An extremely fast Python package and project manager, written in Rust."
99
authors = [{ name = "Astral Software Inc.", email = "[email protected]" }]
1010
requires-python = ">=3.8"

0 commit comments

Comments
 (0)