From f5e84bbbab18650f983c463370f70d3f8cec5657 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 7 Jul 2024 14:23:38 -0500 Subject: [PATCH] Bump version to v0.2.22 (#4862) --- CHANGELOG.md | 23 +++++++++++++++++++++-- Cargo.lock | 4 ++-- PREVIEW-CHANGELOG.md | 25 ++++++++++++++++++++++++- README.md | 4 ++-- crates/uv-version/Cargo.toml | 2 +- crates/uv/Cargo.toml | 2 +- pyproject.toml | 2 +- 7 files changed, 52 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b648f1307d6..25968982281d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 0.2.22 + +### CLI + +- Add `--exclude-newer` to installer arguments ([#4785](https://github.com/astral-sh/uv/pull/4785)) +- Bold durations in CLI messages ([#4818](https://github.com/astral-sh/uv/pull/4818)) +- Drop crate description from the `uv` help menu ([#4773](https://github.com/astral-sh/uv/pull/4773)) +- Update "about" in help menu ([#4782](https://github.com/astral-sh/uv/pull/4782)) + +### Configuration + +- Add `UV_OVERRIDE` environment variable for `--override` ([#4836](https://github.com/astral-sh/uv/pull/4836)) + +### Bug fixes + +- Always use release-only comparisons for `requires-python` ([#4794](https://github.com/astral-sh/uv/pull/4794)) +- Avoid hangs before exiting CLI ([#4793](https://github.com/astral-sh/uv/pull/4793)) +- Preserve verbatim URLs for `--find-links` ([#4838](https://github.com/astral-sh/uv/pull/4838)) + ## 0.2.21 - Fix issue where standalone installer failed to due missing `uvx.exe` binary on Windows ([#4756](https://github.com/astral-sh/uv/pull/4756)) @@ -356,7 +375,7 @@ requested version, skipping interpreters that are broken or do not satisfy the r Additionally, uv now allows requests for interpreter implementations such as `pypy` and `cpython`. For example, the request `--python cpython` will ignore a `python` executable that's implemented by `pypy`. These requests may -also include a version, e.g., `--python pypy@3.10`. By default, uv will accept _any_ interpreter implementation. +also include a version, e.g., `--python pypy@3.10`. By default, uv will accept *any* interpreter implementation. In summary, the following Python interpreter requests are now allowed: @@ -374,7 +393,7 @@ To align the user expectations, uv now respects the interpreter that starts it. now prefer the `python` interpreter that was used to start uv instead of searching for a virtual environment. We now check if discovered interpreters are virtual environments. This means that setting `VIRTUAL_ENV` to a Python -installation directory that is _not_ a virtual environment will no longer work. Instead, use `--system` or `--python ` +installation directory that is *not* a virtual environment will no longer work. Instead, use `--system` or `--python ` to request the interpreter. ### Enhancements diff --git a/Cargo.lock b/Cargo.lock index 42318d269467..d56bc4907632 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4425,7 +4425,7 @@ checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" [[package]] name = "uv" -version = "0.2.21" +version = "0.2.22" dependencies = [ "anstream", "anyhow", @@ -5123,7 +5123,7 @@ dependencies = [ [[package]] name = "uv-version" -version = "0.2.21" +version = "0.2.22" [[package]] name = "uv-virtualenv" diff --git a/PREVIEW-CHANGELOG.md b/PREVIEW-CHANGELOG.md index 45f723d75d27..d7ea943e4568 100644 --- a/PREVIEW-CHANGELOG.md +++ b/PREVIEW-CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## 0.2.22 + +### Preview features + +- Always use base interpreter for cached environments ([#4805](https://github.com/astral-sh/uv/pull/4805)) +- Cache tool environments in `uv tool run` ([#4784](https://github.com/astral-sh/uv/pull/4784)) +- Check hash of downloaded python toolchain ([#4806](https://github.com/astral-sh/uv/pull/4806)) +- Remove incompatible wheels from `uv.lock` ([#4799](https://github.com/astral-sh/uv/pull/4799)) +- `uv cache prune` removes all cached environments ([#4845](https://github.com/astral-sh/uv/pull/4845)) +- Add dedicated help menu for `uvx` ([#4770](https://github.com/astral-sh/uv/pull/4770)) +- Change "toolchain" to "python" ([#4735](https://github.com/astral-sh/uv/pull/4735)) +- Create empty environment for `uv run --isolated` ([#4849](https://github.com/astral-sh/uv/pull/4849)) +- Deduplicate when install or uninstall python ([#4841](https://github.com/astral-sh/uv/pull/4841)) +- Require at least one target for toolchain uninstalls ([#4820](https://github.com/astral-sh/uv/pull/4820)) +- Resolve requirements prior to nuking tool environments ([#4788](https://github.com/astral-sh/uv/pull/4788)) +- Tweak installation language in toolchain install ([#4811](https://github.com/astral-sh/uv/pull/4811)) +- Use already-installed tools in `uv tool run` ([#4750](https://github.com/astral-sh/uv/pull/4750)) +- Use cached environments in PEP 723 execution ([#4789](https://github.com/astral-sh/uv/pull/4789)) +- Use optimized versions of managed Python on Linux ([#4775](https://github.com/astral-sh/uv/pull/4775)) +- Fill Python requests with platform information during automatic fetches ([#4810](https://github.com/astral-sh/uv/pull/4810)) +- Remove installed python for force installation ([#4807](https://github.com/astral-sh/uv/pull/4807)) +- Add tool version to list command ([#4674](https://github.com/astral-sh/uv/pull/4674)) +- Add entrypoints to tool list ([#4661](https://github.com/astral-sh/uv/pull/4661)) + ## 0.2.21 ### Preview features @@ -10,7 +34,6 @@ - ## 0.2.19 ### Preview features diff --git a/README.md b/README.md index 200603e5036c..f023dd396fc6 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,8 @@ curl -LsSf https://astral.sh/uv/install.sh | sh powershell -c "irm https://astral.sh/uv/install.ps1 | iex" # For a specific version. -curl -LsSf https://astral.sh/uv/0.2.21/install.sh | sh -powershell -c "irm https://astral.sh/uv/0.2.21/install.ps1 | iex" +curl -LsSf https://astral.sh/uv/0.2.22/install.sh | sh +powershell -c "irm https://astral.sh/uv/0.2.22/install.ps1 | iex" # With pip. pip install uv diff --git a/crates/uv-version/Cargo.toml b/crates/uv-version/Cargo.toml index 108ac70d6485..25e6dfa98dff 100644 --- a/crates/uv-version/Cargo.toml +++ b/crates/uv-version/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv-version" -version = "0.2.21" +version = "0.2.22" edition = { workspace = true } rust-version = { workspace = true } homepage = { workspace = true } diff --git a/crates/uv/Cargo.toml b/crates/uv/Cargo.toml index 44a68a083c6d..19bfbffe4ea6 100644 --- a/crates/uv/Cargo.toml +++ b/crates/uv/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv" -version = "0.2.21" +version = "0.2.22" edition = { workspace = true } rust-version = { workspace = true } homepage = { workspace = true } diff --git a/pyproject.toml b/pyproject.toml index 574af4053bbf..d5282c4bf3b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "uv" -version = "0.2.21" +version = "0.2.22" description = "An extremely fast Python package installer and resolver, written in Rust." authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }] requires-python = ">=3.8"