[med-svn] [Git][med-team/q2-sample-classifier][master] 3 commits: d/control: Add depends on python3-distutils, q2-types, q2-feature-table
Nilesh Patra (@nilesh)
gitlab at salsa.debian.org
Sat Jul 24 22:01:09 BST 2021
Nilesh Patra pushed to branch master at Debian Med / q2-sample-classifier
Commits:
341a19e5 by Nilesh Patra at 2021-07-25T02:29:39+05:30
d/control: Add depends on python3-distutils, q2-types, q2-feature-table
- - - - -
d2b7f845 by Nilesh Patra at 2021-07-25T02:29:50+05:30
Add autopkgtests
- - - - -
b2266ad7 by Nilesh Patra at 2021-07-25T02:30:53+05:30
Interim changelog entry
- - - - -
5 changed files:
- debian/changelog
- debian/control
- debian/rules
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+q2-sample-classifier (2020.11.1-2) UNRELEASED; urgency=medium
+
+ * Team Upload.
+ * d/control: Add depends on python3-distutils,
+ q2-types, q2-feature-table
+ * Add autopkgtests
+
+ -- Nilesh Patra <nilesh at debian.org> Sun, 25 Jul 2021 02:30:21 +0530
+
q2-sample-classifier (2020.11.1-1) unstable; urgency=medium
* Team upload.
=====================================
debian/control
=====================================
@@ -22,6 +22,9 @@ Depends: ${shlibs:Depends},
${misc:Depends},
${python3:Depends},
qiime (>= 2020.11.0),
+ python3-distutils,
+ q2-types,
+ q2-feature-table
Description: QIIME 2 plugin for machine learning prediction of sample data
QIIME 2 is a powerful, extensible, and decentralized microbiome analysis
package with a focus on data and analysis transparency. QIIME 2 enables
=====================================
debian/rules
=====================================
@@ -13,11 +13,11 @@ override_dh_auto_install:
rm -rf debian/q2-sample-classifier/usr/lib/python3.9/site-packages/q2_sample_classifier/__pycache__/
rm -rf debian/q2-sample-classifier/usr/lib/python3.9/site-packages/q2_sample_classifier/tests/__pycache__/
-# FIXME: modules cannot be registered at build time - ignoring build tests for now
+#FIXME:
override_dh_auto_test:
-#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- dh_auto_test || true
-#endif
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ echo "I: Delaying true testing to autopkgtests since QIIME2 module cannot be registered at build time"
+endif
override_dh_auto_clean:
dh_auto_clean
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, python3-pytest-cov
+Restrictions: allow-stderr, skip-not-installable
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,21 @@
+#!/bin/bash
+set -e
+
+pkg=q2_sample_classifier
+
+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/lib/python3/dist-packages/${pkg}*/tests "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+ls
+if [ ! -f /usr/lib/python3/dist-packages/pytest_cov/__init__.py ] ; then
+ echo "Please install package python3-pytest-cov to run this script"
+ exit 1
+fi
+
+# Run build-time tests
+py.test-3 --cov=${pkg}
View it on GitLab: https://salsa.debian.org/med-team/q2-sample-classifier/-/compare/51f1dbc957466f837f2b3d37337782904627211d...b2266ad700082dc1640bfb9db1eb7df594360f7e
--
View it on GitLab: https://salsa.debian.org/med-team/q2-sample-classifier/-/compare/51f1dbc957466f837f2b3d37337782904627211d...b2266ad700082dc1640bfb9db1eb7df594360f7e
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/20210724/ba9d6371/attachment-0001.htm>
More information about the debian-med-commit
mailing list