Skip to content

Commit 9bcb404

Browse files
authored
Added Python 3.12 wheels generation in CI (confluentinc#1649)
Added Python 3.12 wheels generation in CI
1 parent 43fd504 commit 9bcb404

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

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

7+
* Add Python 3.12 wheels
78
* Add support for AdminAPI `DescribeCluster()` and `DescribeTopics()`. (@jainruchir, #1635)
89
* [KIP-430](https://cwiki.apache.org/confluence/display/KAFKA/KIP-430+-+Return+Authorized+Operations+in+Describe+Responses):
910
Return authorized operations in Describe Responses. (@jainruchir, #1635)

tests/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
urllib3<2.0.0;python_version<="3.7"
2+
urllib3
13
flake8
24
pytest==4.6.9;python_version<="3.0"
35
pytest>=6.0.0;python_version>="3.0"
46
pytest-timeout
57
requests-mock
68
trivup>=0.8.3
9+
fastavro<1.8.0;python_version=="3.7"
10+
fastavro>=1.8.4;python_version>"3.7"
711
fastavro
812
avro>=1.11.1,<2
913
jsonschema

tools/build-manylinux.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# docker run -t -v $(pwd):/io quay.io/pypa/manylinux2010_x86_64:latest /io/tools/build-manylinux.sh <librdkafka_tag>
1616

1717
LIBRDKAFKA_VERSION=$1
18-
PYTHON_VERSIONS=("cp36" "cp37" "cp38" "cp39" "cp310" "cp311" )
18+
PYTHON_VERSIONS=("cp36" "cp37" "cp38" "cp39" "cp310" "cp311" "cp312")
1919

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

8686
# Install packages and test
8787
echo "# Installing wheels"
88-
for PYBIN in /opt/python/cp*/bin/; do
88+
for PYBIN in /opt/python/cp*/bin; do
8989
for PYTHON_VERSION in "${PYTHON_VERSIONS[@]}"; do
9090
if [[ $PYBIN == *"$PYTHON_VERSION"* ]]; then
9191
echo "## Installing $PYBIN"
92-
"${PYBIN}/pip" install confluent_kafka -f /io/wheelhouse
92+
"${PYBIN}/pip" -V
93+
"${PYBIN}/pip" install --no-index -f /io/wheelhouse confluent_kafka
9394
"${PYBIN}/python" -c 'import confluent_kafka; print(confluent_kafka.libversion())'
9495
"${PYBIN}/pip" install -r /io/tests/requirements.txt
9596
"${PYBIN}/pytest" /io/tests/test_Producer.py

tools/mingw-w64/semaphore_commands.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export MAKE=mingw32-make # so that Autotools can find it
88

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

11-
python -m pip install cibuildwheel==2.12.0
11+
python -m pip install cibuildwheel==2.16.2

tools/wheels/build-wheels.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set WHEELHOUSE=%4
1313
if [%WHEELHOUSE%]==[] goto usage
1414
echo on
1515

16-
set CIBW_BUILD=cp36-%BW_ARCH% cp37-%BW_ARCH% cp38-%BW_ARCH% cp39-%BW_ARCH% cp310-%BW_ARCH% cp311-%BW_ARCH%
16+
set CIBW_BUILD=cp36-%BW_ARCH% cp37-%BW_ARCH% cp38-%BW_ARCH% cp39-%BW_ARCH% cp310-%BW_ARCH% cp311-%BW_ARCH% cp312-%BW_ARCH%
1717
set CIBW_BEFORE_BUILD=python -m pip install delvewheel==1.1.4
1818
set CIBW_TEST_REQUIRES=-r tests/requirements.txt
1919
set CIBW_TEST_COMMAND=pytest {project}\tests\test_Producer.py

tools/wheels/build-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export CIBW_TEST_COMMAND="pytest {project}/tests/test_Producer.py"
1616

1717
librdkafka_version=$1
1818
wheeldir=$2
19-
cibuildwheel_version="2.12.0"
19+
cibuildwheel_version="2.16.2"
2020

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy