Skip to content

Commit fa1aa03

Browse files
authored
Changes related to release (confluentinc#1504)
* Installing python before running cibuildwheel for macos * Upgraded cibuildwheel version 2.12.0 * Updated delvewheel versions to 1.1.14 * Added few Changelogs. Reordered Changelogs. Updated deprecation information.
1 parent 1db3054 commit fa1aa03

File tree

13 files changed

+119
-32
lines changed

13 files changed

+119
-32
lines changed

.semaphore/semaphore.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ agent:
66
global_job_config:
77
env_vars:
88
- name: LIBRDKAFKA_VERSION
9-
value: v2.0.0-RC3
9+
value: v2.0.2
1010
prologue:
1111
commands:
1212
- export HOME=$WORKSPACE

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
env:
22
global:
3-
- LIBRDKAFKA_VERSION=v2.0.0-RC3
4-
- LIBRDKAFKA_SRC_VERSION=master
3+
- LIBRDKAFKA_VERSION=v2.0.2
4+
- LIBRDKAFKA_SRC_VERSION=v2.0.2
55

66
jobs:
77
include:

CHANGELOG.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# Confluent's Python client for Apache Kafka
22

33

4-
## Next Version
4+
## v2.0.2
5+
6+
v2.0.2 is a feature release with the following features, fixes and enhancements:
57

6-
- Added metadata to `TopicPartition` type and `commit()` (#1410).
7-
- Added `consumer.memberid()` for getting member id assigned to
8-
the consumer in a consumer group (#1154).
9-
- Implemented `nb_bool` method for the Producer, so that the default (which uses len)
10-
will not be used. This avoids situations where producers with no enqueued items would
11-
evaluate to False (#1445).
128
- Added Python 3.11 wheels.
139
- [KIP-222](https://cwiki.apache.org/confluence/display/KAFKA/KIP-222+-+Add+Consumer+Group+operations+to+Admin+API)
1410
Add Consumer Group operations to Admin API.
@@ -22,12 +18,24 @@
2218
- `delete_consumer_groups` Admin operation. Supports multiple groups.
2319
- `list_consumer_group_offsets` Admin operation. Currently, only supports 1 group with multiple partitions. Supports require_stable option.
2420
- `alter_consumer_group_offsets` Admin operation. Currently, only supports 1 group with multiple offsets.
25-
- Added `normalize.schemas` configuration property to Schema Registry client
26-
27-
confluent-kafka-python is based on librdkafka v2.0.0, see the
28-
[librdkafka release notes](https://github.com/edenhill/librdkafka/releases/tag/v2.0.0)
21+
- Added `normalize.schemas` configuration property to Schema Registry client (@rayokota, #1406)
22+
- Added metadata to `TopicPartition` type and `commit()` (#1410).
23+
- Added `consumer.memberid()` for getting member id assigned to
24+
the consumer in a consumer group (#1154).
25+
- Implemented `nb_bool` method for the Producer, so that the default (which uses len)
26+
will not be used. This avoids situations where producers with no enqueued items would
27+
evaluate to False (@vladz-sternum, #1445).
28+
- Deprecated `AvroProducer` and `AvroConsumer`. Use `AvroSerializer` and `AvroDeserializer` instead.
29+
- Deprecated `list_groups`. Use `list_consumer_groups` and `describe_consumer_groups` instead.
30+
- Improved Consumer Example to show atleast once semantics.
31+
- Improved Serialization and Deserialization Examples.
32+
- Documentation Improvements.
33+
34+
confluent-kafka-python is based on librdkafka v2.0.2, see the
35+
[librdkafka release notes](https://github.com/edenhill/librdkafka/releases/tag/v2.0.2)
2936
for a complete list of changes, enhancements, fixes and upgrade considerations.
3037

38+
**Note: There were no v2.0.0 and v2.0.1 releases.**
3139

3240
## v1.9.2
3341

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
######################################################################
2828
# General information about the project.
2929
project = u'confluent-kafka'
30-
copyright = u'2016-2021, Confluent Inc.'
30+
copyright = u'2016-2023, Confluent Inc.'
3131

3232
# The version info for the project you're documenting, acts as replacement for
3333
# |version| and |release|, also used in various other places throughout the
3434
# built documents.
3535
#
3636
# The short X.Y version.
37-
version = '1.9.2'
37+
version = '2.0.2'
3838
# The full version, including alpha/beta/rc tags.
3939
release = version
4040
######################################################################

examples/docker/Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FROM alpine:3.12
3030

3131
COPY . /usr/src/confluent-kafka-python
3232

33-
ENV LIBRDKAFKA_VERSION v1.9.2
33+
ENV LIBRDKAFKA_VERSION v2.0.2
3434
ENV KAFKACAT_VERSION master
3535

3636

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='1.9.2',
78+
version='2.0.2',
7979
description='Confluent\'s Python client for Apache Kafka',
8080
author='Confluent Inc',
8181
author_email='support@confluent.io',

src/confluent_kafka/avro/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
class AvroProducer(Producer):
3535
"""
36-
.. deprecated:: 1.9.3
36+
.. deprecated:: 2.0.2
3737
3838
This class will be removed in a future version of the library.
3939
@@ -119,7 +119,7 @@ def produce(self, **kwargs):
119119

120120
class AvroConsumer(Consumer):
121121
"""
122-
.. deprecated:: 1.9.3
122+
.. deprecated:: 2.0.2
123123
124124
This class will be removed in a future version of the library.
125125

src/confluent_kafka/src/Metadata.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,9 @@ list_groups (Handle *self, PyObject *args, PyObject *kwargs) {
630630
}
631631

632632
const char list_groups_doc[] = PyDoc_STR(
633+
".. deprecated:: 2.0.2"
634+
" Use :func:`list_consumer_groups` and `describe_consumer_groups` instead."
635+
"\n"
633636
".. py:function:: list_groups([group=None], [timeout=-1])\n"
634637
"\n"
635638
" Request Group Metadata from cluster.\n"

src/confluent_kafka/src/confluent_kafka.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,28 @@
4242
* 0xMMmmRRPP
4343
* MM=major, mm=minor, RR=revision, PP=patchlevel (not used)
4444
*/
45-
#define CFL_VERSION 0x01090200
46-
#define CFL_VERSION_STR "1.9.2"
45+
#define CFL_VERSION 0x02000200
46+
#define CFL_VERSION_STR "2.0.2"
4747

4848
/**
4949
* Minimum required librdkafka version. This is checked both during
5050
* build-time (just below) and runtime (see confluent_kafka.c).
5151
* Make sure to keep the MIN_RD_KAFKA_VERSION, MIN_VER_ERRSTR and #error
5252
* defines and strings in sync.
5353
*/
54-
#define MIN_RD_KAFKA_VERSION 0x010900ff
54+
#define MIN_RD_KAFKA_VERSION 0x020002ff
5555

5656
#ifdef __APPLE__
57-
#define MIN_VER_ERRSTR "confluent-kafka-python requires librdkafka v1.9.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
57+
#define MIN_VER_ERRSTR "confluent-kafka-python requires librdkafka v2.0.2 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
5858
#else
59-
#define MIN_VER_ERRSTR "confluent-kafka-python requires librdkafka v1.9.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
59+
#define MIN_VER_ERRSTR "confluent-kafka-python requires librdkafka v2.0.2 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
6060
#endif
6161

6262
#if RD_KAFKA_VERSION < MIN_RD_KAFKA_VERSION
6363
#ifdef __APPLE__
64-
#error "confluent-kafka-python requires librdkafka v1.9.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
64+
#error "confluent-kafka-python requires librdkafka v2.0.2 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
6565
#else
66-
#error "confluent-kafka-python requires librdkafka v1.9.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
66+
#error "confluent-kafka-python requires librdkafka v2.0.2 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
6767
#endif
6868
#endif
6969

tools/RELEASE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ tag (e.g., v0.11.4-RC5).
116116

117117
Change to the latest librdkafka version in the following files:
118118

119+
* `.semaphore/semaphore.yml`
119120
* `.travis.yml`
120121
* `examples/docker/Dockerfile.alpine`
121122

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