Commits

Serge Émond committed d34c396

Updates to documentation

Comments (0)

Files changed (4)

 # serve to show the default.
 
 import sys, os
+from qslaunch import get_version
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # built documents.
 #
 # The short X.Y version.
-version = '0.2'
+version = get_version()
 # The full version, including alpha/beta/rc tags.
-release = '0.2'
+release = get_version(True)
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

qslaunch/__init__.py

 
 """
 
-VERSION = (0, 2, 0, 'final', 0)
+VERSION = (0, 3, 0, 'final', 0)
 
-def get_version():
+def get_version(full=False):
     """Return version number."""
     version = '%s.%s' % (VERSION[0], VERSION[1])
     if VERSION[2]:
         version = '%s.%s' % (version, VERSION[2])
     if VERSION[3:] == ('alpha', 0):
         version = '%s pre-alpha' % version
-    else:
-        if VERSION[3] != 'final':
-            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
-    from .utils.version import get_hg_revision
-    hg_rev = get_hg_revision()
-    if hg_rev != u'HG-unknown':
-        version = "%s %s" % (version, hg_rev)
+    elif VERSION[3] != 'final' or full:
+        version = '%s %s %s' % (version, VERSION[3], VERSION[4])
+    # from .utils.version import get_hg_revision
+    # hg_rev = get_hg_revision()
+    # if hg_rev != u'HG-unknown':
+    #     version = "%s %s" % (version, hg_rev)
     return version
 
 

qslaunch/helpers/__init__.py

 
 .. automodule:: qslaunch.helpers.iterm
 
+.. automodule:: qslaunch.helpers.mail
+
 .. automodule:: qslaunch.helpers.textmate
 
 ..

qslaunch/helpers/mail.py

 Execute helpers
 -----------------------------------------------------------------------------
 
-.. autofunction:: color
+.. autofunction:: color_selected_msgs
 
 Commands
 -----------------------------------------------------------------------------
 
-.. autofunction:: cmd_color
+.. autofunction:: cmd_color_selected_msgs
 
 
 ..