github astral-sh/uv 0.4.21

9 hours ago

Release Notes

Enhancements

  • Add support for managed installations of free-threaded Python (#8100)
  • Add note about uvx to uv tool run short help (#7695)
  • Enable HTTP/2 requests (#8049)
  • Support uv tree --no-dev (#8109)
  • Support PEP 723 metadata with uv run - (#8111)
  • Support pip install --exact (#8044)
  • Support uv export --no-header (#8096)
  • ADd Python 3.13 images to Docker publish (#8105)
  • Support remote (https://) scripts in uv run (#6375)
  • Allow comma value-delimited arguments in uv run --with (#7909)

Configuration

  • Support wildcards in UV_INSECURE_HOST (#8052)

Performance

  • Use shared index when fetching metadata in lock satisfaction routine (#8147)

Bug fixes

  • Add prerelease compatibility check to uv python CLI (#8020)
  • Avoid deleting a project environment directory if we cannot tell if a pyvenv.cfg file exists (#8012)
  • Avoid excluding valid wheels for exact requires-python bounds (#8140)
  • Bump netrc crate to latest commit (#8021)
  • Fix uv python pin 3.13t failure when parsing version for project requires check (#8056)
  • Fix handling of != intersections in requires-python (#7897)
  • Remove the newly created tool environment if sync failed (#8038)
  • Respect dynamic extras in uv lock and uv sync (#8091)
  • Treat resolver failures as fatal in lockfile validation (#8083)
  • Use git config --get for author information for improved backwards compatibility (#8101)
  • Use comma-separated values for UV_FIND_LINKS (#8061)
  • Use shared resolver state between add and lock to avoid double Git update (#8146)
  • Make --relocatable entrypoints robust to symlinking (#8079)
  • Improve compatibility with VSCode PS1 prompt (#8006)
  • Fix "Stream did not contain valid UTF-8" failures in Windows (#8120)
  • Use --with-requirements in uvx error hint (#8112)

Documentation

  • Include uvx installation in Docker examples (#8179)
  • Make the instructions for the Windows standalone installer consistent across README and documentation (#8125)
  • Update pip compatibility guide to note transitive URL dependency support (#8081)
  • Document --reinstall with --exclude-newer to ensure downgrades (#6721)

Install uv 0.4.21

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.4.21/uv-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy ByPass -c "irm https://github.com/astral-sh/uv/releases/download/0.4.21/uv-installer.ps1 | iex"

Download uv 0.4.21

File Platform Checksum
uv-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
uv-x86_64-apple-darwin.tar.gz Intel macOS checksum
uv-i686-pc-windows-msvc.zip x86 Windows checksum
uv-x86_64-pc-windows-msvc.zip x64 Windows checksum
uv-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
uv-i686-unknown-linux-gnu.tar.gz x86 Linux checksum
uv-powerpc64-unknown-linux-gnu.tar.gz PPC64 Linux checksum
uv-powerpc64le-unknown-linux-gnu.tar.gz PPC64LE Linux checksum
uv-s390x-unknown-linux-gnu.tar.gz S390x Linux checksum
uv-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum
uv-armv7-unknown-linux-gnueabihf.tar.gz ARMv7 Linux checksum
uv-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum
uv-i686-unknown-linux-musl.tar.gz x86 MUSL Linux checksum
uv-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum
uv-arm-unknown-linux-musleabihf.tar.gz ARMv6 MUSL Linux (Hardfloat) checksum
uv-armv7-unknown-linux-musleabihf.tar.gz ARMv7 MUSL Linux checksum

Don't miss a new uv release

NewReleases is sending notifications on new releases.