From 823f23e22541f1c285445972276772b74af34013 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 30 Aug 2024 10:07:06 -0400 Subject: [PATCH] Bump version to v0.4.1 (#6870) --- CHANGELOG.md | 43 ++++++++++++++++++++++++--- Cargo.lock | 4 +-- crates/uv-version/Cargo.toml | 2 +- crates/uv/Cargo.toml | 2 +- docs/getting-started/installation.md | 4 +-- docs/guides/integration/docker.md | 6 ++-- docs/guides/integration/github.md | 6 ++-- docs/guides/integration/pre-commit.md | 6 ++-- pyproject.toml | 2 +- 9 files changed, 55 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccf8e2b4a862..2d5422d3c99e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # Changelog +## 0.4.1 + +### Enhancements + +- Add `uv export --format requirements.txt` ([#6778](https://github.com/astral-sh/uv/pull/6778)) +- Allow `@` references in `uv tool install --from` ([#6842](https://github.com/astral-sh/uv/pull/6842)) +- Normalize version specifiers by sorting ([#6333](https://github.com/astral-sh/uv/pull/6333)) +- Respect the user's upper-bound in `requires-python` ([#6824](https://github.com/astral-sh/uv/pull/6824)) +- Use Windows registry to discover Python on Windows directly ([#6761](https://github.com/astral-sh/uv/pull/6761)) +- Hint at `--no-workspace` in `uv init` failures ([#6815](https://github.com/astral-sh/uv/pull/6815)) +- Update to last PyPy releases ([#6784](https://github.com/astral-sh/uv/pull/6784)) + +### Bug fixes + +- Avoid deadlocks when multiple uv processes lock resources ([#6790](https://github.com/astral-sh/uv/pull/6790)) +- Expand tildes when matching against `PATH` ([#6829](https://github.com/astral-sh/uv/pull/6829)) +- Fix `uv init --no-project` alias ([#6837](https://github.com/astral-sh/uv/pull/6837)) +- Ignore pre-release segments when discovering via `requires-python` ([#6813](https://github.com/astral-sh/uv/pull/6813)) +- Support inline optional tables in `uv add` and `uv remove` ([#6787](https://github.com/astral-sh/uv/pull/6787)) +- Update default `hello.py` to pass `ruff format` ([#6811](https://github.com/astral-sh/uv/pull/6811)) +- Avoid stripping root for user path display ([#6865](https://github.com/astral-sh/uv/pull/6865)) +- Error when user-provided environments are disjoint with Python ([#6841](https://github.com/astral-sh/uv/pull/6841)) +- Retain alphabetical sorting for `pyproject.toml` in `uv add` operations ([#6388](https://github.com/astral-sh/uv/pull/6388)))) + +### Documentation + +- Add a link to the multiple index docs in the alternative index guide ([#6826](https://github.com/astral-sh/uv/pull/6826)) +- Add docs for inline exclude newer in PEP 723 scripts ([#6831](https://github.com/astral-sh/uv/pull/6831)) +- Enumerate available Docker tags ([#6768](https://github.com/astral-sh/uv/pull/6768)) +- Omit `[pip]` section from configuration file docs ([#6814](https://github.com/astral-sh/uv/pull/6814)) +- Update `project.urls` in `pyproject.toml` ([#6844](https://github.com/astral-sh/uv/pull/6844)) +- Add docs for AWS CodeArtifact usage ([#6816](https://github.com/astral-sh/uv/pull/6816)) + +### Other changes + ## 0.4.0 This release adds first-class support for Python projects that are not designed as Python packages (e.g., web applications, data science projects, etc.). @@ -11,12 +46,12 @@ Most users are not developing libraries that need to be packaged and published t In summary, the major changes are: - uv no longer attempts to package and install projects that do not define a `[build-system]`. - - While the project itself will not be installed into the virtual environment, its dependencies will still be included. - - The previous behavior can be recovered by setting `package = true` in the `[tool.uv]` section of your `pyproject.toml`. + - While the project itself will not be installed into the virtual environment, its dependencies will still be included. + - The previous behavior can be recovered by setting `package = true` in the `[tool.uv]` section of your `pyproject.toml`. - `uv init` no longer creates a `src/` directory or defines a `[build-system]` by default. - - The previous behavior can be recovered with `uv init --lib` or `uv init --app --package`. + - The previous behavior can be recovered with `uv init --lib` or `uv init --app --package`. - uv allows and recommends including `[project]` definitions in virtual workspace roots. - - Previously, the uv required the `[project]` section to be omitted. + - Previously, the uv required the `[project]` section to be omitted. - uv allows disabling packaging of projects, even if they define a `[build-system]`, by setting `package = false` in the `[tool.uv]` section of your `pyproject.toml`. See the latest documentation on [build systems in projects](http://docs.astral.sh/uv/concepts/projects/#build-systems) for more details. diff --git a/Cargo.lock b/Cargo.lock index beecd23131cd..3e644d082010 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4492,7 +4492,7 @@ checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" [[package]] name = "uv" -version = "0.4.0" +version = "0.4.1" dependencies = [ "anstream", "anyhow", @@ -5249,7 +5249,7 @@ dependencies = [ [[package]] name = "uv-version" -version = "0.4.0" +version = "0.4.1" [[package]] name = "uv-virtualenv" diff --git a/crates/uv-version/Cargo.toml b/crates/uv-version/Cargo.toml index a71c34e7cbdb..168f970c58c6 100644 --- a/crates/uv-version/Cargo.toml +++ b/crates/uv-version/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv-version" -version = "0.4.0" +version = "0.4.1" edition = { workspace = true } rust-version = { workspace = true } homepage = { workspace = true } diff --git a/crates/uv/Cargo.toml b/crates/uv/Cargo.toml index ea26e2389e46..5e5a520d3718 100644 --- a/crates/uv/Cargo.toml +++ b/crates/uv/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uv" -version = "0.4.0" +version = "0.4.1" 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 57e305fc1176..a11a16d77179 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.0/install.sh | sh + $ curl -LsSf https://astral.sh/uv/0.4.1/install.sh | sh ``` === "Windows" ```console - $ powershell -c "irm https://astral.sh/uv/0.4.0/install.ps1 | iex" + $ powershell -c "irm https://astral.sh/uv/0.4.1/install.ps1 | iex" ``` ### PyPI diff --git a/docs/guides/integration/docker.md b/docs/guides/integration/docker.md index f006be1cce70..5c088bf31c1d 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 builds and publishes the following Docker tags: - `uv:latest` -- `uv:{major}.{minor}.{patch}`, e.g., `uv:0.4.0` +- `uv:{major}.{minor}.{patch}`, e.g., `uv:0.4.1` - `uv:{major}.{minor}`, e.g., `uv:0.4` (the latest patch version) For more details, see the [GitHub Container](https://github.com/astral-sh/uv/pkgs/container/uv) @@ -59,13 +59,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.0 /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:0.4.1 /uv /bin/uv ``` Or, with the installer: ```dockerfile -ADD https://astral.sh/uv/0.4.0/install.sh /uv-installer.sh +ADD https://astral.sh/uv/0.4.1/install.sh /uv-installer.sh ``` ### Installing a project diff --git a/docs/guides/integration/github.md b/docs/guides/integration/github.md index 71d3efe74d4b..697cfef9b4fd 100644 --- a/docs/guides/integration/github.md +++ b/docs/guides/integration/github.md @@ -76,7 +76,7 @@ It is considered best practice to pin to a specific uv version, e.g., with: - name: Set up uv # Install a specific uv version using the installer - run: curl -LsSf https://astral.sh/uv/0.4.0/install.sh | sh + run: curl -LsSf https://astral.sh/uv/0.4.1/install.sh | sh ``` === "macOS" @@ -94,7 +94,7 @@ It is considered best practice to pin to a specific uv version, e.g., with: - name: Set up uv # Install a specific uv version using the installer - run: curl -LsSf https://astral.sh/uv/0.4.0/install.sh | sh + run: curl -LsSf https://astral.sh/uv/0.4.1/install.sh | sh ``` === "Windows" @@ -112,7 +112,7 @@ It is considered best practice to pin to a specific uv version, e.g., with: - name: Set up uv # Install a specific uv version using the installer - run: irm https://astral.sh/uv/0.4.0/install.ps1 | iex + run: irm https://astral.sh/uv/0.4.1/install.ps1 | iex shell: powershell ``` diff --git a/docs/guides/integration/pre-commit.md b/docs/guides/integration/pre-commit.md index 87535d128e78..d4fcd44a72c6 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.0 + rev: 0.4.1 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.0 + rev: 0.4.1 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.0 + rev: 0.4.1 hooks: # Compile requirements - id: pip-compile diff --git a/pyproject.toml b/pyproject.toml index 01519c76c1b5..aad5637eb5f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "uv" -version = "0.4.0" +version = "0.4.1" 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"