Skip to content

Commit 93dd145

Browse files
committed
build: fix release script for uv
1 parent 7eafaa8 commit 93dd145

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ request_approval_to_continue() {
1818
show_help () {
1919
echo Usage: $0 VERSION
2020
echo
21-
echo VERSION should ideally be a valid semver string or a valid bump rule: patch, minor, major, prepatch, preminor, premajor, prerelease.
21+
echo VERSION must be a valid semver string or a valid bump rule: major, minor, patch, stable, alpha, beta, rc, post, dev.
2222
exit 0
2323
}
2424

@@ -43,7 +43,7 @@ git diff --exit-code CHANGELOG.md &> /dev/null || (echo ERROR: CHANGELOG.md file
4343
git diff --exit-code pyproject.toml &> /dev/null || (echo ERROR: pyproject.toml file has unstaged changes, aborting. ; exit 1)
4444

4545
# Bump the version with uv and re-read it
46-
uv version $VERSION
46+
uv version --bump $VERSION
4747
VERSION=$(uv version --short)
4848

4949
request_approval_to_continue "New version will be: $VERSION"
@@ -70,7 +70,7 @@ sed '2,${/^#/Q}' CHANGELOG.md | git tag -a -F- v$VERSION
7070
echo
7171
echo Bump the version with uv again to mark it for development
7272
echo
73-
uv version prerelease
73+
uv version --bump patch --bump dev
7474
VERSION=$(uv version --short)
7575

7676
git add pyproject.toml

0 commit comments

Comments
 (0)