Skip to content

Commit 5a58c3c

Browse files
committed
Moving version to version.py file
1 parent e1510b4 commit 5a58c3c

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

kazoo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.2.1'
1+
from .version import __version__

kazoo/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '2.2.1'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
with open(os.path.join(here, 'CHANGES.rst')) as f:
1212
CHANGES = f.read()
1313
version = ''
14-
with open(os.path.join(here, 'kazoo', '__init__.py')) as f:
14+
with open(os.path.join(here, 'kazoo', 'version.py')) as f:
1515
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
1616
f.read(), re.MULTILINE).group(1)
1717

0 commit comments

Comments
 (0)