[med-svn] [pysam] 01/02: Add package carrying test data

Andreas Tille tille at debian.org
Mon Feb 10 18:10:51 UTC 2014


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

tille pushed a commit to branch master
in repository pysam.

commit 73d7f9b352250e73f046189d9cbcb396bd40bb8b
Author: Andreas Tille <tille at debian.org>
Date:   Mon Feb 10 19:09:46 2014 +0100

    Add package carrying test data
---
 debian/control                          | 16 ++++++++++++++++
 debian/python-pysam-tests.README.Debian | 11 +++++++++++
 debian/python-pysam-tests.install       |  1 +
 debian/python-pysam-tests.postinst      | 19 +++++++++++++++++++
 4 files changed, 47 insertions(+)

diff --git a/debian/control b/debian/control
index f7c530c..d4a5f84 100644
--- a/debian/control
+++ b/debian/control
@@ -25,3 +25,19 @@ Depends: ${shlibs:Depends},
 Description: interface for the SAM/BAM sequence alignment and mapping format
  Pysam is a python module for reading and manipulating Samfiles. It's a
  lightweight wrapper of the samtools C-API. 
+
+Package: python-pysam-tests
+Architecture: any
+Priority: extra
+Enhances: python-pysam
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python:Depends},
+         python-pysam,
+         python-pyrex
+Description: interface for the SAM/BAM sequence alignment and mapping format (test data)
+ Pysam is a python module for reading and manipulating Samfiles. It's a
+ lightweight wrapper of the samtools C-API. 
+ .
+ This package contains the data provided by upstream to run the pysam
+ test suite.
diff --git a/debian/python-pysam-tests.README.Debian b/debian/python-pysam-tests.README.Debian
new file mode 100644
index 0000000..6ec9300
--- /dev/null
+++ b/debian/python-pysam-tests.README.Debian
@@ -0,0 +1,11 @@
+Pysam for Debian
+================
+
+To verify whether your python-pysam modules are working correctly
+you can run the test suite manually via
+
+    cd /var/lib/pysam/tests
+    ./pysam_test.py
+
+ -- Andreas Tille <tille at debian.org>  Fri, 07 Feb 2014 18:29:40 +0100
+
diff --git a/debian/python-pysam-tests.install b/debian/python-pysam-tests.install
new file mode 100644
index 0000000..5717f36
--- /dev/null
+++ b/debian/python-pysam-tests.install
@@ -0,0 +1 @@
+tests	var/lib/pysam
diff --git a/debian/python-pysam-tests.postinst b/debian/python-pysam-tests.postinst
new file mode 100644
index 0000000..353fb13
--- /dev/null
+++ b/debian/python-pysam-tests.postinst
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    configure)
+        chmod a+w /var/lib/pysam/tests
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#

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



More information about the debian-med-commit mailing list