Skip to content

Commit afea37a

Browse files
committed
librdkafka version v1.3.0
1 parent fe85968 commit afea37a

File tree

6 files changed

+22
-24
lines changed

6 files changed

+22
-24
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.3.0-RC3
3+
LIBRDKAFKA_NUGET_VERSION: 1.3.0
44
CIBW_SKIP: cp33-* cp34-*
55
CIBW_TEST_REQUIRES: pytest requests avro
66
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
env:
22
global:
3-
- LIBRDKAFKA_VERSION=v1.3.0-RC3
3+
- LIBRDKAFKA_VERSION=v1.3.0
44
matrix:
55
include:
66
# Source package verification with Python 2.7

confluent_kafka/__init__.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
Producer,
77
TopicPartition,
88
libversion,
9-
version,
109
TIMESTAMP_NOT_AVAILABLE,
1110
TIMESTAMP_CREATE_TIME,
1211
TIMESTAMP_LOG_APPEND_TIME,
@@ -15,7 +14,18 @@
1514
OFFSET_STORED,
1615
OFFSET_INVALID)
1716

18-
__version__ = version()[0]
17+
__version__ = '1.3.0'
18+
19+
20+
def version():
21+
"""
22+
Version hex representation
23+
0xMMmmRRPP
24+
MM=major, mm=minor, RR=revision, PP=patchlevel (not used)
25+
"""
26+
int_ver = map(int, __version__.split('.'))
27+
return (__version__,
28+
"{0:#04x}{1:02x}{2:02x}00".format(*int_ver))
1929

2030

2131
class ThrottleEvent (object):

confluent_kafka/src/confluent_kafka.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,14 +2187,6 @@ static PyObject *libversion (PyObject *self, PyObject *args) {
21872187
rd_kafka_version());
21882188
}
21892189

2190-
/*
2191-
* Version hex representation
2192-
* 0xMMmmRRPP
2193-
* MM=major, mm=minor, RR=revision, PP=patchlevel (not used)
2194-
*/
2195-
static PyObject *version (PyObject *self, PyObject *args) {
2196-
return Py_BuildValue("si", "1.3.0", 0x01030000);
2197-
}
21982190

21992191
static PyMethodDef cimpl_methods[] = {
22002192
{"libversion", libversion, METH_NOARGS,
@@ -2204,13 +2196,6 @@ static PyMethodDef cimpl_methods[] = {
22042196
" :rtype: tuple(str,int)\n"
22052197
"\n"
22062198
},
2207-
{"version", version, METH_NOARGS,
2208-
" Retrieve module version string and integer\n"
2209-
"\n"
2210-
" :returns: (version_string, version_int) tuple\n"
2211-
" :rtype: tuple(str,int)\n"
2212-
"\n"
2213-
},
22142199
{ NULL }
22152200
};
22162201

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import sys
1616
import os
1717
from glob import glob
18+
from confluent_kafka import __version__
1819

1920
# If extensions (or modules to document with autodoc) are in another directory,
2021
# add these directories to sys.path here. If the directory is relative to the
@@ -55,9 +56,9 @@
5556
# built documents.
5657
#
5758
# The short X.Y version.
58-
version = '1.3.0'
59+
version = __version__
5960
# The full version, including alpha/beta/rc tags.
60-
release = '1.3.0'
61+
release = __version__
6162

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

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/usr/bin/env python
22

3-
import os
4-
from setuptools import setup, find_packages
53
from distutils.core import Extension
64
import platform
5+
import os
6+
from setuptools import setup, find_packages
7+
8+
from confluent_kafka import __version__
79

810
INSTALL_REQUIRES = [
911
'futures;python_version<"3.2"',
@@ -52,7 +54,7 @@ def get_install_requirements(path):
5254

5355

5456
setup(name='confluent-kafka',
55-
version='1.3.0',
57+
version=__version__,
5658
description='Confluent\'s Python client for Apache Kafka',
5759
author='Confluent Inc',
5860
author_email='support@confluent.io',

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