Commits

Owen Nelson  committed 79ca165

pulling trawler version strings for docs

  • Participants
  • Parent commits d89927b

Comments (0)

Files changed (2)

File docs/conf.py

 # built documents.
 #
 # The short X.Y version.
-version = trawler.__shortversion__
+version = trawler.__version__
 # The full version, including alpha/beta/rc tags.
-release = trawler.__version__
+release = trawler.__release__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

File src/trawler/__init__.py

 import os, subprocess
 
-__shortversion__ = '0.1'
-__version__ = '0.1a'
+__version__ = '0.1'
+__release__ = '0.1a'
+
 __dev__ = True
 
 def get_hg_rev():
                 '../../')], # FIXME
             stdout=subprocess.PIPE
             )
-        return pipe.stdout.read()
+        return '.hg-%s' % pipe.stdout.read()
     except:
-        return 'unknown'
+        return ''
 
 if __dev__:
-     __version__ += '.hg-' + get_hg_rev()
+     __release__ += get_hg_rev()