[med-svn] [Git][med-team/q2-vsearch][master] Add dependencies and test

Shayan Doust gitlab at salsa.debian.org
Sun Jul 5 21:48:12 BST 2020



Shayan Doust pushed to branch master at Debian Med / q2-vsearch


Commits:
488668cb by Shayan Doust at 2020-07-05T21:47:45+01:00
Add dependencies and test

- - - - -


3 changed files:

- debian/control
- + debian/pybuild.testfiles
- debian/rules


Changes:

=====================================
debian/control
=====================================
@@ -6,7 +6,17 @@ Priority: optional
 Build-Depends: debhelper-compat (= 13),
                dh-python,
                python3-all,
-               python3-setuptools
+               python3-setuptools,
+               python3-pytest-cov,
+               qiime,
+               q2-feature-table,
+               vsearch,
+               python3-skbio,
+               python3-biom-format,
+               python3-numpy,
+               python3-yaml,
+               q2-types,
+               q2-feature-table
 Standards-Version: 4.5.0
 Vcs-Browser: https://salsa.debian.org/med-team/q2-vsearch
 Vcs-Git: https://salsa.debian.org/med-team/q2-vsearch.git
@@ -16,7 +26,16 @@ Package: q2-vsearch
 Architecture: any
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         ${python3:Depends}
+         ${python3:Depends},
+         qiime,
+         q2-feature-table,
+         vsearch,
+         python3-skbio,
+         python3-biom-format,
+         python3-numpy,
+         python3-yaml,
+         q2-types,
+         q2-feature-table
 Description: QIIME 2 plugin for clustering and dereplicating with vsearch
  A QIIME 2 plugin that wraps the vsearch application, and provides
  methods for clustering and dereplicating features and sequences.


=====================================
debian/pybuild.testfiles
=====================================
@@ -0,0 +1,2 @@
+q2_vsearch.egg-info
+q2_vsearch/tests/data


=====================================
debian/rules
=====================================
@@ -8,5 +8,15 @@ include /usr/share/dpkg/default.mk
 # for hardening you might like to uncomment this:
 # export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
+# Install files into build directory so it registers with QIIME2
+export PYBUILD_BEFORE_TEST=python{version} setup.py develop --install-dir {build_dir}
+# Uninstall the files and remove any unneeded files
+export PYBUILD_AFTER_TEST=rm -v {build_dir}/.coverage*; \
+	 	python{version} setup.py develop --uninstall --install-dir {build_dir}
 %:
 	dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+ifeq (, $(filter nocheck, $(DEB_BUILD_OPTIONS)))
+	dh_auto_test -- -s custom --test-args="cd {build_dir}; py.test-3 --cov=q2_vsearch"
+endif



View it on GitLab: https://salsa.debian.org/med-team/q2-vsearch/-/commit/488668cb5bbb0b761c872d24271fb15d7d72d690

-- 
View it on GitLab: https://salsa.debian.org/med-team/q2-vsearch/-/commit/488668cb5bbb0b761c872d24271fb15d7d72d690
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/20200705/899efb85/attachment-0001.html>


More information about the debian-med-commit mailing list