[med-svn] [python-pyvcf] 01/03: Install example files into separate binary package

Andreas Tille tille at debian.org
Wed Oct 14 10:46:23 UTC 2015


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

tille pushed a commit to branch master
in repository python-pyvcf.

commit 182156d8b35251390b3ce67dcea9454a51e59888
Author: Andreas Tille <tille at debian.org>
Date:   Wed Oct 14 12:16:23 2015 +0200

    Install example files into separate binary package
---
 debian/control | 21 +++++++++++++++++++++
 debian/rules   | 14 ++++++++------
 2 files changed, 29 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index c0b443e..6f1e088 100644
--- a/debian/control
+++ b/debian/control
@@ -59,3 +59,24 @@ Description: Variant Call Format (VCF) parser for Python 3
  just return strings.
  .
  This package provides the Python 3 modules.
+
+Package: python-pyvcf-examples
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends}
+Description: Example data for Variant Call Format (VCF) parser for Python
+ The Variant Call Format (VCF) specifies the format of a text file used
+ in bioinformatics for storing gene sequence variations. The format has
+ been developed with the advent of large-scale genotyping and DNA
+ sequencing projects, such as the 1000 Genomes Project.
+ .
+ The intent of this module is to mimic the ``csv`` module in the Python
+ stdlib, as opposed to more flexible serialization formats like JSON or
+ YAML. ``vcf`` will attempt to parse the content of each record based on
+ the data types specified in the meta-information lines -- specifically
+ the ##INFO and
+ ##FORMAT lines. If these lines are missing or incomplete, it will check
+ against the reserved types mentioned in the spec. Failing that, it will
+ just return strings.
+ .
+ This package provides example data to test the Python modules.
diff --git a/debian/rules b/debian/rules
index b6aa909..34fefd6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,16 +5,18 @@
 #export DH_VERBOSE=1
 
 export PYBUILD_NAME=pyvcf
+examplesdir=debian/python-$(PYBUILD_NAME)-examples/usr/share/doc/python-$(PYBUILD_NAME)-examples
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
 
-override_dh_auto_test____:
-	LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom \
-		--test-args='set -e; \
-                             cp -a Tests {build_dir}; \
-                             cd {build_dir}/Tests; \
-                             {interpreter} run_tests.py'
+override_dh_install:
+	dh_install
+	# move testdata to separate dir
+	mkdir -p $(examplesdir)
+	mv `find debian/python-$(PYBUILD_NAME) -type d -name test | head -n 1` $(examplesdir)
+	find debian/python3-$(PYBUILD_NAME) -type d -name test | xargs rm -rf
+	find $(examplesdir) -name "*.pyc" -delete
 
 get-orig-source:
 	. debian/get-orig-source

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



More information about the debian-med-commit mailing list