Commits

Matthew Schinckel  committed c914aa4

Added version files.

  • Participants
  • Parent commits cc5868d

Comments (0)

Files changed (3)

+notifications/__dev__
+MANIFEST
+dist

File notifications/__init__.py

 except ImportError:
     pass
 
-__version_info__ = {
-    'major': 0,
-    'minor': 5,
-    'micro': 2,
-    'releaselevel': 'final',
-    'serial': 0
-}
-
-
-def get_version(release_level=True):
+def get_version():
     """
     Return the formatted version information
     """
-    vers = ["%(major)i.%(minor)i.%(micro)i" % __version_info__]
-    if release_level and __version_info__['releaselevel'] != 'final':
-        vers.append('%(releaselevel)s%(serial)i' % __version_info__)
-    return ''.join(vers)
-
+    import os
+    dirname = os.path.dirname(__file__)
+    
+    version = open(os.path.join(dirname, '__version__')).read().strip()
+    try:
+        dev = open(os.path.join(dirname, '__dev__')).read().strip('\n+')
+    except IOError:
+        pass
+    
+    return version + '.dev' + dev if dev else version
 
 __version__ = get_version()

File notifications/__version__

+0.6.0