diff options
Diffstat (limited to 'notification/__init__.py')
-rw-r--r-- | notification/__init__.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/notification/__init__.py b/notification/__init__.py new file mode 100644 index 00000000..ced9e9a1 --- /dev/null +++ b/notification/__init__.py @@ -0,0 +1,16 @@ +VERSION = (0, 2, 0, "f") # following PEP 386 +DEV_N = None + + +def get_version(): + version = "%s.%s" % (VERSION[0], VERSION[1]) + if VERSION[2]: + version = "%s.%s" % (version, VERSION[2]) + if VERSION[3] != "f": + version = "%s%s%s" % (version, VERSION[3], VERSION[4]) + if DEV_N: + version = "%s.dev%s" % (version, DEV_N) + return version + + +__version__ = get_version() |