PyDolphinScheduler office release is in ASF Distribution Directory, but we also have a PyPi repository for Python package distribution for convenience.
- Change
version_extabout the dolphinscheduler version current support, the syntax is respect pep-044, and update support version indocs/source/index.rstfile. - Cherry-pick some backward compatibility commit in 4.0.x, the first commit is 3a8a4e31
- Revert commit Apache dolphinscheduler not release yet, see this link add check whether apache/dolphinscheduler commit is released, for some commit not release should revert the change
- Run all test locally,
tox -e local-ci && tox -e local-integrate-test, after you start dolphinscheduler to passlocal-integrate-test - Remove
sphinx-multiversiondependency insetup.cfg, we still can not fix this issue Distribute tarball and wheel error with direct dependency
We use build to build package, and twine to upload package to PyPi. You could first install and upgrade them by:
# Install or upgrade dependencies
python3 -m pip install --upgrade pip build twine
# Configuration during the releasing
VERSION=<VERSION> # The version of the package you want to release, e.g. 1.2.3
REMOTE=<REMOTE> # The git remote name, we usually use `origin` or `remote`
# Change version
# For macOS
sed -i '' "s/__version__ = \".*\"/__version__ = \"${VERSION}\"/" src/pydolphinscheduler/__init__.py
# For Linux
sed -i "s/__version__ = \".*\"/__version__ = \"${VERSION}\"/" src/pydolphinscheduler/__init__.py
git commit -am "Release v${VERSION}"
# Add Tag
git tag -a "${VERSION}" -m "Release v${VERSION}"
git push "${REMOTE}" tags/"${VERSION}"
# Build and sign according to the Apache requirements
python setup.py clean && python setup.py asdistGo to GitHub release page and create a release based to the specific tag, and set it as pre-release.
svn co https://dist.apache.org/repos/dist/dev/dolphinscheduler/ release/dolphinscheduler
mkdir -p release/dolphinscheduler/python/"${VERSION}"
cp dist/dolphinscheduler-python-src-"${VERSION}"* release/dolphinscheduler/python/"${VERSION}"
cd release/dolphinscheduler && svn add python/"${VERSION}" && svn commit python -m "Release Apache DolphinScheduler-SDK-Python version ${VERSION}"Create a new vote in dev@dolphinscheduler.apache.org
TITLE: [VOTE] Release Apache DolphinScheduler Python SDK <VERSION>
BODY:
Hello DolphinScheduler Community,
This is a call for the vote to release Apache DolphinScheduler Python SDK version <VERSION>
Release notes: https://github.com/apache/dolphinscheduler-sdk-python/releases/tag/<VERSION>
The release candidates: https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/<VERSION>/
Git tag for the release: https://github.com/apache/dolphinscheduler-sdk-python/tree/<VERSION>
Release Commit ID: https://github.com/apache/dolphinscheduler-sdk-python/commit/<commit-SHA>
How to check the candidate: https://github.com/apache/dolphinscheduler-sdk-python/blob/main/RELEASE.md#check-release-candidate
Keys to verify the Release Candidate: https://downloads.apache.org/dolphinscheduler/KEYS
The vote will be open for at least 72 hours or until the necessary number of votes is reached.
Please vote accordingly:
[ ] +1 approve
[ ] +0 no opinion
[ ] -1 disapprove with the reason
Checklist for reference:
[ ] Download links are valid.
[ ] Checksums and PGP signatures are valid.
[ ] Source code artifacts have correct names matching the current release.
[ ] LICENSE and NOTICE files are correct for each DolphinScheduler repo.
[ ] All files have license headers if necessary.
[ ] No compiled archives bundled in source archive.
- Artifacts in staging repository are published with
.asc, andsha512files. LICENSEandNOTICEare in source codes and distribution package.- Check
sha512andgpgsignature with following command:
VERSION=<VERSION> # The version of the package you want to release, e.g. 1.2.3
# Download source code
curl https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/"${VERSION}"/dolphinscheduler-python-src-"${VERSION}".tar.gz > dolphinscheduler-python-src-"${VERSION}".tar.gz
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
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
# Verify sha512
sha512sum --check dolphinscheduler-python-src-"${VERSION}".tar.gz.sha512
# Verify gpg signature
curl https://dist.apache.org/repos/dist/release/dolphinscheduler/KEYS > KEYS
gpg --import KEYS
gpg --verify dolphinscheduler-python-src-"${VERSION}".tar.gz.ascVote result should follow these:
-
PMC vote is +1 binding, all others is +1 no binding.
-
Within 72 hours, you get at least 3 (+1 binding), and have more +1 than -1. Vote pass.
-
Send the closing vote mail to announce the result. When count the binding and no binding votes, please list the names of voters. An example like this:
[RESULT][VOTE] Release Apache DolphinScheduler Python version $VERSION 72+ hours passed, we’ve got ($NUMBER) +1 bindings (and ... +1 non-bindings): (list names) +1 bindings: xxx ... +1 non-bindings: xxx ... Thank you for voting, I’ll continue the release process.
-
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.
# Move from dev to release svn mv https://dist.apache.org/repos/dist/dev/dolphinscheduler/python/"${VERSION}" https://dist.apache.org/repos/dist/release/dolphinscheduler/python/"${VERSION}" # Delete the old version svn delete -m "remove old release Python SDK" https://dist.apache.org/repos/dist/release/dolphinscheduler/python/<PREVIOUS-RELEASE-VERSION>
-
Update GitHub release page and set it as formal release.
-
Send ANNOUNCE email to
dev@dolphinscheduler.apache.organdannounce@apache.org.Subject: [ANNOUNCE] Apache DolphinScheduler Python SDK $VERSION Released Content: Hi Community, We are glad to announce the release of Apache DolphinScheduler Python SDK $VERSION. Apache DolphinScheduler Python SDK is an API for Apache DolphinScheduler which allows you to define your workflow by Python code, aka workflow-as-codes. DolphinScheduler is a distributed and easy-to-extend visual workflow scheduler system, dedicated to solving the complex task dependencies in data processing, making the scheduler system out of the box for data processing. Release Notes: https://github.com/apache/dolphinscheduler-sdk-python/releases/tag/$VERSION DolphinScheduler Resources: - Issue: https://github.com/apache/dolphinscheduler-sdk-python/issues/ - Mailing list: dev@dolphinscheduler.apache.org - Website: https://dolphinscheduler.apache.org - Documents: https://dolphinscheduler.apache.org/python/$VERSION
PyPI, Python Package Index, is a repository of software for the Python programming language.
TestPyPi is a test environment of PyPi, you could release to it to test whether the package is work or not.
- (Optional) Create an account in TestPyPi, only need for first release.
- Clean
distdirectory and buildpython3 setup.py clean && python3 -m build. - Upload to TestPyPi
python3 -m twine upload --repository testpypi dist/*. - Check the package in TestPyPi and install it
by
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps apache-dolphinschedulerto test whether it is work or not.
PyPi is the official repository of Python packages, it is highly recommended releasing package to TestPyPi first to test whether the package is correct.