src/catedit/version.py
changeset 38 d1bc73ce855a
child 40 8c32ea41b391
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/catedit/version.py	Mon Jan 12 12:00:30 2015 +0100
@@ -0,0 +1,20 @@
+"""
+    version.py:
+    Module to get the current CatEdit version, the only place where we have to
+    increment version numbers
+"""
+
+__all__ = ["VERSION", "get_version", "CURRENT_VERSION"]
+
+VERSION = (0, 1, 2)
+
+def get_version():
+    """
+        Function to convert the tuple to a string
+    """
+    version = "%s.%s" % (VERSION[0], VERSION[1])
+    if version[2]:
+        version = "%s.%s" % (version, VERSION[2])
+    return version
+
+CURRENT_VERSION = get_version()