mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-21 20:29:20 +08:00
## 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
29 lines
764 B
Bash
Executable File
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
|