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

shoothzj pushed a commit to branch branch-4.16
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/branch-4.16 by this push:
     new 4e73837362 Update Release Script Instructions and Python Publishing 
Scripts (#4458)
4e73837362 is described below

commit 4e738373627c62d58b6b3846cb745af62de8e8da
Author: ZhangJian He <[email protected]>
AuthorDate: Tue Jul 2 07:51:16 2024 +0800

    Update Release Script Instructions and Python Publishing Scripts (#4458)
    
    ### Motivation
    
    This PR updates the release scripts to ensure more robust and consistent 
release processes. The changes include modifying the git tagging instructions 
to prevent potential mis-tags and updating the Python scripts to use Python 3 
explicitly, which aligns with best practices for Python development.
    
    ### Changes
    
    1. **Release Guide Modification**: Using ^{} ensures that the tag is 
created for the commit itself, not rc tag to be deleted.
    
    2. **Python Publishing Script**: Changed all instances of `python` to 
`python3`, modern operation systems default has `python3`, but not all has 
`python`
    
    Signed-off-by: ZhangJian He <[email protected]>
    (cherry picked from commit 243b085c7cff4fe8701ba818e6176ec9bc5937eb)
---
 site3/website/src/pages/community/release-guide.md | 2 +-
 stream/clients/python/scripts/publish.sh           | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/site3/website/src/pages/community/release-guide.md 
b/site3/website/src/pages/community/release-guide.md
index 2a0c394034..3faa43e9a6 100644
--- a/site3/website/src/pages/community/release-guide.md
+++ b/site3/website/src/pages/community/release-guide.md
@@ -476,7 +476,7 @@ Note: you can put the 1. and 2. in the same pull.
 Create and push a new signed for the released version by copying the tag for 
the final release tag, as follows
 
 ```shell
-git tag -s "${TAG}" "${RC_TAG}"
+git tag -s "${TAG}" "${RC_TAG}^{}"
 # Message: "Release ${VERSION}"
 git push apache "${TAG}"
 ```
diff --git a/stream/clients/python/scripts/publish.sh 
b/stream/clients/python/scripts/publish.sh
index caa2a3b5b4..7c55a0f201 100755
--- a/stream/clients/python/scripts/publish.sh
+++ b/stream/clients/python/scripts/publish.sh
@@ -23,8 +23,8 @@
 BINDIR=`dirname "$0"`
 BK_HOME=`cd ${BINDIR}/..;pwd`
 
-python -m pip install --user --upgrade setuptools wheel twine
+python3 -m pip install --user --upgrade setuptools wheel twine
 
 rm ${BK_HOME}/dist/*
-python setup.py sdist bdist_wheel
+python3 setup.py sdist bdist_wheel
 twine upload dist/*

Reply via email to