Merge pull request #387 from dpkp/no_runtime_version_check

Dont get __version__ from pkg_resources
This commit is contained in:
Dana Powers
2015-06-04 16:11:41 -07:00
5 changed files with 5 additions and 8 deletions

View File

@@ -1,2 +1 @@
include VERSION
recursive-include kafka *.py

View File

@@ -1 +0,0 @@
0.9.4-dev

View File

@@ -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'

1
kafka/version.py Normal file
View File

@@ -0,0 +1 @@
__version__ = '0.9.4-dev'

View File

@@ -2,9 +2,9 @@ import sys
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):