Skip to content
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

Adding python 3.12 wheels #1649

Merged
merged 3 commits into from
Oct 25, 2023
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

v2.3.0 is a feature release with the following features, fixes and enhancements:

* Add Python 3.12 wheels
* Add support for AdminAPI `DescribeCluster()` and `DescribeTopics()`. (@jainruchir, #1635)
* [KIP-430](https://cwiki.apache.org/confluence/display/KAFKA/KIP-430+-+Return+Authorized+Operations+in+Describe+Responses):
Return authorized operations in Describe Responses. (@jainruchir, #1635)
Expand Down
4 changes: 4 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
urllib3<2.0.0;python_version<="3.7"
urllib3
flake8
pytest==4.6.9;python_version<="3.0"
pytest>=6.0.0;python_version>="3.0"
pytest-timeout
requests-mock
trivup>=0.8.3
fastavro<1.8.0;python_version=="3.7"
emasab marked this conversation as resolved.
Show resolved Hide resolved
fastavro>=1.8.4;python_version>"3.7"
fastavro
avro>=1.11.1,<2
jsonschema
Expand Down
7 changes: 4 additions & 3 deletions tools/build-manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# docker run -t -v $(pwd):/io quay.io/pypa/manylinux2010_x86_64:latest /io/tools/build-manylinux.sh <librdkafka_tag>

LIBRDKAFKA_VERSION=$1
PYTHON_VERSIONS=("cp36" "cp37" "cp38" "cp39" "cp310" "cp311" )
PYTHON_VERSIONS=("cp36" "cp37" "cp38" "cp39" "cp310" "cp311" "cp312")

if [[ -z "$LIBRDKAFKA_VERSION" ]]; then
echo "Usage: $0 <librdkafka_tag>"
Expand Down Expand Up @@ -85,11 +85,12 @@ done

# Install packages and test
echo "# Installing wheels"
for PYBIN in /opt/python/cp*/bin/; do
for PYBIN in /opt/python/cp*/bin; do
for PYTHON_VERSION in "${PYTHON_VERSIONS[@]}"; do
if [[ $PYBIN == *"$PYTHON_VERSION"* ]]; then
echo "## Installing $PYBIN"
"${PYBIN}/pip" install confluent_kafka -f /io/wheelhouse
"${PYBIN}/pip" -V
"${PYBIN}/pip" install --no-index -f /io/wheelhouse confluent_kafka
"${PYBIN}/python" -c 'import confluent_kafka; print(confluent_kafka.libversion())'
"${PYBIN}/pip" install -r /io/tests/requirements.txt
"${PYBIN}/pytest" /io/tests/test_Producer.py
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.12.0
python -m pip install cibuildwheel==2.16.2
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=cp36-%BW_ARCH% cp37-%BW_ARCH% cp38-%BW_ARCH% cp39-%BW_ARCH% cp310-%BW_ARCH% cp311-%BW_ARCH%
set CIBW_BUILD=cp36-%BW_ARCH% cp37-%BW_ARCH% cp38-%BW_ARCH% cp39-%BW_ARCH% cp310-%BW_ARCH% cp311-%BW_ARCH% cp312-%BW_ARCH%
set CIBW_BEFORE_BUILD=python -m pip install delvewheel==1.1.4
set CIBW_TEST_REQUIRES=-r tests/requirements.txt
set CIBW_TEST_COMMAND=pytest {project}\tests\test_Producer.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_TEST_COMMAND="pytest {project}/tests/test_Producer.py"

librdkafka_version=$1
wheeldir=$2
cibuildwheel_version="2.12.0"
cibuildwheel_version="2.16.2"

if [[ -z $wheeldir ]]; then
echo "Usage: $0 <librdkafka-nuget-version> <wheeldir>"
Expand Down