Skip to content

Commit

Permalink
Read __version__ from the module
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Aug 29, 2013
1 parent 5802d62 commit 79639ac
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -38,4 +38,3 @@ nosetests.xml
.project
.pydevproject
*.sublime*
setup.py
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -4,7 +4,7 @@ BUILDIR=$(CURDIR)/debian/python-exconsole
RPMTOPDIR=$(CURDIR)/build
PROJECT=python-exconsole
DEBPROJECT=python-exconsole
VERSION=0.1.3
VERSION=`python -c "from exconsole import __version__; print __version__"`
PREFIX=/usr

all:
Expand Down Expand Up @@ -54,7 +54,6 @@ upload-tgz: tgz

tgz:
rm dist/*.tar.gz || true
cat setup.py.in | sed s/__VERSION__/$(VERSION)/g > setup.py
$(PYTHON) setup.py sdist


Expand Down
4 changes: 3 additions & 1 deletion exconsole/__init__.py
@@ -1 +1,3 @@
from exconsole.console import register, launch
from exconsole.console import register, launch

__version__ = '0.1.3'
4 changes: 3 additions & 1 deletion setup.py.in → setup.py 100755 → 100644
Expand Up @@ -3,9 +3,11 @@
from distutils.core import setup
from setuptools import find_packages

import exconsole

setup(
name='python-exconsole',
version='__VERSION__',
version=exconsole.__version__,
install_requires=[
],
description='Emergency/postmortem Python console',
Expand Down

0 comments on commit 79639ac

Please sign in to comment.