diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 444: update docs to automatically pull the version

Message ID 20121112150212.20448.82580.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Andy Doan Nov. 12, 2012, 3:02 p.m. UTC
------------------------------------------------------------
revno: 444
committer: Andy Doan <andy.doan@linaro.org>
branch nick: lava-dispatcher
timestamp: Mon 2012-11-12 09:00:40 -0600
message:
  update docs to automatically pull the version
modified:
  doc/conf.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'doc/conf.py'
--- doc/conf.py	2012-04-23 05:51:22 +0000
+++ doc/conf.py	2012-11-12 15:00:40 +0000
@@ -58,10 +58,12 @@ 
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
-# The short X.Y version.
-version = '0.4'
+import versiontools
+import lava_dispatcher
+version = "%d.%d" % lava_dispatcher.__version__[0:2]
 # The full version, including alpha/beta/rc tags.
-release = '0.6'
+release = versiontools.format_version(lava_dispatcher.__version__)
+
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.