[med-svn] r20229 - trunk/packages/python-pyfasta/trunk/debian
Andreas Tille
tille at moszumanska.debian.org
Wed Oct 14 20:13:41 UTC 2015
Author: tille
Date: 2015-10-14 20:13:40 +0000 (Wed, 14 Oct 2015)
New Revision: 20229
Modified:
trunk/packages/python-pyfasta/trunk/debian/changelog
trunk/packages/python-pyfasta/trunk/debian/control
trunk/packages/python-pyfasta/trunk/debian/rules
Log:
Try to work on tests
Modified: trunk/packages/python-pyfasta/trunk/debian/changelog
===================================================================
--- trunk/packages/python-pyfasta/trunk/debian/changelog 2015-10-14 09:54:29 UTC (rev 20228)
+++ trunk/packages/python-pyfasta/trunk/debian/changelog 2015-10-14 20:13:40 UTC (rev 20229)
@@ -1,5 +1,5 @@
python-pyfasta (0.5.2-1) UNRELEASED; urgency=medium
- * Initial upload (Closes: #??)
+ * Initial upload (Closes: #801721)
-- Andreas Tille <tille at debian.org> Tue, 13 Oct 2015 17:02:08 +0200
Modified: trunk/packages/python-pyfasta/trunk/debian/control
===================================================================
--- trunk/packages/python-pyfasta/trunk/debian/control 2015-10-14 09:54:29 UTC (rev 20228)
+++ trunk/packages/python-pyfasta/trunk/debian/control 2015-10-14 20:13:40 UTC (rev 20229)
@@ -6,6 +6,7 @@
Build-Depends: debhelper (>= 9),
dh-python,
python-all (>= 2.7),
+ python-coverage,
python-setuptools,
python-nose,
python-numpy,
Modified: trunk/packages/python-pyfasta/trunk/debian/rules
===================================================================
--- trunk/packages/python-pyfasta/trunk/debian/rules 2015-10-14 09:54:29 UTC (rev 20228)
+++ trunk/packages/python-pyfasta/trunk/debian/rules 2015-10-14 20:13:40 UTC (rev 20229)
@@ -5,7 +5,21 @@
#export DH_VERBOSE=1
export PYBUILD_NAME=pyfasta
+export PYBUILD_TEST_ARGS={dir}/tests
+override_dh_auto_test:
+ LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom \
+ --test-args='set -e; \
+ set -x; \
+ cp -a tests {build_dir}; \
+ {interpreter} run_tests.py --offline'
+
+run_tests:
+ cp -a tests/data/key.fasta tests/data/key.fasta.orig
+ cp -a tests/data/three_chrs.fasta tests/data/three_chrs.fasta.orig
+ python -m nose tests
+
+
%:
dh $@ --with python2,python3 --buildsystem=pybuild
More information about the debian-med-commit
mailing list