diff --git a/CHANGELOG.md b/CHANGELOG.md index b93d8fdb5037..0a1d7dd22367 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 0.4.7 + +### Enhancements + +- Add `--no-emit-project` and friends to `uv export` ([#7110](https://github.com/astral-sh/uv/pull/7110)) +- Add `--output-file` to `uv export` ([#7109](https://github.com/astral-sh/uv/pull/7109)) +- Prune unused source distributions from the cache in `uv cache prune` ([#7112](https://github.com/astral-sh/uv/pull/7112)) +- Take intersection of constraint and requirements hashes ([#7108](https://github.com/astral-sh/uv/pull/7108)) + +### Performance + +- Skip metadata fetch for `--no-deps` and `pip sync` ([#7127](https://github.com/astral-sh/uv/pull/7127)) + +### Bug fixes + +- Avoid panicking when encountering an invalid Python version during `uv python list` ([#7131](https://github.com/astral-sh/uv/pull/7131)) +- Write trailing newline to `.python-version` files ([#7140](https://github.com/astral-sh/uv/pull/7140)) + ## 0.4.6 ### Enhancements diff --git a/Cargo.lock b/Cargo.lock index de3e7ab588d9..91fd47e6f44a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4441,7 +4441,7 @@ checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" [[package]] name = "uv" -version = "0.4.6" +version = "0.4.7" dependencies = [ "anstream", "anyhow", @@ -5194,7 +5194,7 @@ dependencies = [ [[package]] name = "uv-version" -version = "0.4.6" +version = "0.4.7" [[package]] name = "uv-virtualenv" diff --git a/crates/uv-version/Cargo.toml b/crates/uv-version/Cargo.toml index 5c1301f5f49b..629bc39c703f 100644 --- a/crates/uv-version/Cargo.toml +++ b/crates/uv-version/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv-version" -version = "0.4.6" +version = "0.4.7" edition = { workspace = true } rust-version = { workspace = true } homepage = { workspace = true } diff --git a/crates/uv/Cargo.toml b/crates/uv/Cargo.toml index 07bd1d7a16da..5eca6b33e88a 100644 --- a/crates/uv/Cargo.toml +++ b/crates/uv/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv" -version = "0.4.6" +version = "0.4.7" edition = { workspace = true } rust-version = { workspace = true } homepage = { workspace = true } diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index c8af8599bb82..4dc64f97711e 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -45,13 +45,13 @@ Request a specific version by including it in the URL: === "macOS and Linux" ```console - $ curl -LsSf https://astral.sh/uv/0.4.6/install.sh | sh + $ curl -LsSf https://astral.sh/uv/0.4.7/install.sh | sh ``` === "Windows" ```console - $ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.4.6/install.ps1 | iex" + $ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.4.7/install.ps1 | iex" ``` !!! tip diff --git a/docs/guides/integration/docker.md b/docs/guides/integration/docker.md index 9a259914f4a7..b78f21507a54 100644 --- a/docs/guides/integration/docker.md +++ b/docs/guides/integration/docker.md @@ -21,7 +21,7 @@ $ docker run ghcr.io/astral-sh/uv --help uv provides a distroless Docker image including the `uv` binary. The following tags are published: - `uv:latest` -- `uv:{major}.{minor}.{patch}`, e.g., `uv:0.4.6` +- `uv:{major}.{minor}.{patch}`, e.g., `uv:0.4.7` - `uv:{major}.{minor}`, e.g., `uv:0.4` (the latest patch version) In addition, uv publishes the following images: @@ -56,7 +56,7 @@ In addition, uv publishes the following images: - `uv:python3.8-bookworm-slim` As with the distroless image, each image is published with uv version tags as -`uv:{major}.{minor}.{patch}-{base}` and `uv:{major}.{minor}-{base}`, e.g., `uv:0.4.6-alpine`. +`uv:{major}.{minor}.{patch}-{base}` and `uv:{major}.{minor}-{base}`, e.g., `uv:0.4.7-alpine`. For more details, see the [GitHub Container](https://github.com/astral-sh/uv/pkgs/container/uv) page. @@ -94,13 +94,13 @@ Note this requires `curl` to be available. In either case, it is best practice to pin to a specific uv version, e.g., with: ```dockerfile -COPY --from=ghcr.io/astral-sh/uv:0.4.6 /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:0.4.7 /uv /bin/uv ``` Or, with the installer: ```dockerfile -ADD https://astral.sh/uv/0.4.6/install.sh /uv-installer.sh +ADD https://astral.sh/uv/0.4.7/install.sh /uv-installer.sh ``` ### Installing a project diff --git a/docs/guides/integration/github.md b/docs/guides/integration/github.md index 893b23c52111..3e378a250f91 100644 --- a/docs/guides/integration/github.md +++ b/docs/guides/integration/github.md @@ -40,7 +40,7 @@ jobs: uses: astral-sh/setup-uv@v2 with: # Install a specific version of uv. - version: "0.4.6" + version: "0.4.7" ``` ## Setting up Python diff --git a/docs/guides/integration/pre-commit.md b/docs/guides/integration/pre-commit.md index d3526764ce5f..3dd7dccb5da4 100644 --- a/docs/guides/integration/pre-commit.md +++ b/docs/guides/integration/pre-commit.md @@ -8,7 +8,7 @@ To compile requirements via pre-commit, add the following to the `.pre-commit-co ```yaml title=".pre-commit-config.yaml" - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.4.6 + rev: 0.4.7 hooks: # Compile requirements - id: pip-compile @@ -20,7 +20,7 @@ To compile alternative files, modify `args` and `files`: ```yaml title=".pre-commit-config.yaml" - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.4.6 + rev: 0.4.7 hooks: # Compile requirements - id: pip-compile @@ -33,7 +33,7 @@ To run the hook over multiple files at the same time: ```yaml title=".pre-commit-config.yaml" - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.4.6 + rev: 0.4.7 hooks: # Compile requirements - id: pip-compile diff --git a/pyproject.toml b/pyproject.toml index 2152b9c685c0..c3691a71d63f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "uv" -version = "0.4.6" +version = "0.4.7" description = "An extremely fast Python package and project manager, written in Rust." authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }] requires-python = ">=3.8"