uv/scripts/release.sh
Charlie Marsh 5d727cb0af
Deprecate the --isolated flag (#5466)
## Summary

This PR deprecates the `--isolated` flag. The treatment varies across
the APIs:

- For non-preview APIs, we warn but treat it as equivalent to
`--no-config`.
- For preview APIs, we warn and ignore it, with two exceptions...
- For `tool run` and `run` specifically, we don't even warn, because we
can't differentiate the command-specific `--isolated` from the global
`--isolated`.
2024-07-30 22:40:38 +00:00

25 lines
684 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' --python 3.12 -- \
rooster release "$@" \
--only-sections preview \
--changelog-file PREVIEW-CHANGELOG.md \
--no-update-pyproject --no-update-version-files
# Update the real changelog
uv tool run --from 'rooster-blue>=0.0.7' --python 3.12 -- \
rooster release "$@" --without-sections preview
echo "Updating lockfile..."
cargo update -p uv