Skip to content

V2.9.0rc #1951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 28, 2025
12 changes: 12 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ blocks:
jobs:
- name: Build
commands:
- sem-version python 3.11
- PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1)
- export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH"
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse 2.16.2
- tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse
- artifact push workflow wheelhouse-macOS-${ARCH}.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}.tgz/
Expand All @@ -53,6 +56,9 @@ blocks:
jobs:
- name: Build
commands:
- sem-version python 3.11
- PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1)
- export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH"
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
- tar -czf wheelhouse-macOS-${ARCH}-py313.tgz wheelhouse
- artifact push workflow wheelhouse-macOS-${ARCH}-py313.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}-py313.tgz/
Expand All @@ -74,6 +80,9 @@ blocks:
jobs:
- name: Build
commands:
- sem-version python 3.11
- PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1)
- export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH"
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse 2.16.2
- tar -czf wheelhouse-macOS-${ARCH}.tgz wheelhouse
- artifact push workflow wheelhouse-macOS-${ARCH}.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}.tgz/
Expand All @@ -99,6 +108,9 @@ blocks:
jobs:
- name: Build
commands:
- sem-version python 3.11
- PYTHON_VERSION=$(pyenv versions --bare | grep '^3.11' | head -n1)
- export PATH="$(pyenv root)/versions/$PYTHON_VERSION/bin:$PATH"
- PIP_INSTALL_OPTIONS="--user" tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
- tar -czf wheelhouse-macOS-${ARCH}-py313.tgz wheelhouse
- artifact push workflow wheelhouse-macOS-${ARCH}-py313.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}-py313.tgz/
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Confluent's Python client for Apache Kafka

## v2.9.0

v2.9.0 is a feature release with the following fixes and enhancements:

- Add Client Credentials OAuth support for Schema Registry (#1919)
- Add custom OAuth support for Schema Registry (#1925)

confluent-kafka-python v2.9.0 is based on librdkafka v2.8.0, see the
[librdkafka release notes](https://github.com/confluentinc/librdkafka/releases/tag/v2.8.0)
for a complete list of changes, enhancements, fixes and upgrade considerations.

## v2.8.2

v2.8.2 is a maintenance release with the following fixes and enhancements:
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# built documents.
#
# The short X.Y version.
version = '2.8.2'
version = '2.9.0'
# The full version, including alpha/beta/rc tags.
release = version
######################################################################
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "confluent-kafka"
version = "2.8.2"
version = "2.9.0"
description = "Confluent's Python client for Apache Kafka"
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down
4 changes: 2 additions & 2 deletions src/confluent_kafka/src/confluent_kafka.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
* 0xMMmmRRPP
* MM=major, mm=minor, RR=revision, PP=patchlevel (not used)
*/
#define CFL_VERSION 0x02080200
#define CFL_VERSION_STR "2.8.2"
#define CFL_VERSION 0x02090000
#define CFL_VERSION_STR "2.9.0"

/**
* Minimum required librdkafka version. This is checked both during
Expand Down
3 changes: 1 addition & 2 deletions tools/wheels/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#
# Build wheels (on Linux or OSX) using cibuildwheel.
#

this_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"


Expand Down Expand Up @@ -54,7 +53,7 @@ $this_dir/install-librdkafka.sh $librdkafka_version dest

install_pkgs=cibuildwheel==$cibuildwheel_version

python -m pip install ${PIP_INSTALL_OPTS} $install_pkgs ||
python3 -m pip install ${PIP_INSTALL_OPTS} $install_pkgs ||
pip3 install ${PIP_INSTALL_OPTS} $install_pkgs

if [[ -z $TRAVIS ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import platform
import sys
import os
import tomli
import tomllib
import urllib.request
import re
import shutil
Expand All @@ -26,7 +26,7 @@
response = urllib.request.urlopen(config_url).read()

content = response.decode('utf-8')
d = tomli.loads(content)
d = tomllib.loads(content)
macos_config = d['macos']['python_configurations']

machine_arc = platform.machine()
Expand Down