[med-svn] [python-pysam] 02/04: simplifying rules and adding install files for the python3 stuff

Jorge Soares jssoares-guest at moszumanska.debian.org
Fri Nov 28 12:53:03 UTC 2014


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

jssoares-guest pushed a commit to branch master
in repository python-pysam.

commit 26ad9da6220c36b58587980efe356b9e58609cc9
Author: Jorge Soares <j.s.soares at gmail.com>
Date:   Fri Nov 28 10:26:36 2014 +0000

    simplifying rules and adding install files for the python3 stuff
---
 debian/control                           |  1 +
 debian/python3-pysam-tests.README.Debian | 12 +++++++++++
 debian/python3-pysam-tests.docs          |  1 +
 debian/python3-pysam-tests.install       |  1 +
 debian/rules                             | 36 ++++++++++++++++----------------
 5 files changed, 33 insertions(+), 18 deletions(-)

diff --git a/debian/control b/debian/control
index a8cadb6..482b21e 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Section: python
 XS-Testsuite: autopkgtest
 Priority: optional
 Build-Depends: debhelper (>= 9),
+	       dh-python
                samtools (>= 0.1.19),
                libhts-dev,
 	       zlib1g-dev,
diff --git a/debian/python3-pysam-tests.README.Debian b/debian/python3-pysam-tests.README.Debian
new file mode 100644
index 0000000..d8e81dc
--- /dev/null
+++ b/debian/python3-pysam-tests.README.Debian
@@ -0,0 +1,12 @@
+Pysam for Debian
+================
+
+To verify whether your python3-pysam modules are working correctly
+you can run the test suite manually by running the script
+
+    run-unit-test
+
+in this directory.
+
+ -- Andreas Tille <tille at debian.org>  Fri, 07 Feb 2014 18:29:40 +0100
+
diff --git a/debian/python3-pysam-tests.docs b/debian/python3-pysam-tests.docs
new file mode 100644
index 0000000..760739f
--- /dev/null
+++ b/debian/python3-pysam-tests.docs
@@ -0,0 +1 @@
+debian/tests/run-unit-test
diff --git a/debian/python3-pysam-tests.install b/debian/python3-pysam-tests.install
new file mode 100644
index 0000000..3044255
--- /dev/null
+++ b/debian/python3-pysam-tests.install
@@ -0,0 +1 @@
+tests	usr/share/doc/python3-pysam
diff --git a/debian/rules b/debian/rules
index 9c9d0b9..7c414aa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,22 +16,22 @@ export HTSLIB_INCLUDE_DIR=/usr/include
 
 #Make sure Cython is recreating some c-files.  To enable building twice in a
 #row these will be saved in advance and restored afterwards
-debian/savefiles:
-	if grep -q -l "Generated by Cython" pysam/*.c ; then \
-	    mkdir -p debian/savefiles ; \
-	    mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles ; \
+#debian/savefiles:
+#	if grep -q -l "Generated by Cython" pysam/*.c ; then \
+#	    mkdir -p debian/savefiles ; \
+#	    mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles ; \
 	fi
 
-override_dh_clean:
-	dh_clean
+#override_dh_clean:
+#	dh_clean
 # restore cython generated files
-	if [ -d debian/savefiles ] ; then \
-	    mv debian/savefiles/* pysam ; \
-	    rm -rf debian/savefiles ; \
-	fi
+#	if [ -d debian/savefiles ] ; then \
+#	    mv debian/savefiles/* pysam ; \
+#	    rm -rf debian/savefiles ; \
+#	fi
 
-override_dh_auto_build: debian/savefiles
-	 dh_auto_build
+#override_dh_auto_build: debian/savefiles
+#	 dh_auto_build
 
 #override_dh_auto_test:
 #ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
@@ -42,10 +42,10 @@ override_dh_auto_build: debian/savefiles
 #			                          && HTSLIB_LIBRARY_DIR=$(HTSLIBDIR) HTSLIB_INCLUDE_DIR=/usr/include PYTHONPATH=${build_dir} ${interpreter} ./tabix_test.py '
 #endif
 
-override_dh_install-indep:
-	dh_install -p $(TESTPKG)
-	cd debian/$(TESTPKG)/usr/share/doc/python-pysam/tests; \
-	    make clean; \
-	    rm -f log.txt ; \
-	    chmod a+x tabix_test.py
+#override_dh_install-indep:
+#	dh_install -p $(TESTPKG)
+#	cd debian/$(TESTPKG)/usr/share/doc/python-pysam/tests; \
+#	    make clean; \
+#	    rm -f log.txt ; \
+#	    chmod a+x tabix_test.py
 

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



More information about the debian-med-commit mailing list