diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-26 16:35:46 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-26 16:35:46 +0100 |
commit | 88398c12a4715ea93fa982ab193e09262ef12567 (patch) | |
tree | 98ea2b215a2f15031155237fd7ebbab4a56ed89f | |
parent | f07b1bd2aad572d33cade10507c2937cb29815da (diff) | |
download | distix-88398c12a4715ea93fa982ab193e09262ef12567.tar.gz |
Move distixlib version to a submodule
This can then be used without importing the whole distixlib.
We do that in setup.py now.
-rw-r--r-- | distixlib/__init__.py | 4 | ||||
-rw-r--r-- | distixlib/version.py | 9 | ||||
-rw-r--r-- | setup.py | 4 | ||||
-rw-r--r-- | without-tests | 1 |
4 files changed, 13 insertions, 5 deletions
diff --git a/distixlib/__init__.py b/distixlib/__init__.py index a500bff..90529f3 100644 --- a/distixlib/__init__.py +++ b/distixlib/__init__.py @@ -16,9 +16,7 @@ # =*= License: GPL-3+ =*= -__version__ = (0, 1) -version_string = '.'.join(str(x) for x in __version__) - +from version import __version__, version_string from structurederror import StructuredError from app import Distix diff --git a/distixlib/version.py b/distixlib/version.py new file mode 100644 index 0000000..10c8c7f --- /dev/null +++ b/distixlib/version.py @@ -0,0 +1,9 @@ +# This file has the version number for distix. +# This file has no copyright. +# I do not claim a copyright on version numbers. +# There is a limit to how silly I can be. +# Take that, $BIGCORP with copyright on empty shell file to implement +# /bin/true. + +__version__ = (0, 1) +version_string = '.'.join(str(x) for x in __version__) @@ -24,7 +24,7 @@ import os import cliapp -import distixlib +import distixlib.version class Check(Command): @@ -64,7 +64,7 @@ class Check(Command): setup(name='distix', - version=distixlib.version_string, + version=distixlib.version.version_string, description='Distributed ticketing system', author='Lars Wirzenius', author_email='liw@liw.fi', diff --git a/without-tests b/without-tests index 09d0055..7311db7 100644 --- a/without-tests +++ b/without-tests @@ -11,3 +11,4 @@ distixlib/plugins/set_plugin.py distixlib/plugins/show_plugin.py distixlib/constants.py distixlib/git.py +distixlib/version.py |