python uv Releases · · 0.12.11

uv 0.12.11 introduces PEP 751 pylock.toml support, significant install speedups

sdkinfrapreviewengineer
feature patch

uv 0.12.11 has been released, bringing major performance enhancements to package installation, especially when overwriting existing files or merging copied wheels. This version also adds preview features for generating and validating artifact hashes in `pylock.toml` files, aligning with PEP 751. Multiple bug fixes address issues with hash verification, PowerShell virtual environment activation, and `VIRTUAL_ENV` mismatch warnings. These updates improve the reliability and efficiency of Python package management for developers.

  • Generate missing artifact hashes when exporting pylock.toml files to ensure they conform to PEP 751
  • Warn when pylock.toml artifact hash tables are empty, which will be rejected in a future uv release
  • Speed up local wheel installs by replacing the shared ZIP cursor lock with positioned reads
  • Speed up local wheel installs by reusing ZIP readers and buffers across extracted files
  • Avoid transitive dependency checks and unnecessary resolution when uv pip install --no-deps finds the requested packages already installed
Features (2)
  • Generate missing artifact hashes when exporting pylock.toml files to ensure they conform to PEP 751
  • Warn when pylock.toml artifact hash tables are empty, which will be rejected in a future uv release
Enhancements (5)
  • Speed up installs that overwrite existing files by eliminating per-file temporary directories for atomic hard-link, symlink, and reflink replacements

  • Speed up installs that merge copied wheels into existing environments by replacing per-file temporary directories with adjacent temporary files

  • Speed up local wheel installs by replacing the shared ZIP cursor lock with positioned reads
  • Speed up local wheel installs by reusing ZIP readers and buffers across extracted files
  • Avoid transitive dependency checks and unnecessary resolution when uv pip install --no-deps finds the requested packages already installed
Fixes (7)
  • Verify source archives against hashes recorded in uv.lock before reading their metadata or running their build backends
  • Verify supplied hashes for registry requirements pinned with === under both --verify-hashes and --require-hashes
  • Apply hashes from public-version pins to matching local versions when no exact local-version hash is provided
  • Support PowerShell virtual environment activation from UNC paths, including WSL paths
  • Trim surrounding whitespace from entries in .python-version and .python-versions files
  • Suppress VIRTUAL_ENV mismatch warnings for uv add --no-sync, uv remove --no-sync, and uv add --frozen
  • Warn and continue when uv python list cannot query an interpreter
Maintenance (1)
  • Restore TOML syntax highlighting for exclude-newer examples
Read the original announcement →

https://github.com/astral-sh/uv/releases/tag/0.12.11

Related releases