Skip to content

Commit 084d70c

Browse files
committed
Added Python 3.12 wheels
1 parent 6dd1e57 commit 084d70c

File tree

8 files changed

+18
-13
lines changed

8 files changed

+18
-13
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# built documents.
3636
#
3737
# The short X.Y version.
38-
version = '2.2.0'
38+
version = '2.3.0.dev1'
3939
# The full version, including alpha/beta/rc tags.
4040
release = version
4141
######################################################################

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_install_requirements(path):
7575
setup(name='confluent-kafka',
7676
# Make sure to bump CFL_VERSION* in confluent_kafka/src/confluent_kafka.h
7777
# and version in docs/conf.py.
78-
version='2.2.0',
78+
version='2.3.0.dev1',
7979
description='Confluent\'s Python client for Apache Kafka',
8080
author='Confluent Inc',
8181
author_email='support@confluent.io',

src/confluent_kafka/src/confluent_kafka.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
* 0xMMmmRRPP
4343
* MM=major, mm=minor, RR=revision, PP=patchlevel (not used)
4444
*/
45-
#define CFL_VERSION 0x02020000
46-
#define CFL_VERSION_STR "2.2.0"
45+
#define CFL_VERSION 0x02030000
46+
#define CFL_VERSION_STR "2.3.0.dev1"
4747

4848
/**
4949
* Minimum required librdkafka version. This is checked both during

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: 7 additions & 6 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>"
@@ -89,12 +89,13 @@ 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
93-
"${PYBIN}/python" -c 'import confluent_kafka; print(confluent_kafka.libversion())'
94-
"${PYBIN}/pip" install -r /io/tests/requirements.txt
95-
"${PYBIN}/pytest" /io/tests/test_Producer.py
92+
"${PYBIN}pip" -V
93+
"${PYBIN}pip" install --no-index -f /io/wheelhouse confluent_kafka
94+
"${PYBIN}python" -c 'import confluent_kafka; print(confluent_kafka.libversion())'
95+
"${PYBIN}pip" install -r /io/tests/requirements.txt
96+
"${PYBIN}pytest" /io/tests/test_Producer.py
9697
echo "## Uninstalling $PYBIN"
97-
"${PYBIN}/pip" uninstall -y confluent_kafka
98+
"${PYBIN}pip" uninstall -y confluent_kafka
9899
break
99100
fi
100101
done

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)