Commits

Gokmen Gorgen  committed 4bc53bf

define __version__.

  • Participants
  • Parent commits e71a529

Comments (0)

Files changed (1)

File djangominimizer/__init__.py

+__version_info__ = {
+    'major': 0,
+    'minor': 1,
+    'micro': 5,
+    'releaselevel': 'alpha'
+}
+
+
+def get_version():
+    """ Returns the human readable version number. """
+    vers = ["%(major)i.%(minor)i" % __version_info__, ]
+
+    if __version_info__['micro']:
+        vers.append(".%(micro)i" % __version_info__)
+
+    if __version_info__['releaselevel'] != 'final':
+        vers.append('%(releaselevel)s' % __version_info__)
+
+    return ''.join(vers)
+
+__version__ = get_version()