Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ global_job_config:
- checkout
- mkdir artifacts
blocks:
- name: "Wheels: OSX x64 - Python 3.7-3.12"
- name: "Wheels: OSX x64 - Python 3.8-3.12"
run:
when: "tag =~ '.*'"
dependencies: []
Expand All @@ -34,7 +34,7 @@ blocks:
- 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/
- name: "Wheels: OSX x64 - Python 3.13"
- name: "Wheels: OSX x64 - Python 3.13-3.14"
run:
when: "tag =~ '.*'"
dependencies: []
Expand All @@ -54,10 +54,10 @@ blocks:
jobs:
- name: Build
commands:
- sem-version python 3.11
- sem-version python 3.13
- 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/
- tar -czf wheelhouse-macOS-${ARCH}-py313-plus.tgz wheelhouse
- artifact push workflow wheelhouse-macOS-${ARCH}-py313-plus.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}-py313-plus.tgz/
- name: "Wheels: OSX arm64 - Python 3.8-3.12"
run:
when: "tag =~ '.*'"
Expand All @@ -80,7 +80,7 @@ blocks:
- 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/
- name: "Wheels: OSX arm64 - Python 3.13"
- name: "Wheels: OSX arm64 - Python 3.13-3.14"
run:
when: "tag =~ '.*'"
dependencies: []
Expand All @@ -102,10 +102,10 @@ blocks:
jobs:
- name: Build
commands:
- sem-version python 3.11
- sem-version python 3.13
- 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/
- tar -czf wheelhouse-macOS-${ARCH}-py313-plus.tgz wheelhouse
- artifact push workflow wheelhouse-macOS-${ARCH}-py313-plus.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}-py313-plus.tgz/
- name: "Wheels: Linux arm64"
run:
when: "tag =~ '.*'"
Expand All @@ -122,6 +122,7 @@ blocks:
jobs:
- name: Build
commands:
- sem-version python 3.13
- ./tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
- tar -czf wheelhouse-linux-${ARCH}.tgz wheelhouse
- artifact push workflow wheelhouse-linux-${ARCH}.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}.tgz/
Expand All @@ -141,6 +142,7 @@ blocks:
jobs:
- name: Build
commands:
- sem-version python 3.11
- ./tools/wheels/build-wheels.sh "${LIBRDKAFKA_VERSION#v}" wheelhouse
- tar -czf wheelhouse-linux-${ARCH}.tgz wheelhouse
- artifact push workflow wheelhouse-linux-${ARCH}.tgz --destination artifacts/wheels-${OS_NAME}-${ARCH}.tgz/
Expand Down Expand Up @@ -170,6 +172,8 @@ blocks:
- name: MSYSTEM
value: UCRT64
commands:
- pyenv install 3.11.9
- pyenv global 3.11.9
- bash tools/mingw-w64/semaphore_commands.sh
- bash tools/wheels/install-librdkafka.sh $env:LIBRDKAFKA_VERSION.TrimStart("v") dest
- tools/wheels/build-wheels.bat x64 win_amd64 dest wheelhouse
Expand Down Expand Up @@ -379,10 +383,10 @@ blocks:
run:
when: "tag =~ '.*'"
dependencies:
- "Wheels: OSX x64 - Python 3.7-3.12"
- "Wheels: OSX x64 - Python 3.13"
- "Wheels: OSX x64 - Python 3.8-3.12"
- "Wheels: OSX x64 - Python 3.13-3.14"
- "Wheels: OSX arm64 - Python 3.8-3.12"
- "Wheels: OSX arm64 - Python 3.13"
- "Wheels: OSX arm64 - Python 3.13-3.14"
- "Wheels: Linux arm64"
- "Wheels: Linux x64"
- "Wheels: Windows"
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This document provides information useful to developers working on confluent-kaf

### Prerequisites

- Python 3.7 or higher
- Python 3.8 or higher
- Git
- librdkafka (for Kafka functionality)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules"]
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.8"
dynamic = ["dependencies", "optional-dependencies"]

[[project.authors]]
Expand Down
2 changes: 1 addition & 1 deletion service.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: confluent-kafka-python
lang: python
lang_version: 3.7
lang_version: 3.8
git:
enable: true
github:
Expand Down
2 changes: 1 addition & 1 deletion tools/cibuildwheel-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ case "$(uname -s)" in
esac

if ! which cibuildwheel 2>/dev/null ; then
pip install cibuildwheel==0.4.1
pip install -r tools/requirements-manylinux.txt
fi

cibuildwheel $_CIBW_ARGS --output-dir "$OUT_DIR"
Expand Down
2 changes: 1 addition & 1 deletion tools/mingw-w64/semaphore_commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export MAKE=mingw32-make # so that Autotools can find it

cmd /c mklink /D C:\Python38\python3.exe C:\Python38\python.exe

python -m pip install cibuildwheel==2.21.3
python -m pip install cibuildwheel==3.2.1
2 changes: 1 addition & 1 deletion tools/mingw-w64/setup-msys2.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Install (if necessary) and set up msys2.


$url="https://github.com/msys2/msys2-installer/releases/download/2022-10-28/msys2-base-x86_64-20221028.sfx.exe"
$url="https://github.com/msys2/msys2-installer/releases/download/2025-08-30/msys2-base-x86_64-20250830.sfx.exe"
$sha256="e365b79b4b30b6f4baf34bd93f3d2a41c0a92801c7a96d79cddbfca1090a0554"


Expand Down
2 changes: 1 addition & 1 deletion tools/requirements-manylinux.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cibuildwheel
cibuildwheel==3.2.1
wheel
2 changes: 1 addition & 1 deletion tools/wheels/build-wheels.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set WHEELHOUSE=%4
if [%WHEELHOUSE%]==[] goto usage
echo on

set CIBW_BUILD=cp37-%BW_ARCH% cp38-%BW_ARCH% cp39-%BW_ARCH% cp310-%BW_ARCH% cp311-%BW_ARCH% cp312-%BW_ARCH% cp313-%BW_ARCH%
set CIBW_BUILD=cp38-%BW_ARCH% cp39-%BW_ARCH% cp310-%BW_ARCH% cp311-%BW_ARCH% cp312-%BW_ARCH% cp313-%BW_ARCH% cp314-%BW_ARCH%
set CIBW_BEFORE_BUILD=python -m pip install delvewheel==1.1.4
set CIBW_TEST_REQUIRES=pytest
set CIBW_TEST_COMMAND=pytest {project}\tests\test_error.py
Expand Down
2 changes: 1 addition & 1 deletion tools/wheels/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export CIBW_MANYLINUX_AARCH64_IMAGE="manylinux_2_28"

librdkafka_version=$1
wheeldir=$2
cibuildwheel_version=${3:-"2.21.3"}
cibuildwheel_version=${3:-"3.2.1"}

if [[ -z $wheeldir ]]; then
echo "Usage: $0 <librdkafka-nuget-version> <wheeldir>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
#
# Get python versions required for cibuildwheel from their config and
# install them. This implementation is based on cibuildwheel 2.12.0
# install them. This implementation is based on cibuildwheel 3.2.1
# version. Might need tweak if something changes in cibuildwheel.
#
# This was added as there is a permission issue when cibuildwheel
Expand Down
4 changes: 2 additions & 2 deletions tools/windows-build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set
rem Download and install librdkafka from NuGet.
call tools\windows-install-librdkafka.bat %LIBRDKAFKA_NUGET_VERSION% dest || exit /b 1

pip install -r requirements\requirements-tests-install.txt
pip install cibuildwheel==0.12.0 || exit /b 1
pip install -r requirements\requirements-tests-install.txt || exit /b 1
pip install cibuildwheel==3.2.1 || exit /b 1

rem Build wheels (without tests)
cibuildwheel --platform windows --output-dir wheelhouse || exit /b 1
Expand Down