mirror of
https://github.com/astral-sh/uv.git
synced 2025-12-23 09:19:48 +00:00
## Summary Given `bump-workspace-crate-versions.py` will bump all crates, we also need to update uv-trampoline lockfile references to those new versions (for uv-static, uv-macros) after https://github.com/astral-sh/uv/pull/16950. ## Test Plan Ran release script manually and verify uv-trampoline lockfile is up to date after the changes from bump-workspace-crate-versions.py
21 lines
526 B
Bash
Executable file
21 lines
526 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Prepare for a release
|
|
#
|
|
# All additional options are passed to `rooster`
|
|
set -eu
|
|
|
|
script_root="$(realpath "$(dirname "$0")")"
|
|
project_root="$(dirname "$script_root")"
|
|
|
|
echo "Updating metadata with rooster..."
|
|
cd "$project_root"
|
|
|
|
# Update the changelog
|
|
uvx --python 3.12 rooster@0.1.1 release "$@"
|
|
|
|
# Bump library crate versions
|
|
uv run "$project_root/scripts/bump-workspace-crate-versions.py"
|
|
|
|
echo "Updating lockfile..."
|
|
cargo update -p uv
|
|
pushd crates/uv-trampoline; cargo update -p uv-trampoline; popd
|