mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 14:49:58 -07:00
global: snapshot
This commit is contained in:
20
scripts/python-publish.sh
Executable file
20
scripts/python-publish.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
ROOT_DIR="$SCRIPT_DIR/.."
|
||||
|
||||
VERSION="$1"
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$ROOT_DIR/packages/brk_client"
|
||||
|
||||
# Update version in pyproject.toml
|
||||
sed -i '' 's/^version = "[^"]*"/version = "'"$VERSION"'"/' pyproject.toml
|
||||
echo "Updated pyproject.toml to $VERSION"
|
||||
|
||||
uv build
|
||||
uv publish
|
||||
Reference in New Issue
Block a user