pypi / uv
uv
What changed in uv 0.9 to 0.13, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
23 breaking22 security1 deprecations16 new APIs and options39 performance46 behavior and defaults5 tooling136 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inituv 0.13117 changes
Breaking changes 18
The output nests each module's owners in an object.
Certificate chains containing compromised eMudhra intermediate keys are rejected.
Invalid custom build cache keys are rejected instead of silently falling back to defaults.
uv Docker images based on Python 3.9 and 3.10 are no longer published because those versions no longer receive upstream updates.
PEP 825 variant metadata is validated, and package versions with invalid metadata are treated as unavailable.
The opt-in feature is required to use raw
url::UrlAPIs inuv-pep508.Using raw
url::UrlAPIs now requires opting in to theunsafe-urlfeature.Ignores Requires-Python upper bounds, consistent with resolution.
Each option value is now treated as a single path, including quoted paths containing spaces; repeat the option to provide multiple files.
Each option value is now treated as a single path, including quoted paths containing spaces; repeat the option to provide multiple files.
Each option value is now treated as a single path, including quoted paths containing spaces; repeat the option to provide multiple files.
Each option value is now treated as a single path, including quoted paths containing spaces; repeat the option to provide multiple files.
Python 3.15 is now the default stable version for downloads when no version is requested or pinned; existing compatible installations continue to be used.
uv now honors this directive in constraints files included with -c and requires hashes for all requirements in the installation.
uv now uses tar-codec by default to extract archives, build source distributions with uv_build, and read metadata for uv publish; stricter validation may reject some archives.
The command now rejects output directories containing a build source, including through symlinks, before clearing output.
uv uses tar-codec for tar archives by default, applying stricter validation; set this variable to 1 to opt out.
On Windows ARM64, uv now prefers native ARM64 interpreters; set this variable to x86_64 to opt out.
Security 4
Restrict Unix plaintext credential files to owner-only permissions.
Report quarantined packages when index URLs differ only in redacted query values.
The bundled Mozilla root certificates are updated in response to a compromised root CA intermediate.
Prevents URL credentials from leaking through diagnostics or persisted metadata.
New APIs and options 5
Add CPython 3.16.0a2 as an available Python version.
Adds --output-version to request a specific schema version when retrieving workspace metadata.
Reports which unsupported properties are required by an incompatible wheel variant.
The preview feature fetches and parses PEP 825 index-level variant metadata.
This preview option requires hashes for build dependencies, including transitive dependencies.
Performance 26
Concurrent invocations needing the same environment avoid duplicate environment builds.
Reduces parsing overhead for build dependency and build backend settings.
Reduces parsing overhead for cache, exclusion, cutoff, and preview settings.
Reuses cached or active environments when running PEP 723 scripts without dependencies.
Reduces peak memory use when locking or upgrading large projects.
Reduces parsing overhead for project sources and workspace references.
Reduces PyPI metadata parsing overhead.
Speeds up parsing tool receipt requirements.
Redirected output is faster.
Reduces peak memory use when resolving large workspaces.
Reduces overhead when parsing custom build cache keys.
Reduces peak memory use when resolving dependencies across multiple environments.
The binary is smaller because additional error formatters are kept out of line.
Exports with complex transitive extras are faster by resolving activation across the dependency graph.
Avoids severe slowdowns when exporting dependency graphs with extras.
uv's binary is smaller and CycloneDX exports are faster.
Avoids exponential work when simplifying, traversing, and exporting complex dependency markers.
Reduces the time and memory used to parse and store complex dependency markers.
Reduces resolver memory use for large dependency graphs, forks, extras, and dependency groups.
Speeds up project discovery in large workspaces by caching member names.
Reduces allocations when parsing TOML.
Reduces binary size, including for Linux x86_64 wheels.
Reduces overhead when parsing package metadata.
Simple API parsing is faster.
Reduces the size of the uv binary.
Many cache entry formats changed to improve performance; uv may download or rebuild dependencies after upgrading, while multiple uv versions can still safely share a cache directory.
Behavior and default changes 17
Wheel variant selection detects x86-64 microarchitecture levels, AArch64 architecture versions, and Google TPUs.
Install wheel variants from local paths, direct URLs, and Git repositories in platform-specific resolutions.
When a pyproject.toml lacks a [project] table, uv init explains how to add project metadata.
Detects NVIDIA GPU capabilities when selecting compatible wheel variants.
Incompatible self-dependencies are reported directly in resolution errors.
Select and rank wheel variants with no required properties or properties from PEP 850 static providers in platform-specific resolutions.
uv-build validation allows PEP 508 direct URLs, including Mercurial and extensionless archive URLs.
Prints valid activation instructions and supports non-relocatable environments under OpenBSD-derived ksh.
Dropped GET and HEAD requests are retried when fetching package and index data.
Exports supported environment restrictions and honors PEP 751 environment restrictions during installation or syncing.
Shows causes and hints when interpreter discovery fails, including when
-qis used.Reports all installed packages, including packages outside the selected resolution.
Supports Linux SPARC by falling back when filesystem cloning and detailed cache accounting are unavailable.
Resolution errors now report missing trusted hashes.
Ignores Requires-Python upper bounds, consistent with resolution.
Enables preliminary parsing of PEP 825 variant labels in wheel filenames.
Space-separated lists remain supported in this environment variable despite the changed handling of requirement-file option values.
Tooling 4
Managed CPython 3.11 through 3.15 builds now include pip 26.3, zlib 1.4, and Expat 2.10.0.
Adds support for CPython 3.16.0a1.
Can upgrade installed tools when tool-install-locks is enabled.
If the [build-system] table has an upper bound on uv_build, update it to allow uv_build 0.13.
Fixes and other changes 43
Fix Windows virtual environment activation when paths contain apostrophes.
Negative extra markers on constraints are now respected.
Resolution now honors per-index exclude-newer-package cutoffs.
Dependencies of recursive extras are resolved from a scoped override.
Fix CPU detection for wheel variants on macOS with GraalPy.
Preserves comments around existing inline dependency groups when uv add updates a group.
Reports aliased OSV records as a single vulnerability.
Generates valid module names for packaged projects whose names start with a digit.
Allows uv remove to run with an empty inline tool.uv.sources table.
Can run tools with CPython builds whose versions contain local identifiers.
Prevents Windows trampolines from closing handles they did not inherit.
Paths added by uv init or uv add are treated as literals instead of glob patterns.
Adds support for CPython 3.11.18, 3.12.16, 3.13.18, 3.14.10, and 3.15.2.
Uses AMD64 for platform_machine when resolving for x86-64 Windows.
Works when UV_INIT_BUILD_BACKEND is set.
Preserves free-threaded and other non-default variants.
No longer deletes non-virtual-environment directories.
An empty UV_RUN_RECURSION_DEPTH is accepted as zero, and invalid values are reported consistently.
Packages distributed only as Android wheels can now be locked without a source distribution.
Optional dependencies are exported correctly when transitive extras are activated through different or incompatible environment paths.
Recursive build globs match complete file paths, and invalid license symlinks are ignored.
Logically equivalent markers compare equal regardless of construction order.
The option is respected when a newer wheel for the selected source distribution is already cached.
Signed URLs that differ only in sensitive query values receive separate cache entries.
Version aliases are created correctly when installing managed Python into a relative directory.
Invalid output filenames are rejected before resolution instead of causing a panic.
Shows incompatibilities from failing invocations even with
-q.Invalid Python version values return an error instead of panicking.
Uses configured credentials before prompting and avoids prompting when no upload occurs.
Encoding declarations are preserved in wheel data scripts that require shell launchers.
Environments with installed Git dependencies pinned to full commit hashes are reused without resolving again.
Concurrent readers can no longer observe partially written lockfiles.
Concurrent readers can no longer observe partially written managed Python sysconfig files.
Concurrent commands reaching the same environment through real and symlinked paths are serialized.
Concurrent readers can no longer observe partially written Python version files.
Restores support for source distributions containing hard links or full-length tar user or group names.
Detection is fixed for environments created from symlinked interpreters.
Uninstalls no longer delete unrelated files beside their storage directories.
Installs, syncs, and environment creation no longer fail when racing with cache cleanup.
Python 3.15-based images are published under stable tags.
Preserves device files and FIFOs used as output destinations.
Concurrent tool installations no longer corrupt an environment when the last tool is uninstalled.
Changed upgrade settings are persisted even when the tool version stays unchanged.
uv 0.12167 changes
Breaking changes 5
Malformed requirements-file options are rejected instead of being partially parsed or ignored.
Building uv now requires Rust 1.97 or newer.
Unsupported Git archive paths in lockfiles now produce a clear error during frozen exports instead of causing a panic.
Files are rejected when wheel filenames do not match their declared package names or versions.
Exit codes are classified by underlying cause: 1 for expected failures and 2 for recognized operational and internal failures.
Security 14
Enforces resource limits when parsing package indexes and
--find-linkspages withastral-html.Supplied hashes are verified even when hash presence is disabled with
require-hashes = false.CPython is updated to use OpenSSL 3.5.9.
Addresses a Windows path traversal weakness and rejects archive entries that normalize to absolute Windows paths.
Signatures are redacted from displayed and logged URLs.
Entries can include hashes to verify downloaded build dependencies.
Downloaded wheels and source distributions are verified against hashes supplied by package indexes.
A URL that cannot be converted to a path returns a credential-redacted error instead of causing a panic.
Credentials and signatures are redacted from these errors.
Verifies hashes when downloading PEP 658 metadata sidecars.
macOS and Windows release executables and the uv and uv_build wheels are now signed, enabling publisher and binary integrity verification and potentially reducing security warnings and antivirus false positives.
Supplied hashes are now verified for registry requirements pinned with === when using --require-hashes.
Supplied hashes are now verified for registry requirements pinned with === when using --verify-hashes.
Source archives are verified against hashes recorded in uv.lock before metadata is read or build backends run.
Deprecations 1
uv warns when artifact hash tables are empty; these will be rejected in a future release.
New APIs and options 11
Supports custom installation mirrors for GraalPy.
Supports custom installation mirrors for Pyodide.
Select an interpreter architecture independently of its Python version.
Enables build-backend hooks to run with lazy imports on CPython 3.15 and later.
A preview feature validates build requirements when using --no-build-isolation.
Lets users opt out of build requirement validation.
Reports planned changes without modifying the environment.
Adds JSON output, including for --dry-run and --check.
Set minimum glibc and musl versions that universal resolutions must support.
The batch-export preview feature lets one invocation export multiple dependency selections from a shared lockfile.
Adds support for GraalPy 3.13.0.
Performance 13
Warming the interpreter cache when creating an environment speeds up later commands.
The binary is smaller because embedded Python download metadata is compressed.
Temporary wheels omit compression to speed up editable wheel creation.
Batches cache writes to speed up cold-cache resolution and HTTP cache revalidation.
Resolution from local wheelhouses is faster because wheel metadata is read in a single blocking task.
Cold resolution against large package indexes is faster because Simple API responses are parsed in bounded background workers.
Warm-cache resolution is faster because fresh HTTP cache entries are decoded in the cache-read task.
Avoids full wheel downloads by reusing supported hashes from direct URL fragments when metadata is available separately.
These installs are faster by replacing per-file temporary directories with adjacent temporary files.
Installs that overwrite existing files are faster by eliminating per-file temporary directories for atomic hard-link, symlink, and reflink replacements.
Local wheel installs are faster because ZIP reads use positioned reads instead of a shared ZIP cursor lock.
Local wheel installs are faster by reusing ZIP readers and buffers across extracted files.
When requested packages are already installed, uv skips transitive dependency checks and unnecessary resolution.
Behavior and default changes 29
Accepts marker operators directly before grouped expressions.
Reports preferred advisory IDs, prioritizing PYSEC, GHSA, then CVE identifiers.
Setting
UV_NO_CACHE=falseoverridesno-cache = truein configuration.Can export from uv.lock without a workspace manifest when using --frozen with frozen-lockfile.
Can sync from uv.lock without a workspace manifest when using --frozen with frozen-lockfile.
Can inspect dependency trees from uv.lock without a workspace manifest when using --frozen with frozen-lockfile.
Can inspect workspace metadata and optionally sync its environment from uv.lock without a workspace manifest when using --frozen with frozen-lockfile.
URLs and paths are formatted consistently in CLI messages.
The unsupported --offline option is hidden from uv publish help.
Lockfiles record workspace-member default groups, including for non-project workspace roots.
Lockfiles record dependency-group Python requirements for workspace members and non-project workspace roots.
uv accepts uppercase release suffixes in wheel platform tags.
Empty
[manifest]tables are omitted from lockfiles that contain only manifest subtables.With the resolution-inputs preview feature, redundant runtime constraints, including those involving pre-releases, are omitted from the lockfile.
These lockfiles can be reused for conflicting groups with distinct base and extra requirement specifiers.
The preview feature writes normalized requirement declarations.
uv reuses lockfiles when dependency declarations are semantically equivalent.
Omits unused resolution settings from
uv.lockand ignores changes to them when checking lockfile freshness.Upload URLs in errors are formatted with backticks, making them easier to distinguish.
The command stays read-only unless
--syncis provided.The command now applies
uv checklock modes when retrieving workspace metadata.Works across all dependency types while retaining
package.metadatafor remote URL dependencies to enable offline validation.Darwin
platform_releasemarkers are honored using macOS wheel deployment targets.Can run in projects not managed by uv and outside workspaces.
Error and warning causes are rendered with compact cause labels.
Errors use a consistent rendering format.
Downloads resume with HTTP Range requests when the server supports them, avoiding restarting interrupted downloads.
Warnings now show underlying causes and hints.
Failed upgrades show resolver hints to help diagnose the failure.
Tooling 1
Removes orphaned temporary build environments when pruning the cache.
Fixes and other changes 93
Excludes optional dependencies when their extras are activated only in incompatible environments.
Resolves dependencies whose Git references contain
#or%characters.Supplied hashes are verified even when hash presence is disabled with this flag.
Dependency overrides and constraints no longer activate optional dependencies when their extras are not selected.
Recognizes existing Pyodide interpreters as satisfying Pyodide Python requests.
Honor exact managed Python patch pins instead of following patch upgrades when creating script environments.
Preserves trailing spaces and tabs in passwords returned by subprocess keyrings.
Hides the ignored
--keyring-provideroption from help.Allows login over IPv6 loopback addresses.
Setting
UV_OFFLINE=falseoverridesoffline = truein configuration.Explicit
--trusted-publishingvalues take precedence over configuration.Setting
UV_SYSTEM_CERTS=falseoverridessystem-certs = truein configuration.Reports HTTP client setup failures directly when resolving unnamed requirements.
Preserves JSON output when a single
--quietflag is supplied.Restores incompatibility hints when
WHEELmetadata contains multiple expandedTag:rows.Preserves rename errors unless a cross-drive copy fallback applies.
Prevents assertion failures after modifying a project at the workspace root.
Adds support for CPython 3.15.0rc3.
Allows x86-64 Python interpreters running under emulation on Windows ARM64 to install compatible wheels instead of building from source.
Rejects alternate sources for workspace members across conflicting dependency selections, avoiding lockfiles that cannot be installed.
uv adds support for CPython 3.10.22, 3.11.17, 3.12.15, 3.13.16, and 3.14.8.
Requirements are honored at non-project workspace roots.
uv avoids false entry-point warnings for required workspace members.
uv audit now honors --no-default-groups.
Offline runs report a clear error, and the unsupported option is hidden from help.
Frozen sync uses each selected workspace member's recorded default groups.
Relocking verifies unchanged requirements against hashes in the existing lockfile.
Post-releases are no longer incorrectly reported as incompatible with exclusive lower bounds on pre-releases.
Using
--rmno longer removes a global.python-versionsfile unless--globalis also provided.Project exclusion flags are honored when this option is used, including --no-install-project and --no-emit-project.
The previous cache-write scheduling was restored while investigating severe cache-revalidation stalls on ext4 filesystems.
Paths that merely start with /install no longer cause panics or incorrect rewriting.
Metadata builds are allowed for first-party workspace projects even when this flag is used.
Activation scripts now work for relocatable virtual environments.
Installing or syncing from pylock.toml now honors synthetic default groups.
Local paths in exported pylock.toml files are resolved relative to the output file.
Hash constraints are now applied to every repeated requirement; the same fix applies to --verify-hashes.
Whitespace-only non-ASCII requirements are reported as invalid instead of causing a panic.
Trace logging an always-false constraint no longer causes a resolver panic.
Commands no longer run or change state after displaying settings.
Repeated requirements resolving to the same package now install that package only once.
Requirements files containing only a byte-order mark are treated as empty.
Unrecognized managed-Python implementation directories are ignored instead of causing a panic.
Root-package paths in its output are now consistent with uv workspace metadata.
pyproject.toml is restored if the command fails or is interrupted.
Root-package paths in its output are now consistent with uv tree --format json.
Hash constraints are now applied to every repeated requirement; the same fix applies to --require-hashes.
uv continues searching this variable after encountering empty entries.
Preserves signed and encoded query parameters to avoid reinstalling unchanged packages.
Restores the public export and its
BTreeMapconversion for downstream resolvers.Avoids collisions between readiness markers and
.okfiles in dependencies.GraalPy 3.13.0 is updated to build 25.5.5.
Recognizes
1.0.0as satisfying===1, matching resolution.Adds PyPy 3.11.17 and 3.12.15.
Preserves always-false
python_versionmarkers when parsing their serialized form.Configured dependency metadata is now used when checking whether installed requirements are satisfied.
Distribution filenames and archive extensions are recognized when URL fragments contain a question mark.
Build errors now correctly identify failures from these hooks.
Platform tags for BSD and Haiku releases are now generated with the correct lowercase form.
Package versions are selected using wheels compatible with each fork, with generic and stable-ABI wheel tags interpreted correctly.
Project, script, and lock files are restored if the command fails or is interrupted.
Avoids rebuilding a Windows relative path into an absolute form.
It no longer selects package versions whose wheels require a newer macOS version than the configured Darwin baseline.
Malformed index URLs no longer cause a panic when credentials are configured.
User-authored paths remain relative in lockfiles when backend metadata reports absolute paths.
Unsupported Git URL schemes are rejected during lockfile parsing instead of causing a panic during frozen exports.
Proxy URLs without a host produce a configuration error instead of a panic.
Archive sizes are checked before cached distributions are reused.
Adds support for additional Pyodide releases.
The bundled backend is used only when its version matches active version pins.
Uses
--pythonandUV_PYTHONwhen selecting the Python version.Honors configured and command-line index settings, including credentials.
Fixes regressions when installing to symlinked destinations or using uv pip install --target ..
Packages with paths longer than MAX_PATH can be installed on Windows systems without long-path support enabled.
Unix environments now prefer bin/python over bin/python3 when discovering interpreters.
Managed-Python fallback warnings are suppressed when --quiet is used.
Releases satisfying required-environments are selected within each resolver fork instead of combining incompatible wheel coverage across forks.
Cached HTTP responses that fail revalidation no longer cause retries to exceed the configured budget.
On Unix, valid unmanaged Python symlinks with relative targets are no longer overwritten.
Failed upgrade errors remain visible with -q and are suppressed with -qq.
Prefers core-metadata over legacy aliases in JSON index responses.
When automatically selecting virtual workspace members, respects ty exclusions.
Edits launcher resources in memory to support Nano Server and reduce antivirus contention.
Distributions uploaded after the exclude-newer cutoff are now excluded from lockfiles and generated requirement hashes.
PowerShell virtual environment activation now supports UNC paths, including WSL paths.
Hashes from public-version pins now apply to matching local versions when no exact local-version hash is provided.
Exporting pylock.toml files now generates missing artifact hashes to conform to PEP 751.
Entries in .python-version files now have surrounding whitespace trimmed.
Entries in .python-versions files now have surrounding whitespace trimmed.
VIRTUAL_ENV mismatch warnings are suppressed for uv add --frozen.
VIRTUAL_ENV mismatch warnings are suppressed for uv add --no-sync.
When uv python list cannot query an interpreter, it now warns and continues.
VIRTUAL_ENV mismatch warnings are suppressed for uv remove --no-sync.
uv 0.112 changes
Security 2
uv is vulnerable to arbitrary file write through entry point names
uv vulnerable to arbitrary file deletion through RECORD entries
uv 0.92 changes
Security 2
uv allows ZIP payload obfuscation through parsing differentials
uv has differential in tar extraction with PAX headers