Skip to content

Commit 2a12fed

Browse files
committed
Merge pull request #321 from sontek/switch_to_rst
Switch to rst and use in setup.py
2 parents b74e8dd + 96bc453 commit 2a12fed

File tree

3 files changed

+63
-48
lines changed

3 files changed

+63
-48
lines changed

README.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

README.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Kafka Python client
2+
------------------------
3+
.. image:: https://api.travis-ci.org/mumrah/kafka-python.png?branch=master
4+
:target: https://travis-ci.org/mumrah/kafka-python
5+
:alt: Build Status
6+
7+
.. image:: https://coveralls.io/repos/mumrah/kafka-python/badge.svg?branch=master
8+
:target: https://coveralls.io/r/mumrah/kafka-python?branch=master
9+
:alt: Coverage Status
10+
11+
.. image:: https://readthedocs.org/projects/kafka-python/badge/?version=latest
12+
:target: http://kafka-python.readthedocs.org/en/latest/
13+
:alt: Full documentation available on ReadTheDocs
14+
15+
`Full documentation available on ReadTheDocs`_
16+
17+
This module provides low-level protocol support for Apache Kafka as well as
18+
high-level consumer and producer classes. Request batching is supported by the
19+
protocol as well as broker-aware request routing. Gzip and Snappy compression
20+
is also supported for message sets.
21+
22+
http://kafka.apache.org/
23+
24+
On Freenode IRC at #kafka-python, as well as #apache-kafka
25+
26+
For general discussion of kafka-client design and implementation (not python specific),
27+
see https://groups.google.com/forum/#!forum/kafka-clients
28+
29+
License
30+
----------
31+
Copyright 2015, David Arthur under Apache License, v2.0. See `LICENSE`
32+
33+
Status
34+
----------
35+
The current stable version of this package is `0.9.3`_ and is compatible with:
36+
37+
Kafka broker versions
38+
39+
- 0.8.2.0 [offset management currently ZK only -- does not support ConsumerCoordinator offset management APIs]
40+
- 0.8.1.1
41+
- 0.8.1
42+
- 0.8.0
43+
44+
Python versions
45+
46+
- 2.6 (tested on 2.6.9)
47+
- 2.7 (tested on 2.7.9)
48+
- 3.3 (tested on 3.3.5)
49+
- 3.4 (tested on 3.4.2)
50+
- pypy (tested on pypy 2.4.0 / python 2.7.8)
51+
52+
.. _Full documentation available on ReadTheDocs: http://kafka-python.readthedocs.org/en/latest/
53+
.. _0.9.3: https://github.com/mumrah/kafka-python/releases/tag/v0.9.3

setup.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
2-
2+
import os
33
from setuptools import setup, Command
44

55
with open('VERSION', 'r') as v:
@@ -26,6 +26,10 @@ def run(cls):
2626
if sys.version_info < (2, 7):
2727
test_require.append('unittest2')
2828

29+
here = os.path.abspath(os.path.dirname(__file__))
30+
31+
with open(os.path.join(here, 'README.rst')) as f:
32+
README = f.read()
2933

3034
setup(
3135
name="kafka-python",
@@ -46,22 +50,20 @@ def run(cls):
4650
url="https://github.com/mumrah/kafka-python",
4751
license="Apache License 2.0",
4852
description="Pure Python client for Apache Kafka",
49-
long_description="""
50-
This module provides low-level protocol support for Apache Kafka as well as
51-
high-level consumer and producer classes. Request batching is supported by the
52-
protocol as well as broker-aware request routing. Gzip and Snappy compression
53-
is also supported for message sets.
54-
""",
53+
long_description=README,
5554
keywords="apache kafka",
5655
install_requires=['six'],
57-
classifiers = [
56+
classifiers=[
5857
"Development Status :: 4 - Beta",
5958
"Intended Audience :: Developers",
6059
"License :: OSI Approved :: Apache Software License",
6160
"Programming Language :: Python",
6261
"Programming Language :: Python :: 2",
6362
"Programming Language :: Python :: 2.6",
6463
"Programming Language :: Python :: 2.7",
64+
"Programming Language :: Python :: 3",
65+
"Programming Language :: Python :: 3.3",
66+
"Programming Language :: Python :: 3.4",
6567
"Programming Language :: Python :: Implementation :: PyPy",
6668
"Topic :: Software Development :: Libraries :: Python Modules",
6769
]

0 commit comments

Comments
 (0)