diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ddda55b98f6..6c2358af9bce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,51 @@ # Changelog +## 0.4.18 + +### Enhancements + +- Allow multiple source entries for each package in `tool.uv.sources` ([#7745](https://github.com/astral-sh/uv/pull/7745)) +- Add `.gitignore` file to `uv build` output directory ([#7835](https://github.com/astral-sh/uv/pull/7835)) +- Disable jemalloc on FreeBSD ([#7780](https://github.com/astral-sh/uv/pull/7780)) +- Respect `PAGER` env var when paging in `uv help` command ([#5511](https://github.com/astral-sh/uv/pull/5511)) +- Support `uv run -m foo` to run a module ([#7754](https://github.com/astral-sh/uv/pull/7754)) +- Use a top-level output directory for `uv build` in workspaces ([#7813](https://github.com/astral-sh/uv/pull/7813)) +- Update `uv init --package` command to match project name ([#7670](https://github.com/astral-sh/uv/pull/7670)) +- Add a custom suggestion for `uv add dotenv` ([#7799](https://github.com/astral-sh/uv/pull/7799)) +- Add detailed errors for `tool.uv.sources` deserialization failures ([#7823](https://github.com/astral-sh/uv/pull/7823)) +- Improve error message copy for failed builds ([#7849](https://github.com/astral-sh/uv/pull/7849)) +- Use `serde-untagged` to improve some untagged enum error messages ([#7822](https://github.com/astral-sh/uv/pull/7822)) +- Use build failure hints for `dotenv` errors, rather than in `uv add` ([#7825](https://github.com/astral-sh/uv/pull/7825)) + +### Configuration + +- Add `UV_NO_SYNC` environment variable ([#7752](https://github.com/astral-sh/uv/pull/7752)) + +### Bug fixes + +- Accept `git+` prefix in `tool.uv.sources` ([#7847](https://github.com/astral-sh/uv/pull/7847)) +- Allow spaces in path requirements ([#7767](https://github.com/astral-sh/uv/pull/7767)) +- Avoid reusing cached downloaded binaries with `--no-binary` ([#7772](https://github.com/astral-sh/uv/pull/7772)) +- Correctly trims values during wheel WHEEL file parsing ([#7770](https://github.com/astral-sh/uv/pull/7770)) +- Fix `uv tree --invert` for platform dependencies ([#7808](https://github.com/astral-sh/uv/pull/7808)) +- Fix encoding mismatch between python child process and uv ([#7757](https://github.com/astral-sh/uv/pull/7757)) +- Reject self-dependencies in `uv add` ([#7766](https://github.com/astral-sh/uv/pull/7766)) +- Respect `tool.uv.environments` for legacy virtual workspace roots ([#7824](https://github.com/astral-sh/uv/pull/7824)) +- Retain empty extras on workspace members ([#7762](https://github.com/astral-sh/uv/pull/7762)) +- Use file stem when parsing cached wheel names ([#7773](https://github.com/astral-sh/uv/pull/7773)) + +### Rust API + +- Make `FlatDistributions` public ([#7833](https://github.com/astral-sh/uv/pull/7833)) + +### Documentation + +- Fix table of contents sizing ([#7751](https://github.com/astral-sh/uv/pull/7751)) +- GitLab Integration documentation ([#6857](https://github.com/astral-sh/uv/pull/6857)) +- Update documentation to setup-uv@v3 ([#7807](https://github.com/astral-sh/uv/pull/7807)) +- Use `uv publish` instead of twine in docs ([#7837](https://github.com/astral-sh/uv/pull/7837)) +- Fix typo in `projects.md` ([#7784](https://github.com/astral-sh/uv/pull/7784)) + ## 0.4.17 ### Enhancements diff --git a/Cargo.lock b/Cargo.lock index 6140db862ad7..3ae0f1aac94c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4352,7 +4352,7 @@ checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" [[package]] name = "uv" -version = "0.4.17" +version = "0.4.18" dependencies = [ "anstream", "anyhow", @@ -5204,7 +5204,7 @@ dependencies = [ [[package]] name = "uv-version" -version = "0.4.17" +version = "0.4.18" [[package]] name = "uv-virtualenv" diff --git a/crates/uv-version/Cargo.toml b/crates/uv-version/Cargo.toml index c7a2f03be206..33eecd9fc433 100644 --- a/crates/uv-version/Cargo.toml +++ b/crates/uv-version/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv-version" -version = "0.4.17" +version = "0.4.18" edition = { workspace = true } rust-version = { workspace = true } homepage = { workspace = true } diff --git a/crates/uv/Cargo.toml b/crates/uv/Cargo.toml index 2efd2b045a94..00f22f28835b 100644 --- a/crates/uv/Cargo.toml +++ b/crates/uv/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv" -version = "0.4.17" +version = "0.4.18" edition = { workspace = true } rust-version = { workspace = true } homepage = { workspace = true } diff --git a/docs/guides/integration/docker.md b/docs/guides/integration/docker.md index 25988f6480fa..ab5b546b4f5e 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: - `ghcr.io/astral-sh/uv:latest` -- `ghcr.io/astral-sh/uv:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/uv:0.4.17` +- `ghcr.io/astral-sh/uv:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/uv:0.4.18` - `ghcr.io/astral-sh/uv:{major}.{minor}`, e.g., `ghcr.io/astral-sh/uv:0.4` (the latest patch version) @@ -59,7 +59,7 @@ In addition, uv publishes the following images: As with the distroless image, each image is published with uv version tags as `ghcr.io/astral-sh/uv:{major}.{minor}.{patch}-{base}` and -`ghcr.io/astral-sh/uv:{major}.{minor}-{base}`, e.g., `ghcr.io/astral-sh/uv:0.4.17-alpine`. +`ghcr.io/astral-sh/uv:{major}.{minor}-{base}`, e.g., `ghcr.io/astral-sh/uv:0.4.18-alpine`. For more details, see the [GitHub Container](https://github.com/astral-sh/uv/pkgs/container/uv) page. @@ -97,13 +97,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.17 /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:0.4.18 /uv /bin/uv ``` Or, with the installer: ```dockerfile -ADD https://astral.sh/uv/0.4.17/install.sh /uv-installer.sh +ADD https://astral.sh/uv/0.4.18/install.sh /uv-installer.sh ``` ### Installing a project diff --git a/docs/guides/integration/github.md b/docs/guides/integration/github.md index 27d9c1488000..e71d8affbe78 100644 --- a/docs/guides/integration/github.md +++ b/docs/guides/integration/github.md @@ -40,7 +40,7 @@ jobs: uses: astral-sh/setup-uv@v3 with: # Install a specific version of uv. - version: "0.4.17" + version: "0.4.18" ``` ## Setting up Python diff --git a/docs/guides/integration/pre-commit.md b/docs/guides/integration/pre-commit.md index 61ae59934cc6..1b8e4b267b1b 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.17 + rev: 0.4.18 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.17 + rev: 0.4.18 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.17 + rev: 0.4.18 hooks: # Compile requirements - id: pip-compile diff --git a/pyproject.toml b/pyproject.toml index 882b25c63700..74b53112c4bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "uv" -version = "0.4.17" +version = "0.4.18" 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"