Commits

Lukasz Balcerzak committed 16d49e9

Added optional extra text for version numbering

Comments (0)

Files changed (1)

richtemplates/__init__.py

 looking and elegant.
 """
 
-__version__ = '0.3.9'
+VERSION = (0, 3, 9, 'dev')
+
+__version__ = '.'.join((str(each) for each in VERSION[:4]))
 
 def get_version():
-    return __version__
+    """
+    Returns shorter version (digit parts only) as string.
+    """
+    return '.'.join((str(each) for each in VERSION[:3]))