Skip to content

Commit 5aa6439

Browse files
authored
Merge pull request confluentinc#918 from confluentinc/v1.5.0rc
v1.5.0rc
2 parents 74163a8 + fed56e3 commit 5aa6439

File tree

13 files changed

+272
-88
lines changed

13 files changed

+272
-88
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
environment:
22
global:
3-
LIBRDKAFKA_NUGET_VERSION: 1.4.2
3+
LIBRDKAFKA_NUGET_VERSION: 1.5.0
44
CIBW_SKIP: cp33-* cp34-*
55
CIBW_TEST_REQUIRES: pytest pytest-timeout requests trivup
66
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
env:
22
global:
3-
- LIBRDKAFKA_VERSION=v1.4.2
3+
- LIBRDKAFKA_VERSION=v1.5.0
44
jobs:
55
include:
66
# Source package verification with Python 2.7
@@ -45,7 +45,7 @@ jobs:
4545
# Install cibuildwheel if this is a tagged PR
4646
before_install:
4747
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then tools/prepare-osx.sh ${INTERPRETER_VERSION} /tmp/venv && source /tmp/venv/bin/activate; fi
48-
- if [[ -n $TRAVIS_TAG && -n $CIBW_BEFORE_BUILD ]]; then pip install -r tools/requirements-manylinux.txt --force-reinstall; fi
48+
- if [[ -n $TRAVIS_TAG && -n $CIBW_BEFORE_BUILD ]]; then pip install -U -r tools/requirements-manylinux.txt --force-reinstall ; fi
4949

5050
# Install interceptors
5151
# Install librdkafka if not CIBW_BEFORE_BUILD
@@ -69,8 +69,7 @@ after_script:
6969
- ldd staging/libs/* || otool -L staging/libs/* || true
7070
- if [[ -z $CIBW_BEFORE_BUILD && $TRAVIS_OS_NAME == "osx" ]]; then DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:staging/libs py.test --timeout=60 --ignore=tmp-build --import-mode append; fi
7171
- if [[ -z $CIBW_BEFORE_BUILD && $TRAVIS_OS_NAME == "linux" ]]; then LD_LIBRARY_PATH=$LD_LIBRARY_PATH:staging/libs py.test --timeout=60 --ignore=tmp-build --import-mode append; fi
72-
- if [[ -n $TRAVIS_TAG && $TRAVIS_OS_NAME == linux && -n $CIBW_BEFORE_BUILD ]];then tools/test-manylinux.sh; fi
73-
- if [[ -n $TRAVIS_TAG && $TRAVIS_OS_NAME == osx && -n $CIBW_BEFORE_BUILD ]]; then tools/test-osx.sh; fi
72+
- if [[ -n $TRAVIS_TAG && $TRAVIS_OS_NAME == osx && -n $CIBW_BEFORE_BUILD ]]; then tools/test-wheel.sh wheelhouse; fi
7473
- if [[ $MK_DOCS == y ]]; then make docs; fi
7574

7675
deploy:

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Confluent's Python client for Apache Kafka
2+
3+
## v1.5.0
4+
5+
v1.5.0 is a maintenance release with the following fixes and enhancements:
6+
7+
- Bundles librdkafka v1.5.0 - see release notes for all enhancements and fixes.
8+
- Documentation fixes
9+
- [Dockerfile examples](examples/docker)
10+
- [List offsets example](examples/list_offsets.py)
11+
12+
confluent-kafka-python is based on librdkafka v1.5.0, see the
13+
[librdkafka release notes](https://github.com/edenhill/librdkafka/releases/tag/v1.5.0)
14+
for a complete list of changes, enhancements, fixes and upgrade considerations.
15+

confluent_kafka/avro/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fastavro>=0.23.0
22
requests
3-
avro==1.9.2;python_version<='3.0'
4-
avro-python3==1.9.2.1;python_version>='3.0'
3+
avro==1.10.0;python_version<='3.0'
4+
avro-python3==1.10.0;python_version>='3.0'

confluent_kafka/src/confluent_kafka.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
* 0xMMmmRRPP
4242
* MM=major, mm=minor, RR=revision, PP=patchlevel (not used)
4343
*/
44-
#define CFL_VERSION 0x01040200
45-
#define CFL_VERSION_STR "1.4.2"
44+
#define CFL_VERSION 0x01050000
45+
#define CFL_VERSION_STR "1.5.0"
4646

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

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
# built documents.
5858
#
5959
# The short X.Y version.
60-
version = '1.4.2'
60+
version = '1.5.0'
6161
# The full version, including alpha/beta/rc tags.
62-
release = '1.4.2'
62+
release = '1.5.0'
6363

6464
# The language for content autogenerated by Sphinx. Refer to documentation
6565
# for a list of supported languages.

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.4.2
33+
ENV LIBRDKAFKA_VERSION v1.5.0
3434
ENV KAFKACAT_VERSION master
3535

3636

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
SCHEMA_REGISTRY_REQUIRES = ['requests']
2727

2828
AVRO_REQUIRES = ['fastavro>=0.23.0',
29-
'avro==1.9.2;python_version<"3.0"',
30-
'avro-python3==1.9.2.1;python_version>"3.0"'
29+
'avro==1.10.0;python_version<"3.0"',
30+
'avro-python3==1.10.0;python_version>"3.0"'
3131
] + SCHEMA_REGISTRY_REQUIRES
3232

3333
JSON_REQUIRES = ['jsonschema'] + SCHEMA_REGISTRY_REQUIRES
@@ -63,7 +63,7 @@ def get_install_requirements(path):
6363
setup(name='confluent-kafka',
6464
# Make sure to bump CFL_VERSION* in confluent_kafka/src/confluent_kafka.h
6565
# and version and release in docs/conf.py.
66-
version='1.4.2',
66+
version='1.5.0',
6767
description='Confluent\'s Python client for Apache Kafka',
6868
author='Confluent Inc',
6969
author_email='support@confluent.io',

tools/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,13 @@ This example only builds for Python 2.7 x64:
3232
$ CIBW_SKIP="cp3* cp*i686*" tools/cibuildwheel-build.sh wheelhouse
3333

3434
Packages will now be available in wheelhouse/
35+
36+
37+
38+
## How to test wheels
39+
40+
After wheels have been downloaded with `download-s3.py`, perform smoketests
41+
by running `tools/test-wheels.sh <download-dir>`, e.g.,
42+
`tools/test-wheels.sh tools/dl-v1.5.0rc1`.
43+
This script preferably be run on OSX (with Docker installed) so that
44+
both OSX and Linux wheels are tested.

tools/RELEASE.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ previous version, e.g.: `git grep 0.11`
7070
The version should be set to the final release version, even when doing
7171
RCs, so only needs to be set once for each release.
7272

73-
* `confluent_kafka/src/confluent_kafka.c` - in the `version()` function,
74-
change both the string and the hex-representation.
73+
* `confluent_kafka/src/confluent_kafka.h` - update the `CFL_VERSION`
74+
`CFL_VERSION_STR`, change both the string and the hex-representation.
7575
* `docs/conf.py` - change `release` and `version` variables.
7676
* `setup.py` - change `version` variable.
7777

@@ -107,13 +107,13 @@ the version.
107107
Perform a dry-run push first to make sure the correct branch and only our tag
108108
is pushed.
109109

110-
$ git push --dry-run --tags origin master
110+
$ git push --dry-run --tags origin v0.11.4rc # tags and branch
111111

112112
Remove `--dry-run` when you're happy with the results.
113113

114114
An alternative is to push branch and tags separately:
115115

116-
$ git push --dry-run origin master
116+
$ git push --dry-run origin v0.11.4rc # the branch
117117
$ git push --dry-run --tags origin v0.11.4rc1
118118

119119

@@ -136,25 +136,10 @@ artifacts from S3 using:
136136

137137
The artifacts will be downloaded to `dl-<tag>/`.
138138

139-
140139
## 8. Verify packages
141140

142-
Create a new virtualenv:
143-
144-
$ rm -rf mytestenv2
145-
$ virtualenv mytestenv2
146-
$ source mytestenv2/bin/activate
147-
148-
Install the relevant package for your platform:
141+
$ tools/test-wheels.sh tools/dl-v0.11.4rc1
149142

150-
$ pip install --no-cache-dir --find-links dl-v0.11.4rc1/ confluent-kafka
151-
152-
Verify that the package works, should print the expected Python client
153-
and librdkafka versions:
154-
155-
$ python -c 'import confluent_kafka as ck ; print "py: {} c: {}" \
156-
.format(ck.version(), ck.libversion())'
157-
py: ('0.11.4', 721920) c: ('0.11.4-RC1', 722121)
158143

159144
## 10. Open a release PR
160145

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