Skip to content

Commit b70bb27

Browse files
hezhangjianAnup Ghatage
authored and
Anup Ghatage
committed
Update Release Script Instructions and Python Publishing Scripts (apache#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]>
1 parent d9f8119 commit b70bb27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

site3/website/src/pages/community/release-guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ Note: you can put the 1. and 2. in the same pull.
492492
Create and push a new signed for the released version by copying the tag for the final release tag, as follows
493493

494494
```shell
495-
git tag -s "${TAG}" "${RC_TAG}"
495+
git tag -s "${TAG}" "${RC_TAG}^{}"
496496
# Message: "Release ${VERSION}"
497497
git push apache "${TAG}"
498498
```

stream/clients/python/scripts/publish.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
BINDIR=`dirname "$0"`
2424
BK_HOME=`cd ${BINDIR}/..;pwd`
2525

26-
python -m pip install --user --upgrade setuptools wheel twine
26+
python3 -m pip install --user --upgrade setuptools wheel twine
2727

2828
rm ${BK_HOME}/dist/*
29-
python setup.py sdist bdist_wheel
29+
python3 setup.py sdist bdist_wheel
3030
twine upload dist/*

0 commit comments

Comments
 (0)