[med-svn] [khmer] 05/06: retrieve the version from the Debian ChangeLog

Michael Crusoe misterc-guest at moszumanska.debian.org
Thu May 28 00:34:07 UTC 2015


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

misterc-guest pushed a commit to branch master
in repository khmer.

commit b3ade39a33768be288e8c8fdcf425a8b47469a9e
Author: Michael R. Crusoe <michael.crusoe at gmail.com>
Date:   Wed May 27 15:24:53 2015 -0400

    retrieve the version from the Debian ChangeLog
---
 debian/patches/get_version | 30 ++++++++++++++++++++++++++++++
 debian/patches/series      |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/get_version b/debian/patches/get_version
new file mode 100644
index 0000000..6b4708c
--- /dev/null
+++ b/debian/patches/get_version
@@ -0,0 +1,30 @@
+--- khmer.orig/doc/conf.py
++++ khmer/doc/conf.py
+@@ -13,6 +13,7 @@
+ 
+ import sys
+ import os
++import subprocess
+ 
+ # 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
+@@ -57,16 +58,9 @@
+ 
+ # The full version, including alpha/beta/rc tags.
+ 
+-sys.path.insert(0, '../')
+-import versioneer
+-versioneer.VCS = 'git'
+-versioneer.versionfile_source = '../khmer/_version.py'
+-versioneer.versionfile_build = '../khmer/_version.py'
+-versioneer.tag_prefix = 'v'  # tags are like v1.2.0
+-versioneer.parentdir_prefix = '..'
+-release = versioneer.get_version()
+-del versioneer
+-sys.path.remove('../')
++release = subprocess.check_output(
++    ['sh', '-c', 'cd ..; dpkg-parsechangelog -S Version'])
++
+ 
+ # The short X.Y version.
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 4a81ef1..6048cae 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 local-libs
 older-setuptools
 disable_google_analytics
+get_version

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/khmer.git



More information about the debian-med-commit mailing list