diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-05-05 11:09:26 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-05-05 11:09:26 +0200 |
| commit | 51c60cb3447247188bb8bf5c82b53e5199878b36 (patch) | |
| tree | 5f3d6ff39d06199a0423913284149fb6e59436d5 /doc/source/conf.py | |
| parent | b08e026fea9ed453d2cbaaa402fe1bd17c6242dd (diff) | |
| parent | 23d29169c30b2f05a0c2943832a7cf7288ff5802 (diff) | |
| download | python-apt-51c60cb3447247188bb8bf5c82b53e5199878b36.tar.gz | |
merge from the debian-unstable tree
Diffstat (limited to 'doc/source/conf.py')
| -rw-r--r-- | doc/source/conf.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 8f71e3e3..40154a6f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -23,9 +23,13 @@ import sys # absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) sys.path.insert(0, os.path.abspath('../..')) + +# Find the path to the built apt_pkg and apt_inst extensions if os.path.exists("../../build"): + version = '.'.join(str(x) for x in sys.version_info[:2]) for dirname in os.listdir('../../build'): - sys.path.insert(0, os.path.abspath('../../build/' + dirname)) + if version in dirname: + sys.path.insert(0, os.path.abspath('../../build/' + dirname)) # General configuration # --------------------- @@ -56,10 +60,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~exp2' +release = changes.full_version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |
