diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-21 16:59:43 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-21 16:59:43 +0100 |
commit | fd7c894a881eca4acdedcf45664b27b8e9b30a49 (patch) | |
tree | 52f71765a819ac510b5bc5de387f10d761ea912d | |
parent | 85f0c905c98b8411ed1b5da269c1c7aa04d6dab9 (diff) | |
download | distix-fd7c894a881eca4acdedcf45664b27b8e9b30a49.tar.gz |
Use one location for version info
-rwxr-xr-x | distix | 2 | ||||
-rw-r--r-- | distixlib/__init__.py | 1 | ||||
-rw-r--r-- | setup.py | 6 |
3 files changed, 3 insertions, 6 deletions
@@ -19,4 +19,4 @@ import distixlib -distixlib.Distix().run() +distixlib.Distix(version=distixlib.version_string).run() diff --git a/distixlib/__init__.py b/distixlib/__init__.py index d346dda..7b03e4c 100644 --- a/distixlib/__init__.py +++ b/distixlib/__init__.py @@ -17,6 +17,7 @@ __version__ = (0, 1) +version_string = '.'.join(str(x) for x in __version__) from structurederror import StructuredError @@ -27,10 +27,6 @@ import cliapp import distixlib -def distix_version(): - return '.'.join(str(x) for x in distixlib.__version__) - - class Check(Command): user_options = [ @@ -66,7 +62,7 @@ class Check(Command): setup(name='distix', - version=distix_version(), + version=distixlib.version_string, description='Distributed ticketing system', author='Lars Wirzenius', author_email='liw@liw.fi', |