[Pkg-mpd-commits] [python-mpd] 15/19: Add patch to update the version number in the documentation

Simon McVittie smcv at debian.org
Sun May 22 18:17:09 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/experimental
in repository python-mpd.

commit 12bd6c80aa01456833ada4c153aeed29dd5449d1
Author: Simon McVittie <smcv at debian.org>
Date:   Sat Apr 30 16:38:08 2016 +0100

    Add patch to update the version number in the documentation
---
 debian/changelog                                   |  1 +
 ...e-current-version-number-in-the-documenta.patch | 35 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a4c3b48..b83089a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,7 @@ python-mpd (0.5.5-1) UNRELEASED; urgency=medium
   * Standards-Version: 3.9.8 (no changes required)
   * Vcs-Git, Vcs-Browser: canonicalize
   * Sort package lists (wrap-and-sort -abst)
+  * Add patch to update the version number in the documentation
 
  -- Simon McVittie <smcv at debian.org>  Sat, 30 Apr 2016 13:43:38 +0100
 
diff --git a/debian/patches/Automatically-use-current-version-number-in-the-documenta.patch b/debian/patches/Automatically-use-current-version-number-in-the-documenta.patch
new file mode 100644
index 0000000..f9ad1ea
--- /dev/null
+++ b/debian/patches/Automatically-use-current-version-number-in-the-documenta.patch
@@ -0,0 +1,35 @@
+From: Simon McVittie <smcv at debian.org>
+Date: Sat, 30 Apr 2016 16:37:36 +0100
+Subject: Automatically use current version number in the documentation
+
+Signed-off-by: Simon McVittie <smcv at debian.org>
+---
+ doc/conf.py | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/doc/conf.py b/doc/conf.py
+index e3e13cd..177f7bf 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -16,7 +16,8 @@ import sys, os
+ # 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
+ # documentation root, use os.path.abspath to make it absolute, like shown here.
+-#sys.path.insert(0, os.path.abspath('.'))
++sys.path.insert(0, os.path.abspath('..'))
++import mpd
+ 
+ # -- General configuration -----------------------------------------------------
+ 
+@@ -48,9 +49,9 @@ copyright = u'2013, Jörg Thalheim'
+ # built documents.
+ #
+ # The short X.Y version.
+-version = '0.5.1'
++version = ".".join(map(str, mpd.VERSION))
+ # The full version, including alpha/beta/rc tags.
+-release = '0.5.1'
++release = version
+ 
+ # The language for content autogenerated by Sphinx. Refer to documentation
+ # for a list of supported languages.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2feaeba
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Automatically-use-current-version-number-in-the-documenta.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/python-mpd.git



More information about the Pkg-mpd-commits mailing list