This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to tag v0.10.0
in repository https://gitbox.apache.org/repos/asf/fury.git

commit 8b7accc0850b49ebb848fcd77b4a17c8667856fc
Author: chaokunyang <[email protected]>
AuthorDate: Thu Feb 6 21:34:51 2025 +0800

    fix bump py version
---
 ci/deploy.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/ci/deploy.sh b/ci/deploy.sh
index e989d4ee..99c03bfe 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -80,7 +80,16 @@ bump_java_version() {
 }
 
 bump_py_version() {
-  python "$ROOT/ci/release.py" bump_version -l python -version "$1"
+  local version="$1"
+  if [ -z "$version" ]; then
+    # Get the latest tag from the current Git repository
+    version=$(git describe --tags --abbrev=0)
+    # Check if the tag starts with 'v' and strip it
+    if [[ $version == v* ]]; then
+      version="${version:1}"
+    fi
+  fi
+  python "$ROOT/ci/release.py" bump_version -l python -version "$version"
 }
 
 bump_javascript_version() {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to