[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Dropping '-dev' suffix for stem version on the site
commit 1ad1f71be638fa21b8268d2f9cebec2c82ff17dc
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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__
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits