for tabix.
.
This package installs the module for Python 3.
+
+Package: python-pysam-tests
+Architecture: all
+Enhances: python-pysam
+Depends: ${misc:Depends},
+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. Pysam also includes an interface
+ for tabix.
+ .
+ This package contains the data provided by upstream to run the pysam
+ test suite.
--- /dev/null
+Pysam for Debian
+================
+
+To verify whether your python-pysam and python3-pysam modules are working
+correctly you can run the test suite manually by running the scripts
+run-nose-tests and run-nose3-tests in this directory.
+
+ -- Jorge Soares <j.s.soares@gmail.com> Fri, 28 Nov 2014 14:29:40 +0100
--- /dev/null
+debian/tests/run-nose-tests
+debian/tests/run-nose3-tests
--- /dev/null
+tests usr/share/doc/python-pysam
--- /dev/null
+# Upstream-provided gzip file is independent of the build process
+package-contains-timestamped-gzip usr/share/doc/python-pysam/tests/pysam_data/ex1.sam.gz
export PYBUILD_NAME=pysam
DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+TESTPKG := $(DEBPKGNAME)-tests
HTSLIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export HTSLIB_LIBRARY_DIR=$(HTSLIBDIR)
%:
LC_ALL=C.UTF-8 dh $@ --with python2,python3 --buildsystem=pybuild
-# Testing and building the test data are handled by autopkgtest,
-# but debian/rules must be able to clean up after it.
+override_dh_install:
+ dh_install -Xtest.gtf.gz
+
+override_dh_auto_test:
+#nothing to test until pysam is installed.
+#test package is provided for both Python versions
+
override_dh_auto_clean:
dh_auto_clean
$(MAKE) -C tests/pysam_data clean
nosetests --nocapture
cd
rm -rf $ADTTMP
-
nosetests3 --nocapture
cd
rm -rf $ADTTMP
-