[med-svn] [Git][med-team/python-dendropy][master] 3 commits: Do not try running non-existing testsuite
Andreas Tille
gitlab at salsa.debian.org
Tue Oct 8 12:27:31 BST 2019
Andreas Tille pushed to branch master at Debian Med / python-dendropy
Commits:
643ce6a2 by Andreas Tille at 2019-10-08T11:08:26Z
Do not try running non-existing testsuite
- - - - -
b5c1dedd by Andreas Tille at 2019-10-08T11:23:54Z
Add autopkgtest
- - - - -
c0427f48 by Andreas Tille at 2019-10-08T11:26:05Z
Upload to unstable
- - - - -
9 changed files:
- + debian/README.test
- debian/changelog
- + debian/patches/do_not_try_running_non-existing_testsuite.patch
- + debian/patches/series
- debian/rules
- + debian/sumtrees.docs
- + debian/sumtrees.examples
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/README.test
=====================================
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+ sh run-unit-test
+
+in order to confirm its integrity.
=====================================
debian/changelog
=====================================
@@ -1,4 +1,4 @@
-python-dendropy (4.4.0-2) UNRELEASED; urgency=medium
+python-dendropy (4.4.0-2) unstable; urgency=medium
* Drop Python2 support
targeting bug #937698
@@ -7,8 +7,10 @@ python-dendropy (4.4.0-2) UNRELEASED; urgency=medium
* Secure URI in copyright format
* Respect DEB_BUILD_OPTIONS in override_dh_auto_test target
* Use secure URI in Homepage field.
+ * Do not try running non-existing testsuite
+ * Add autopkgtest
- -- Andreas Tille <tille at debian.org> Tue, 08 Oct 2019 09:01:44 +0200
+ -- Andreas Tille <tille at debian.org> Tue, 08 Oct 2019 13:24:14 +0200
python-dendropy (4.4.0-1) unstable; urgency=medium
=====================================
debian/patches/do_not_try_running_non-existing_testsuite.patch
=====================================
@@ -0,0 +1,16 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Tue, 08 Oct 2019 09:01:44 +0200
+Description: There is no test suite to run - just data
+ see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=937698#17
+
+--- a/setup.py
++++ b/setup.py
+@@ -95,7 +95,7 @@ else:
+ EXTRA_KWARGS = dict(
+ install_requires = ['setuptools'],
+ include_package_data = True,
+- test_suite = "tests",
++# test_suite = "tests",
+ zip_safe = True,
+ )
+
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+do_not_try_running_non-existing_testsuite.patch
=====================================
debian/rules
=====================================
@@ -9,15 +9,6 @@ export PYBUILD_NAME=dendropy
%:
dh $@ --with python3 --buildsystem=pybuild
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- LC_ALL=en_US.utf-8 dh_auto_test || true
- # FIXME
- # need to add true since for Python 3.4 5 tests are failing due some
- # strange encoding problem. upstream is unable to verify this and
- # there is no better idea for the moment
-endif
-
override_dh_install:
dh_install
mkdir -p debian/$(SUMTREES)/usr/bin
=====================================
debian/sumtrees.docs
=====================================
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/run-unit-test
=====================================
debian/sumtrees.examples
=====================================
@@ -0,0 +1 @@
+tests/data/trees/*.tre
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,25 @@
+#!/bin/bash
+set -e
+
+pkg=sumtrees
+
+export LC_ALL=C.UTF-8
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+ AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+ trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+
+gunzip -r *
+
+# Obtained from `sumtrees --usage-examples`
+sumtrees --summary-target consensus \
+ --min-clade-freq=0.95 \
+ --edges mean-length \
+ --burnin=200 \
+ --support-as-labels \
+ --output=pythonidae_result.tre \
+ pythonidae.mlboots.newick.tre pythonidae.random.bd0301.midpoint-rooted.tre pythonidae.random.bd0301.tre
View it on GitLab: https://salsa.debian.org/med-team/python-dendropy/compare/802d879c89b0c71f1d77df86d85e732485d63a4d...c0427f48311dc4be7bc77f5da3a08c1804cfd10c
--
View it on GitLab: https://salsa.debian.org/med-team/python-dendropy/compare/802d879c89b0c71f1d77df86d85e732485d63a4d...c0427f48311dc4be7bc77f5da3a08c1804cfd10c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20191008/f5b4ecf8/attachment-0001.html>
More information about the debian-med-commit
mailing list