chore(deps): update ghcr.io/astral-sh/uv docker tag to v0.6.0 #83
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.5.7
->0.6.0
Release Notes
astral-sh/uv (ghcr.io/astral-sh/uv)
v0.6.0
Compare Source
There have been 31 releases and 1135 pull requests since 0.5.0, our last release with breaking changes. As before, we've accumulated various changes that improve correctness and user experience, but could break some workflows. This release contains those changes; many have been marked as breaking out of an abundance of caution. We expect most users to be able to upgrade without making changes.
Breaking changes
Create
main.py
instead ofhello.py
inuv init
(#10369)Previously,
uv init
created ahello.py
sample file. Now,uv init
will createmain.py
instead — which aligns with expectations from user feedback. The--bare
option can be used to avoid creating the file altogether.Respect
UV_PYTHON
inuv python install
(#11487)Previously,
uv python install
did not read this environment variable; now it does. We believe this matches user expectations, however, this will take priority over.python-version
files which could be considered breaking.Set
UV
to the uv executable path (#11326)When uv spawns a subprocess, it will now have the
UV
environment variable set to theuv
binary path. This change is breaking if you are setting theUV
environment variable yourself, as we will overwrite its value.Additionally, this change requires marking the uv Rust entrypoint (
uv::main
) asunsafe
to avoid unsoundness — this is only relevant if you are invoking uv using Rust. See the Rust documentation for details about the safety of updating a process' environment.Error on non-existent extras, e.g., in
uv sync
(#11426)Previously, uv would silently ignore non-existent extras requested on the command-line (e.g., via
uv sync --extra foo
). This is generally correct behavior when resolving requests for package extras, because an extra may be present on one compatible version of a package but not another. However, this flexibility doesn't need to apply to the local project and it's less surprising to error here.Error on missing dependency groups when
--frozen
is provided (#11499)Previously, uv would not validate that the requested dependency groups were present in the lockfile when the
--frozen
flag was used. Now, an error will be raised if a requested dependency group is not present.Change
-p
to a--python
alias inuv pip compile
(#11486)In
uv pip compile
,-p
was an alias for--python-version
while everywhere else in uv's interface it is an alias for--python
. Additionally,uv pip compile
did not respect theUV_PYTHON
environment variable. Now, the semantics of this flag have been updated for parity with the rest of the CLI.However,
--python-version
is unique: if we cannot find an interpreter with the given version, we will not fail. Instead, we'll use an alternative interpreter and override its version tags with the requested version during package resolution. This behavior is retained here for backwards compatibility,--python <version>
/-p <version>
will not fail if the version cannot be found. However, if a specific interpreter is requested, e.g., with--python <path>
or--python pypy
, and cannot be found — uv will exit with an error.The breaking changes here are that
UV_PYTHON
is respected and--python <version>
will no longer fail if the version cannot be found.Bump
alpine
default tag to 3.21 for derived Docker images (#11157)Alpine 3.21 was released in Dec 2024 and is used in the official Alpine-based Python images. Our
uv:python3.x-alpine
images have been using 3.21 since uv v0.5.8. However, now the theuv:alpine
image will use 3.21 instead of 3.20 anduv:alpine3.20
will no longer be updated.Use files instead of junctions on Windows (#11269)
Previously, we used junctions for atomic replacement of cache entries on Windows. Now, we use a file with a pointer to the cache entry instead. This resolves various edge-case behaviors with junctions. These files are only intended to be consumed by uv and the cache version has been bumped. We do not think this change will affect workflows.
Stabilizations
uv publish
is no longer in preview (#11032)This does not come with any behavior changes. You will no longer see an experimental warning when using
uv publish
. See the linked pull request for a report on the stabilization.Enhancements
--active
for PEP 723 script environments (#11433)revision
to the lockfile to allow backwards-compatible metadata changes (#11500)Bug fixes
.egg-info
files (#11395)uvx --from tool@latest
(#11465)Documentation
CHANGELOG.md
is now split into separate files for each "major" version to fix rendering (#11510)v0.5.31
Compare Source
Release Notes
Enhancements
uv sync --script
(#11361)+local
suffixes (#11429)uvx
anduv tool install
requests (#11345)uv run
(#11386)Python
The managed Python distributions have been updated, including:
See the
python-build-standalone
release notes for more details.Bug fixes
--python <dir>
requests to match existing environments ifsys.executable
is the same file (#11290)--dry-run
mode (#11427)<name>
over<name>/__main__.py
(#11431)Documentation
UV_INDEX
instead ofUV_EXTRA_INDEX_URL
(#11381)Install uv 0.5.31
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/uv/releases/download/0.5.31/uv-installer.ps1 | iex"
Download uv 0.5.31
v0.5.30
Compare Source
Release Notes
Python
The managed PyPy distributions have been updated for PyPy v7.3.18, which includes:
See the PyPy release for more details.
Enhancements
uv sync --dry-run
(#11299)#egg
fragment in HTML Simple API response (#11340)Configuration
NO_BINARY
andNO_BINARY_PACKAGE
environment variables (#11399)Performance
Bug fixes
simple/
(#11336)@
requests for tools (#11335)astral-tokio-tar
to v0.5.1 (#11359)eprintln
in trampoline warnings (#11295)torch
packages when using conflicting extras (#11323)Documentation
uv tool install --editable
(#11280)Install uv 0.5.30
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/uv/releases/download/0.5.30/uv-installer.ps1 | iex"
Download uv 0.5.30
v0.5.29
Compare Source
Release Notes
Enhancements
--bare
option touv init
(#11192)VIRTUAL_ENV
in project commands via--active
(#11189)VIRTUAL_ENV
warning to be silenced with--no-active
(#11251)Python
The managed Python distributions have been updated, including:
See the
python-build-standalone
release notes for more details.Bug fixes
--all-groups
and--no-default-groups
flags (#11224)Documentation
mkdocs.public.yml
into the template (#11246)Install uv 0.5.29
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/uv/releases/download/0.5.29/uv-installer.ps1 | iex"
Download uv 0.5.29
v0.5.28
Compare Source
Release Notes
Bug fixes
PATH
(#11218)--allow-insecure-host
(#11210)Documentation
last updated
to documentation (#11164)Install uv 0.5.28
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/uv/releases/download/0.5.28/uv-installer.ps1 | iex"
Download uv 0.5.28
v0.5.27
Compare Source
Release Notes
Enhancements
uv pip install
with--extra
or--all-extras
and invalid sources (#11193)Preview features
Performance
tokio-tar
fork (#11174).clone()
(#11127)Bug fixes
_GLibCVersion
tuple in uv-python crate (#11122)Documentation
pip install
example in troubleshooting guide (#11194)VIRTUAL_ENV
in Jupyter kernels (#11155)Install uv 0.5.27
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/uv/releases/download/0.5.27/uv-installer.ps1 | iex"
Download uv 0.5.27
v0.5.26
Compare Source
Release Notes
Enhancements
uvx python
(#11076)--no-dev --invert
inuv tree
(#11068)uv python install --reinstall
to reinstall all previous versions (#11072)--build-backend
when--backend
is passed touv init
(#10958)Performance
Bug fixes
--script
is passing a non-PEP 723 script (#11118)<index>/simple
to<index>/...
endpoints (#11074)uv sync
(#11075)Documentation
RUST_LOG
documentation (#10053)--no-deps
description (#11073)sys_platform
in lieu ofplatform_system
in PyTorch docs (#11113)Install uv 0.5.26
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/uv/releases/download/0.5.26/uv-installer.ps1 | iex"
Download uv 0.5.26
v0.5.25
Compare Source
Release Notes
Enhancements
=
for editables inrequirements.txt
(#10954)Bug fixes
128+n
) exit codes foruv run
anduv tool run
on Unix (#10781)PATH
(#11030)--editable
flag on non-directory requirements (#10994)--no-sources
foruv pip install
workspace discovery (#11003)JEMALLOC_SYS_WITH_LG_PAGE=16
in ARM Docker builds (#10943)riscv64
Python downloads to allow install onriscv64gc
(#10937)tool.uv.sources.(package).workspace
with other options (#11013)uv run
(#11009)Documentation
SECURITY
policy (#11035)Requires-Python
upper bound behavior to the docs (#10964)uv add -r
(#10926)requires-python
rules in resolver documentation (#10993)--no-sources
documentation (#10995)Install uv 0.5.25
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/uv/releases/download/0.5.25/uv-installer.ps1 | iex"
Download uv 0.5.25