Skip to content

Commit e98fa65

Browse files
authored
Wheels generation python 3.11 (confluentinc#1467)
Script updates for creating wheel for python 3.11 Removed mac OS wheels generation from travis Fixed failing test cases for transaction API
1 parent d2abbf2 commit e98fa65

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@ jobs:
5151
env: BUILD_WHEELS=1
5252
script: tools/wheels/build-wheels.sh ${LIBRDKAFKA_VERSION#v} wheelhouse
5353

54-
- name: "Wheels: MacOSX x64"
55-
if: tag is present
56-
os: osx
57-
language: shell
58-
env: BUILD_WHEELS=1
59-
script: tools/wheels/build-wheels.sh ${LIBRDKAFKA_VERSION#v} wheelhouse
60-
6154
install:
6255
# Install interceptors
6356
- tools/install-interceptors.sh

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Confluent's Python client for Apache Kafka
22

33

4-
## v1.9.3
4+
## Next Version
55

66
- Added metadata to `TopicPartition` type and `commit()` (#1410).
77
- Added `consumer.memberid()` for getting member id assigned to
88
the consumer in a consumer group (#1154).
9+
- Added Python 3.11 wheels
910

1011

1112
## v1.9.2

tests/test_Producer.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ def test_transaction_api():
206206
# Any subsequent APIs will fail since init did not succeed.
207207
with pytest.raises(KafkaException) as ex:
208208
p.begin_transaction()
209-
assert ex.value.args[0].code() == KafkaError._STATE
210-
assert ex.value.args[0].retriable() is False
209+
assert ex.value.args[0].code() == KafkaError._CONFLICT
210+
assert ex.value.args[0].retriable() is True
211211
assert ex.value.args[0].fatal() is False
212212
assert ex.value.args[0].txn_requires_abort() is False
213213

@@ -218,22 +218,22 @@ def test_transaction_api():
218218
with pytest.raises(KafkaException) as ex:
219219
p.send_offsets_to_transaction([TopicPartition("topic", 0, 123)],
220220
group_metadata)
221-
assert ex.value.args[0].code() == KafkaError._STATE
222-
assert ex.value.args[0].retriable() is False
221+
assert ex.value.args[0].code() == KafkaError._CONFLICT
222+
assert ex.value.args[0].retriable() is True
223223
assert ex.value.args[0].fatal() is False
224224
assert ex.value.args[0].txn_requires_abort() is False
225225

226226
with pytest.raises(KafkaException) as ex:
227227
p.commit_transaction(0.5)
228-
assert ex.value.args[0].code() == KafkaError._STATE
229-
assert ex.value.args[0].retriable() is False
228+
assert ex.value.args[0].code() == KafkaError._CONFLICT
229+
assert ex.value.args[0].retriable() is True
230230
assert ex.value.args[0].fatal() is False
231231
assert ex.value.args[0].txn_requires_abort() is False
232232

233233
with pytest.raises(KafkaException) as ex:
234234
p.abort_transaction(0.5)
235-
assert ex.value.args[0].code() == KafkaError._STATE
236-
assert ex.value.args[0].retriable() is False
235+
assert ex.value.args[0].code() == KafkaError._CONFLICT
236+
assert ex.value.args[0].retriable() is True
237237
assert ex.value.args[0].fatal() is False
238238
assert ex.value.args[0].txn_requires_abort() is False
239239

tools/wheels/build-wheels.bat

Lines changed: 2 additions & 2 deletions
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%
16+
set CIBW_BUILD=cp36-%BW_ARCH% cp37-%BW_ARCH% cp38-%BW_ARCH% cp39-%BW_ARCH% cp310-%BW_ARCH% cp311-%BW_ARCH%
1717
set CIBW_BEFORE_BUILD=python -m pip install delvewheel==0.0.6
1818
set CIBW_TEST_REQUIRES=-r tests/requirements.txt
1919
set CIBW_TEST_COMMAND=pytest {project}\tests\test_Producer.py
@@ -25,7 +25,7 @@ set CIBW_REPAIR_WHEEL_COMMAND=python -m delvewheel repair --add-path %DLL_DIR% -
2525

2626
set PATH=%PATH%;c:\Program Files\Git\bin\
2727

28-
python -m pip install cibuildwheel==2.7.0 || goto :error
28+
python -m pip install cibuildwheel==2.11.2 || goto :error
2929

3030
python -m cibuildwheel --output-dir %WHEELHOUSE% --platform windows || goto :error
3131

tools/wheels/build-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ esac
5252

5353
$this_dir/install-librdkafka.sh $librdkafka_version dest
5454

55-
install_pkgs=cibuildwheel==2.8.1
55+
install_pkgs=cibuildwheel==2.11.2
5656

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

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