summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-03-29 16:35:39 +0200
committerJulian Andres Klode <jak@debian.org>2009-03-29 16:35:39 +0200
commit10858f98f759a2407ac596582687581a2ed33d34 (patch)
tree52f72f772ee855bbc34c9b2ab72c0365f3754214 /doc
parentcb5d0d7f1f3f0730a8ed2fbc982311b6fe3aa336 (diff)
downloadpython-apt-10858f98f759a2407ac596582687581a2ed33d34.tar.gz
Build-Depend on python-debian, use it to get version number from changelog
Diffstat (limited to 'doc')
-rw-r--r--doc/source/conf.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 3b0ebed7..17fe6a23 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -56,10 +56,13 @@ copyright = u'2009, Julian Andres Klode <jak@debian.org>'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
+from debian_bundle.changelog import Changelog
+
+changes = Changelog(open('../../debian/changelog'))
# The short X.Y version.
-version = '0.7'
+version = '.'.join(changes.full_version.split('.')[:2])
# The full version, including alpha/beta/rc tags.
-release = '0.7.9~exp3'
+release = changes.full_version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.