@@ -52,15 +52,8 @@ REMOTE=<REMOTE> # The git remote name, we usually use `origin` or `remote`
5252git tag -a " ${VERSION} " -m " Release v${VERSION} "
5353git push " ${REMOTE} " --tags
5454
55- # Build
56- python setup.py clean && python -m build
57-
58- # Sign
59- cd dist
60- gpg --batch --yes --armor --detach-sig apache-dolphinscheduler-" ${VERSION} " .tar.gz
61- gpg --batch --yes --armor --detach-sig apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl
62- shasum -a 512 apache-dolphinscheduler-" ${VERSION} " .tar.gz > apache-dolphinscheduler-" ${VERSION} " .tar.gz.sha512
63- shasum -b -a 512 apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl > apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl.sha512
55+ # Build and sign according to the Apache requirements
56+ python setup.py clean && python setup.py sdist
6457```
6558
6659## Create Draft Release
@@ -75,7 +68,7 @@ based to the specific tag, and set it as pre-release.
7568``` shell
7669svn co https://dist.apache.org/repos/dist/dev/dolphinscheduler/ release/dolphinscheduler
7770mkdir -p release/dolphinscheduler/python/" ${VERSION} "
78- cp apache * dolphinscheduler-" ${VERSION} " * release/dolphinscheduler/python/" ${VERSION} "
71+ cp dolphinscheduler-python-src -" ${VERSION} " * release/dolphinscheduler/python/" ${VERSION} "
7972
8073cd release/dolphinscheduler && svn add python && svn commit python -m " Release Apache DolphinScheduler-SDK-Python version ${VERSION} "
8174```
@@ -99,7 +92,7 @@ The release candidates: https://dist.apache.org/repos/dist/dev/dolphinscheduler/
9992
10093Git tag for the release: https://github.com/apache/dolphinscheduler-sdk-python/tree/<VERSION>
10194
102- Release Commit ID: https://github.com/apache/dolphinscheduler-sdk-python/commit/02bc4f44cdd136622e403506f6474da0c7fa36fb
95+ Release Commit ID: https://github.com/apache/dolphinscheduler-sdk-python/commit/<commit-SHA>
10396
10497Keys to verify the Release Candidate: https://dist.apache.org/repos/dist/dev/dolphinscheduler/KEYS
10598
@@ -130,22 +123,16 @@ Checklist for reference:
130123``` shell
131124VERSION=< VERSION> # The version of the package you want to release, e.g. 1.2.3
132125# Download source code
133- curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/" ${VERSION} " /apache-dolphinscheduler-" ${VERSION} " .tar.gz > apache-dolphinscheduler-" ${VERSION} " .tar.gz
134- curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/" ${VERSION} " /apache-dolphinscheduler-" ${VERSION} " .tar.gz.asc > apache-dolphinscheduler-" ${VERSION} " .tar.gz.asc
135- curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/" ${VERSION} " /apache-dolphinscheduler-" ${VERSION} " .tar.gz.sha512 > apache-dolphinscheduler-" ${VERSION} " .tar.gz.sha512
136- # Download binary code
137- curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/" ${VERSION} " /apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl > apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl
138- curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/" ${VERSION} " /apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl.asc > apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl.asc
139- curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/" ${VERSION} " /apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl.sha512 > apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl.sha512
126+ curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/" ${VERSION} " /dolphinscheduler-python-src-" ${VERSION} " .tar.gz > dolphinscheduler-python-src-" ${VERSION} " .tar.gz
127+ curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/" ${VERSION} " /dolphinscheduler-python-src-" ${VERSION} " .tar.gz.asc > dolphinscheduler-python-src-" ${VERSION} " .tar.gz.asc
128+ curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/" ${VERSION} " /dolphinscheduler-python-src-" ${VERSION} " .tar.gz.sha512 > dolphinscheduler-python-src-" ${VERSION} " .tar.gz.sha512
140129
141130# Verify sha512
142- sha512sum --check apache-dolphinscheduler-" ${VERSION} " .tar.gz.sha512
143- sha512sum --check apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl.sha512
131+ sha512sum --check dolphinscheduler-python-src-" ${VERSION} " .tar.gz.sha512
144132# Verify gpg signature
145133curl https://dist.apache.org/repos/dist/release/dolphinscheduler/KEYS > KEYS
146134gpg --import KEYS
147- gpg --verify apache-dolphinscheduler-" ${VERSION} " .tar.gz.asc
148- gpg --verify apache_dolphinscheduler-" ${VERSION} " -py3-none-any.whl.asc
135+ gpg --verify dolphinscheduler-python-src-" ${VERSION} " .tar.gz.asc
149136```
150137
151138Vote result should follow these:
@@ -176,7 +163,10 @@ Vote result should follow these:
176163- Move source codes tar balls and distributions to https://dist.apache.org/repos/dist/release/dolphinscheduler/, **you can do this only if you are a PMC member**.
177164
178165 ```shell
166+ # Move from dev to release
179167 svn mv https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/"${VERSION}" https://dist.apache.org/repos/dist/release/dolphinscheduler/python/"${VERSION}"
168+ # Delete the old version
169+ svn delete -m "remove old release Python SDK" https://dist.apache.org/repos/dist/release/dolphinscheduler/python/<PREVIOUS-RELEASE-VERSION>
180170 ```
181171
182172- Update [GitHub release page](https://github.com/apache/dolphinscheduler-sdk-python/releases) and set it as formal release.
0 commit comments