mirror of
https://github.com/astral-sh/uv.git
synced 2026-05-06 08:56:53 -04:00
4ff4720da5
I want to lock our Zig build dependencies and this is an incremental step towards doing so via uv
29 lines
691 B
Bash
Executable File
29 lines
691 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 crate READMEs..."
|
|
uv run "$project_root/scripts/generate-crate-readmes.py"
|
|
|
|
echo "Updating lockfiles..."
|
|
cargo update -p uv
|
|
pushd crates/uv-trampoline; cargo update -p uv-trampoline; popd
|
|
uv lock
|
|
|
|
echo "Generating JSON schema..."
|
|
cargo dev generate-json-schema
|