[tor-commits] [ooni-probe/master] Dynamically set the ooniprobe version in the docs (#496)

art at torproject.org art at torproject.org
Mon May 23 11:16:08 UTC 2016


commit cbb8f7c941d24ca43a81a3cf8e2cd87d2ec11216
Author: Arturo Filastò <arturo at filasto.net>
Date:   Sun May 8 16:54:46 2016 +0200

    Dynamically set the ooniprobe version in the docs (#496)
---
 docs/source/conf.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/docs/source/conf.py b/docs/source/conf.py
index 8bc48ad..8600641 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -20,6 +20,7 @@ import sys, os
 sys.path.insert(0,
             os.path.join(os.path.dirname(__file__), '..', '..'))
 
+from ooni import __version__ as ooniprobe_version
 
 # -- General configuration -----------------------------------------------------
 
@@ -45,16 +46,16 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'OONI: Open Observatory of Network Interference'
-copyright = u'2015, The Tor Project'
+copyright = u'2016, The Tor Project'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
 # The short X.Y version.
-version = '1.3.1'
+version = ooniprobe_version
 # The full version, including alpha/beta/rc tags.
-release = '1.3.1'
+release = ooniprobe_version
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.





More information about the tor-commits mailing list