diff --git a/CHANGELOG.md b/CHANGELOG.md index e95318f3e..68a122169 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 0.2.2 + +### Enhancements + +- Report yanks for cached and resolved packages ([#3772](https://github.com/astral-sh/uv/pull/3772)) +- Improve error message when default Python is not found ([#3770](https://github.com/astral-sh/uv/pull/3770)) + +### Bug fixes + +- Do not treat interpereters discovered via `CONDA_PREFIX` as system interpreters ([#3771](https://github.com/astral-sh/uv/pull/3771)) + ## 0.2.1 ### Bug fixes @@ -23,7 +34,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: @@ -40,6 +51,10 @@ names. To align the user expecations, uv now respects the interpreter that starts it. For example, `python -m uv ...` will now prefer the `python` interpreter that was used to start uv instead of searching for a virtual environment. +We now check if discovered intepreters 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 ` +to request the interpreter. + ### Enhancements - Rewrite Python interpreter discovery ([#3266](https://github.com/astral-sh/uv/pull/3266)) diff --git a/Cargo.lock b/Cargo.lock index 3624f2daf..fc0ce406a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4474,7 +4474,7 @@ checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" [[package]] name = "uv" -version = "0.2.1" +version = "0.2.2" dependencies = [ "anstream", "anyhow", @@ -5056,7 +5056,7 @@ dependencies = [ [[package]] name = "uv-version" -version = "0.2.1" +version = "0.2.2" [[package]] name = "uv-virtualenv" diff --git a/crates/uv-version/Cargo.toml b/crates/uv-version/Cargo.toml index f6b849973..82058a63f 100644 --- a/crates/uv-version/Cargo.toml +++ b/crates/uv-version/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv-version" -version = "0.2.1" +version = "0.2.2" edition = { workspace = true } rust-version = { workspace = true } homepage = { workspace = true } diff --git a/crates/uv/Cargo.toml b/crates/uv/Cargo.toml index e9d5b33a6..16ee1206f 100644 --- a/crates/uv/Cargo.toml +++ b/crates/uv/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv" -version = "0.2.1" +version = "0.2.2" edition = { workspace = true } rust-version = { workspace = true } homepage = { workspace = true } diff --git a/pyproject.toml b/pyproject.toml index 515df2272..0fc7e98bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "uv" -version = "0.2.1" +version = "0.2.2" 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"