-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Comparing changes
Open a pull request
base repository: astral-sh/uv
base: 0.8.24
head repository: astral-sh/uv
compare: 0.9.0
- 12 commits
- 36 files changed
- 8 contributors
Commits on Oct 7, 2025
-
Don't warn when dependency is constraint by other dependency (#16149)
Currently, `uv lock --resolution lowest-direct` warns above the setup below, as we visit the unbounded `anyio[trio]` first. ```toml [project] name = "project" version = "0.1.0" requires-python = ">=3.12" dependencies = [ "anyio[trio]", "anyio>=4" ] ```
Configuration menu - View commit details
-
Copy full SHA for 73e62c0 - Browse repository at this point
Copy the full SHA 73e62c0View commit details -
Surface pinned-version hint when
uv tool upgrade
can’t move the tool (#16081) Resolves #15665 `uv tool upgrade` already respects version pins, but when a tool was installed with an exact version the command quietly becomes a no-op even though users expect it to upgrade the executable. This change tweaks the upgrade flow to detect that situation by inspecting the stored receipt and, whenever the tool stays pinned, emit a concise hint explaining why the version didn’t move and how to reinstall without the pin. The message still appears if the run only refreshed supporting packages, so users aren’t misled by dependency churn that leaves the tool itself untouched. I also added an integration test for the scenario end to end by installing `babel==2.6.0`, attempting an upgrade, and asserting that the hint is shown alongside the dependency updates.
Configuration menu - View commit details
-
Copy full SHA for 7d63ef1 - Browse repository at this point
Copy the full SHA 7d63ef1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83f7380 - Browse repository at this point
Copy the full SHA 83f7380View commit details -
Update
uv pip compile
args in layout.md (#16155)<!-- Thank you for contributing to uv! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary Corrects example command for generating pylock.toml from requirements.in ## Test Plan Local preview
Configuration menu - View commit details
-
Copy full SHA for 111ed6f - Browse repository at this point
Copy the full SHA 111ed6fView commit details -
fix compile error on missing uv-python metadata (#16154)
The `uv-python` crate reads the checked-in download metadata to write out a minified version to be statically included into the binary. Sometimes, the resulting `download-metadata-minified.json` can go missing, such as when `uv` is installed via `cargo` as a git source, and there is an update; `cargo` will do a hard reset on the git repo it stores in the cache, causing it to be deleted. In these instances, the `uv-python` crate does not currently re-run its build script, because as it happens, there was no change to the `download-metadata.json` since it was last compiled. This causes a build error like: ``` Updating git repository `https://github.com/astral-sh/uv` Installing uv v0.8.24 (https://github.com/astral-sh/uv?tag=0.8.24#252f8873) Updating crates.io index Compiling uv-version v0.8.24 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-version) Compiling uv-git v0.0.1 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-git) Compiling uv-build-backend v0.1.0 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-build-backend) Compiling uv-configuration v0.0.1 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-configuration) Compiling uv-client v0.0.1 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-client) Compiling uv-extract v0.0.1 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-extract) Compiling uv-workspace v0.0.1 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-workspace) Compiling uv-python v0.0.1 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-python) Compiling uv-requirements-txt v0.0.1 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-requirements-txt) Compiling uv-bin-install v0.0.1 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-bin-install) Compiling uv-publish v0.1.0 (/home/skhawtho/.cargo/git/checkouts/uv-c9e40703e19509a8/252f887/crates/uv-publish) error: couldn't read `crates/uv-python/src/download-metadata-minified.json`: No such file or directory (os error 2) --> crates/uv-python/src/downloads.rs:795:45 | 795 | const BUILTIN_PYTHON_DOWNLOADS_JSON: &str = include_str!("download-metadata-minified.json"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: could not compile `uv-python` (lib) due to 1 previous error error: failed to compile `uv v0.8.24 (https://github.com/astral-sh/uv?tag=0.8.24#252f8873)`, intermediate artifacts can be found at `/home/skhawtho/.cache/cargo`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. ``` This fixes the issue by also adding a `rerun-if-changed` on the resulting minified JSON file. Separately, this revision also changes the output directory of the minified file to the build script's output directory via the `OUT_DIR` environment variable, so as not to pollute the source code.
Configuration menu - View commit details
-
Copy full SHA for 9214855 - Browse repository at this point
Copy the full SHA 9214855View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61b8eae - Browse repository at this point
Copy the full SHA 61b8eaeView commit details -
Sync latest Python releases (#16157)
Pick up python-build-standalone tag 20251007 to add 3.14.0 final and 3.13.8, and adjust tests. Also, fix matching version requests with prereleases: `uvx python@3.14.0rc3` should not be satisfied by 3.14.0 final. Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
Configuration menu - View commit details
-
Copy full SHA for 37b3557 - Browse repository at this point
Copy the full SHA 37b3557View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a507e6 - Browse repository at this point
Copy the full SHA 3a507e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for df0a12d - Browse repository at this point
Copy the full SHA df0a12dView commit details -
Promote trixie and alpine 3.22 as default tags (#15352)
## Summary Semi related to #15270, except there's no removal. Makes Alpine 3.22 and debian trixie the default tags instead of removing bookworm and alpine 3.21 to minimize churn. ~~This PR is pending #15351 merged first.~~ Merged ## Test Plan No functional changes made besides changing tag pointers.
Configuration menu - View commit details
-
Copy full SHA for 2f7bb7e - Browse repository at this point
Copy the full SHA 2f7bb7eView commit details -
Publish Python 3.14 Docker Images (#16150)
## Summary Tentative PR to drop the `-rc` suffix from the published images. Do not merge this yet until the formal release [upstream](https://hub.docker.com/_/python) :)
Configuration menu - View commit details
-
Copy full SHA for 5936780 - Browse repository at this point
Copy the full SHA 5936780View commit details -
Bump version to 0.9.0 (#16161)
Co-authored-by: konsti <konstin@mailbox.org>
Configuration menu - View commit details
-
Copy full SHA for 39b6886 - Browse repository at this point
Copy the full SHA 39b6886View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.8.24...0.9.0