From aee5822e5bc102d447b5f3646a0838d162004c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 5 Sep 2014 10:04:12 +0000 Subject: [PATCH] [docs] get current version from pkg_resources --- docs/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index a3bcc35..ea4fabf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,7 +11,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import sys, os, pkg_resources # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -48,9 +48,9 @@ copyright = u'2011, MaxM' # built documents. # # The short X.Y version. -version = '3.0' +version = pkg_resources.get_distribution('icalendar').version # The full version, including alpha/beta/rc tags. -release = '3.0dev' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.