Skip to content

Commit 0a56ffa

Browse files
committed
Update release script to remove poetry dependency and use sed for version update
1 parent 97e6a37 commit 0a56ffa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/release.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Examples:
4242
$0 simunet 0.4.0
4343
4444
This script will:
45-
1. Update version in pyproject.toml using poetry
45+
1. Update version in pyproject.toml
4646
2. Commit version changes
4747
3. Create a git tag (agent-X.X.X or simunet-X.X.X)
4848
4. Push changes and tag to trigger the release workflow
@@ -87,10 +87,10 @@ if ! git rev-parse --git-dir > /dev/null 2>&1; then
8787
exit 1
8888
fi
8989

90-
# Check if poetry is installed
91-
if ! command -v poetry &> /dev/null; then
92-
print_error "Poetry is not installed"
93-
print_error "Install it from: https://python-poetry.org/docs/#installation"
90+
# Check if uv is installed
91+
if ! command -v uv &> /dev/null; then
92+
print_error "uv is not installed"
93+
print_error "Install it from: https://docs.astral.sh/uv/getting-started/installation/"
9494
exit 1
9595
fi
9696

@@ -128,7 +128,7 @@ fi
128128
# Update version in pyproject.toml
129129
echo
130130
print_info "Updating version in projects/${PROJECT}/pyproject.toml to ${VERSION}..."
131-
poetry version "$VERSION" -C "projects/${PROJECT}"
131+
sed -i '' "s/^version = \".*\"/version = \"${VERSION}\"/" "projects/${PROJECT}/pyproject.toml"
132132
print_success "Version updated"
133133

134134
# Commit version changes

0 commit comments

Comments
 (0)