mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00

I tweaked rooster to allow sections to be overridden from the CLI so we can generate a separate preview changelog See https://github.com/zanieb/rooster/pull/43 for the rooster changes needed I tested `./scripts/release.sh` as well.
25 lines
678 B
Bash
Executable file
25 lines
678 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 preview changelog
|
|
uv tool run --from 'rooster-blue>=0.0.7' --isolated -- \
|
|
rooster release "$@" \
|
|
--only-sections preview \
|
|
--changelog-file CHANGELOG-PREVIEW.md \
|
|
--no-update-pyproject --no-update-version-files
|
|
|
|
# Update the real changelog
|
|
uv tool run --from 'rooster-blue>=0.0.7' --isolated -- \
|
|
rooster release "$@" --without-sections preview
|
|
|
|
echo "Updating lockfile..."
|
|
cargo update -p uv
|