Use uv tool run for release script (#3764)

Dogfooding!
This commit is contained in:
Zanie Blue 2024-05-22 17:31:13 -04:00 committed by GitHub
parent a6043553c8
commit 5cd3af8ab4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 72 deletions

View file

@ -2,28 +2,14 @@
# Prepare for a release
#
# All additional options are passed to `rooster`
#
# See `scripts/release/` for supporting files.
set -eu
script_root="$(realpath "$(dirname "$0")")"
project_root="$(dirname "$script_root")"
cd "$script_root/release"
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 "$@"
uv tool run --from rooster-blue --isolated -- rooster release "$@"
echo "Updating lockfile..."
cargo update -p uv
echo "Generating contributors list..."
echo ""
echo ""
rooster contributors --quiet

View file

@ -1 +0,0 @@
rooster-blue

View file

@ -1,56 +0,0 @@
# This file was autogenerated by uv v0.1.1 via the following command:
# uv pip compile scripts/release/requirements.in -o scripts/release/requirements.txt --upgrade
annotated-types==0.6.0
# via pydantic
anyio==4.3.0
# via httpx
certifi==2024.2.2
# via
# httpcore
# httpx
cffi==1.16.0
# via pygit2
click==8.1.7
# via typer
h11==0.14.0
# via httpcore
hishel==0.0.12
# via rooster-blue
httpcore==1.0.4
# via httpx
httpx==0.25.2
# via
# hishel
# rooster-blue
idna==3.6
# via
# anyio
# httpx
marko==2.0.3
# via rooster-blue
packaging==23.2
# via rooster-blue
pycparser==2.21
# via cffi
pydantic==2.6.1
# via rooster-blue
pydantic-core==2.16.2
# via pydantic
pygit2==1.14.1
# via rooster-blue
rooster-blue==0.0.2
setuptools==69.1.0
# via pygit2
sniffio==1.3.0
# via
# anyio
# httpx
tqdm==4.66.2
# via rooster-blue
typer==0.9.0
# via rooster-blue
typing-extensions==4.9.0
# via
# pydantic
# pydantic-core
# typer