Release Process

This page contains instructions for Pulsar committers on how to perform a release for the Pulsar Python client.


Bump up the version number as follows.

  • Major version (e.g. 3.0.0 => 4.0.0)
    • Changes that break backward compatibility
  • Minor version (e.g. 3.0.0 => 3.1.0)
    • Backward compatible new features
  • Patch version (e.g. 3.0.0 => 3.0.1)
    • Backward compatible bug fixes
    • C++ Client upgrade (even though there are no new commits in the Python client)


If you haven't already done it, create and publish the GPG key to sign the release artifacts.

Upgrade the C++ client dependency

During the development, the C++ client dependency might be downloaded from an unofficial release. But when releasing the Python client, the dependency must be downloaded from an official release. You should modify the base url in


Cut the candidate release

After all necessary PRs are cherry-picked to branch-X.Y, you should cut the release by pushing a tag.

For major and minor releases (X.Y.0), you need to create a new branch:

git checkout -b branch-X.Y
sed -i 's/__version__.*/__version__=X.Y.0/' pulsar/
git add pulsar/
git commit -m "Bump version to X.Y.0"
git push origin branch-X.Y
# N starts with 1
git tag vX.Y.0-candidate-N
git push origin vX.Y.0-candidate-N

For patch releases (X.Y.Z), you need to reuse the existing branch:

git checkout branch-X.Y
sed -i 's/__version__.*/__version__=X.Y.Z/' pulsar/
git add pulsar/
git commit -m "Bump version to X.Y.Z"
git push origin branch-X.Y
# N starts with 1
git tag vX.Y.Z-candidate-N
git push origin vX.Y.Z-candidate-N

Then, create a new milestone for the next major release.

Sign and stage the candidate release

After a tag is pushed, a workflow will be triggered to build the Python wheels in GitHub Actions. You can find it in

For example, is the workflow of v3.0.0-candidate-3, the workflow id is 3709463737. Remember the workflow id, which will be passed as an argument of in the following step. Once the workflow is completed, the wheels will be available for downloading.

Generate a GitHub token by following the guide here. The repo and workflow checkboxes must be selected. Then export the token as the environment variable:

export GITHUB_TOKEN=<your-token>

Edit ~/.gnupg/gpg.conf to ensure the default GPG key is from your Apache mail (<your-name>

default-key <key fingerprint>

Make sure curl, jq, unzip, gpg, shasum commands are available. Then you should run the following commands in an empty directory:

svn co pulsar-dist-dev-keys --depth empty
cd pulsar-dist-dev-keys
svn mkdir pulsar-client-python-X.Y.Z-candidate-N && cd pulsar-client-python-X.Y.Z-candidate-N
# PROJECT_DIR is the directory of the pulsar-client-python repository 
$PROJECT_DIR/build-support/ vX.Y.Z-candidate-N $WORKFLOW_ID
svn add *
svn ci -m "Staging artifacts and signature for Python client X.Y.Z-candidate-N"

Start the vote for the candidate

Send an email to to start the vote for the candidate:

Subject: [VOTE] Pulsar Client Python Release X.Y.Z Candidate N

This is the Nth release candidate for Apache Pulsar Client Python,
version X.Y.Z.

It fixes the following issues:<milestone-id>?closed=1

*** Please download, test and vote on this release. This vote will
stay open for at least 72 hours ***

Python wheels:

The supported python versions are 3.7, 3.8, 3.9, 3.10 and 3.11. The
supported platforms and architectures are:
- Windows x86_64 (windows/)
- glibc-based Linux x86_64 (linux-glibc-x86_64/)
- glibc-based Linux arm64 (linux-glibc-arm64/)
- musl-based Linux x86_64 (linux-musl-x86_64/)
- musl-based Linux arm64 (linux-musl-arm64/)
- macOS universal 2 (macos/)

The tag to be voted upon: vX.Y.Z-candidate-N

Pulsar's KEYS file containing PGP keys you use to sign the release:

Please download the Python wheels and follow the README to test.

Once there are at least 3 binding +1s, the vote will be ready to close and you can continue the following steps. If there is something wrong with the candidate, you need to fix it and repeat the steps from the Cut the next candidate section again.

Move main branch to next version

You need to move the main version to the next iteration.

git checkout main
sed -i.bak 's/X.Y.0a1/X.Y+1.0a1/' pulsar/
git add pulsar/
git commit -m "Bumped version to X.Y.0a1"

Since this needs to be merged into main, you need to follow the regular process and create a Pull Request on GitHub.

Promote the release

Ask a PMC member to promote the release:

svn move -m "Release Apache Pulsar Client Python X.Y.Z" \ \

Upload the wheels to PyPI

  1. You need to create an account on PyPI:
  2. Ask anyone that has been a release manager before to add you as a maintainer for pulsar-client on PyPI
  3. Once you have completed the following steps in this section, you can check if the wheels are uploaded successfully in Download files. Remember to switch to the correct version in Release history).

Then, upload the wheels to PyPI:

sudo python3 -m pip install twine

To verify the wheels have been uploaded successfully, you can try installing the wheel:

python3 -m pip install pulsar-client==X.Y.Z

Write release notes

Push the official tag:

git checkout vX.Y.Z-candidate-N
git tag vX.Y.Z
git push origin vX.Y.Z

Then, create a release. Choose the vX.Y.Z tag and click the Generate release notes button to generate the release note automatically. Here is an example release note:

Then, create a PR in pulsar-site repo to update the website. Here is an example:

Generate the API documents

For minor releases, skip this section. For major releases, you should generate the HTML files into the pulsar-site repo:

git clone
cd pulsar-client-python
git checkout vX.Y.0
# It's better to replace this URL with the URL of your own fork
git clone
sudo python3 -m pip install pydoctor
pydoctor --make-html \
  --html-viewsource-base= \
  --docformat=numpy --theme=readthedocs \
  --intersphinx= \
  --html-output=./pulsar-site/site2/website-next/static/api/python/X.Y.x \
cd pulsar-site
git checkout -b py-docs-X.Y
git add .
git commit -m "Generate Python client X.Y.0 doc"
git push origin py-docs-X.Y

Then open a PR like:

Announce the release

Use your Apache email account ( to send an email like:

Subject: [ANNOUNCE] Apache Pulsar Client Python X.Y.Z released

The Apache Pulsar team is proud to announce Apache Pulsar Client
Python version X.Y.Z.

Pulsar is a highly scalable, low latency messaging platform running on
commodity hardware. It provides simple pub-sub semantics over topics,
guaranteed at-least-once delivery of messages, automatic cursor management for
subscribers, and cross-datacenter replication.

You can download the source code and the Python wheels in:

The Python wheels were uploaded to PyPI as well so that they can be
installed by `pip install pulsar-client==X.Y.Z`.

Release Notes are at:

We would like to thank the contributors that made the release possible.


The Pulsar Team

Send the email in plain text mode since the mailing list will reject messages with text/html content. In Gmail, there's an option to set Plain text mode in the ⋮/ More options menu.