Files
uv/scripts/release.sh
T

30 lines
597 B
Bash
Raw Normal View History

2024-02-22 16:00:13 -06:00
#!/usr/bin/env bash
# Prepare for a release
#
2024-02-22 16:00:13 -06:00
# All additional options are passed to `rooster`
2024-04-02 18:25:27 -05:00
#
# See `scripts/release/` for supporting files.
2024-02-22 16:00:13 -06:00
set -eu
script_root="$(realpath "$(dirname "$0")")"
2024-04-02 18:25:27 -05:00
project_root="$(dirname "$script_root")"
2024-02-22 16:00:13 -06:00
2024-04-02 18:25:27 -05:00
cd "$script_root/release"
2024-02-22 16:00:13 -06:00
echo "Setting up a temporary environment..."
uv venv
source ".venv/bin/activate"
uv pip install -r requirements.txt
echo "Updating metadata with rooster..."
cd "$project_root"
rooster release "$@"
echo "Updating lockfile..."
cargo update -p uv
2024-02-22 16:00:13 -06:00
echo "Generating contributors list..."
echo ""
echo ""
rooster contributors --quiet