[docs] get current version from pkg_resources

pull/147/head
Thomas Weißschuh 2014-09-05 10:04:12 +00:00
rodzic 1e0feb5377
commit aee5822e5b
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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.