Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include VERSION
recursive-include kafka *.py
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

4 changes: 1 addition & 3 deletions kafka/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
__title__ = 'kafka'
# Use setuptools to get version from setup.py
import pkg_resources
__version__ = pkg_resources.require('kafka-python')[0].version
from .version import __version__
__author__ = 'David Arthur'
__license__ = 'Apache License 2.0'
__copyright__ = 'Copyright 2015, David Arthur under Apache License, v2.0'
Expand Down
1 change: 1 addition & 0 deletions kafka/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.9.4-dev'
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import os
from setuptools import setup, Command

with open('VERSION', 'r') as v:
__version__ = v.read().rstrip()

# Pull version from source without importing
# since we can't import something we haven't built yet :)
exec(open('kafka/version.py').read())

class Tox(Command):

Expand Down