Files
ruff/scripts/release.sh
T
Shaan Majid c5ee52a357 chore: lock rooster release dependency (#26509)
## Summary

Adds `rooster` to a new `release` dependency group, locks its full
dependency tree via `uv.lock`, and updates the release script to use the
locked installation for deterministic transitive dependency resolution.

Discussed in
https://github.com/astral-sh/ruff/pull/26463#discussion_r3504248600;
mirrored from astral-sh/uv#19923

## Test Plan

- `uv lock --check`
- `./scripts/release.sh` in a temporary worktree
2026-07-02 01:27:26 -07:00

29 lines
764 B
Bash
Executable File

#!/usr/bin/env bash
# Prepare for a release
#
# All additional options are passed to `rooster release`
set -eu
export UV_PREVIEW=1
script_root="$(realpath "$(dirname "$0")")"
project_root="$(dirname "$script_root")"
echo "Updating metadata with rooster..."
cd "$project_root"
uv run --locked --python 3.12 --only-group release \
rooster release "$@"
# Bump internal crate versions
uv run --script "$project_root/scripts/bump-workspace-crate-versions.py"
echo "Updating crate READMEs..."
uv run --script "$project_root/scripts/generate-crate-readmes.py"
echo "Updating lockfiles..."
cargo update -p ruff
uv lock --no-config
echo "Checking crates.io publish setup..."
uv run --no-config --script "$project_root/scripts/setup-crates-io-publish.py" --quiet