[tor-commits] [stem/master] Dropping '-dev' suffix for stem version on the site
atagar at torproject.org
atagar at torproject.org
Tue Apr 16 16:04:17 UTC 2013
commit 1ad1f71be638fa21b8268d2f9cebec2c82ff17dc
Author: Damian Johnson <atagar at torproject.org>
Date: Tue Apr 16 09:02:27 2013 -0700
Dropping '-dev' suffix for stem version on the site
Like arm we're appending a '-dev' suffix for our git repository (to
differentiate it from releases). However, for our site we just want the version
itself.
---
docs/conf.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index 5900035..074fd89 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -45,6 +45,11 @@ master_doc = 'index'
from stem import __version__, __author__, __contact__
+# Ignore the '-dev' version suffix.
+
+if __version__.endswith('-dev'):
+ __version__ = __version__[:-4]
+
# General information about the project.
project = u'Stem'
copyright = u'2012, %s' % __author__
More information about the tor-commits
mailing list