Skip to content
Commits on Source (11)
macsyfinder (1.0.5-3) unstable; urgency=medium
* Team upload.
* Build-Depends: s/texlive-generic-extra/texlive-plain-generic/
Closes: #933287
* debhelper-compat 12
* Standards-Version: 4.4.0
* Trim trailing whitespace.
* buildsystem=pybuild
* Build-Depends: hmmer
* Fix / ignore failing tests
-- Andreas Tille <tille@debian.org> Mon, 05 Aug 2019 15:35:07 +0200
macsyfinder (1.0.5-2) unstable; urgency=medium
[ Jelmer Vernooij ]
......@@ -77,4 +91,3 @@ macsyfinder (1.0.2-1) unstable; urgency=medium
* first package import (Closes: #776722).
-- bertrand Neron <bneron@pasteur.fr> Sat, 31 Jan 2015 15:31:23 +0100
......@@ -3,17 +3,18 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.
Uploaders: bertrand Neron <bneron@pasteur.fr>
Section: science
Priority: optional
Build-Depends: debhelper (>= 11~),
Build-Depends: debhelper-compat (= 12),
dh-python,
python,
python3-sphinx,
texlive-latex-recommended,
texlive-generic-extra,
texlive-plain-generic,
texlive-latex-extra,
texlive-fonts-recommended,
latexmk,
graphviz
Standards-Version: 4.2.1
graphviz,
hmmer
Standards-Version: 4.4.0
Vcs-Browser: https://salsa.debian.org/med-team/macsyfinder
Vcs-Git: https://salsa.debian.org/med-team/macsyfinder.git
Homepage: https://github.com/gem-pasteur/macsyfinder
......
Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 05 Aug 2019 08:57:58 +0200
Description: Comparing with .pybuild temporary dir is bound to fail,
Do not fail if output dir for test_first_test.py was created before
--- a/tests/unit/test_Config.py
+++ b/tests/unit/test_Config.py
@@ -623,7 +623,7 @@ class Test(MacsyTest):
res_search_dir=self.tmp_dir,
log_file='NUL' if platform.system() == 'Windows' else '/dev/null'
)
- self.assertEqual(self.cfg.sequence_db, sequence_db)
+ # self.assertEqual(self.cfg.sequence_db, sequence_db)
def test_worker_nb(self):
--- a/tests/functional/test_first_test.py
+++ b/tests/functional/test_first_test.py
@@ -50,7 +50,10 @@ class Test(MacsyTest):
with test_aesu.fa sequence db in gembase format
"""
self.out_dir = os.path.join(self.tmp_dir, 'macsyfinder_test_basic_run')
- os.makedirs(self.out_dir)
+ try:
+ os.makedirs(self.out_dir)
+ except Exception as err:
+ print("Out_dir %s was created before in a manual process." % self.out_dir)
macsy_bin = os.path.join(self.macsy_home, 'bin', 'macsyfinder') if self.local_install else which('macsyfinder')
command = "{bin} --def={def_dir} --profile-dir={profiles} --out-dir={out_dir} --sequence-db={seq_db} --db-type=gembase {systems}".format(
@@ -89,10 +92,10 @@ class Test(MacsyTest):
raise err
macsy_process.wait()
- self.assertEqual(macsy_process.returncode, 0,
- "macsyfinder finished with non zero exit code: {0} command launched=\n{1}".format(
- macsy_process.returncode,
- command))
+# self.assertEqual(macsy_process.returncode, 0,
+# "macsyfinder finished with non zero exit code: {0} command launched=\n{1}".format(
+# macsy_process.returncode,
+# command))
expected_result_path = os.path.join(self._data_dir, 'data_set_1', 'basic_run_results',
'results.macsyfinder.json')
......@@ -4,11 +4,12 @@
#export DH_VERBOSE=1
%:
dh $@ --with python2
dh $@ --with python2 --buildsystem=pybuild
override_dh_auto_install:
cd doc && make html
cd doc && make latexpdf
ln -sf $(shell pybuild --print build_dir --interpreter python) build/lib.$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)-$(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)-$(shell pyversions -vs)
python setup.py install --prefix=debian/macsyfinder/usr/ --install-conf=debian/macsyfinder/etc/ --no-viewer
# The better solution would be to use
# dh_auto_install -- --prefix=/usr --install-conf=/etc --no-viewer
......@@ -31,3 +32,15 @@ override_dh_clean:
rm -f uninstall.cfg
rm -f uninstall_files
dh_clean
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# This test was skipped from test suite in debian/patches/skip_tests.patch since
# the binary program call somehow resolved to "None". Do it manually here.
MACSY_HOME=$(CURDIR) $(CURDIR)/bin/macsyfinder --def=tests/data/data_set_1/def --profile-dir=tests/data/data_set_1/profiles --out-dir=/tmp/macsyfinder_test_basic_run --sequence-db=tests/data/base/test_aesu.fa --db-type=gembase T9SS T3SS T4SS_typeI
dh_auto_test
endif
override_dh_fixperms:
dh_fixperms
find debian -name "test_*.fa" -executable -exec chmod -x \{\} \;