Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12383

Python help needed for test suite in multiqc

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.maint.python
Subject Python help needed for test suite in multiqc
Date Wed, 25 Mar 2020 20:40:01 +0100
Message-ID <zOk2B-7jS-1@gated-at.bofh.it> (permalink)
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Mar 25 19:31:25 2020
Old-Return-Path <andreas@an3as.eu>
X-Amavis-Spam-Status No, score=-5 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, MEDS2=2] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent Mutt/1.10.1 (2018-07-13)
X-Mailing-List <debian-python@lists.debian.org> archive/latest/18030
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20200325193110.GU5878@an3as.eu
Approved robomod@news.nic.it
Lines 51
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 25 Mar 2020 20:31:10 +0100
X-Original-Message-ID <20200325193110.GU5878@an3as.eu>
Xref csiph.com linux.debian.maint.python:12383

Show key headers only | View raw


Hi Python folks,

the Debian Med team intends to package multiqc[1].  When running the build
time tests I get:


...
   debian/rules override_dh_auto_test
make[1]: Verzeichnis „/build/multiqc-1.8+dfsg“ wird betreten
cp -a multiqc*.egg-info /build/multiqc-1.8+dfsg/.pybuild/cpython3_3.8_multiqc/build
PYTHONPATH=/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.8_multiqc/build dh_auto_test
I: pybuild base:217: cd /build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build; python3.7 -m unittest discover -v 
multiqc (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: multiqc (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: multiqc
Traceback (most recent call last):
  File "/usr/lib/python3.7/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build/multiqc/__init__.py", line 16, in <module>
    from .multiqc import run
  File "/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build/multiqc/multiqc.py", line 38, in <module>
    from .utils import report, plugin_hooks, megaqc, util_functions, lint_helpers, config, log
  File "/build/multiqc-1.8+dfsg/.pybuild/cpython3_3.7_multiqc/build/multiqc/utils/log.py", line 7, in <module>
    import coloredlogs
  File "/usr/lib/python3/dist-packages/coloredlogs/__init__.py", line 192, in <module>
    from humanfriendly.terminal import ANSI_COLOR_CODES, ansi_wrap, terminal_supports_colors
ModuleNotFoundError: No module named 'humanfriendly.terminal'


----------------------------------------------------------------------
Ran 1 test in 0.000s



I'm wondering what else I need to do besides adding
python3-humanfriendly to Build-Depends to let this test pass.

Kind regards

        Andreas.


[1] https://salsa.debian.org/med-team/multiqc

-- 
http://fam-tille.de

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Python help needed for test suite in multiqc Andreas Tille <andreas@an3as.eu> - 2020-03-25 20:40 +0100
  Re: Python help needed for test suite in multiqc Andrey Rahmatullin <wrar@debian.org> - 2020-03-25 20:40 +0100
    Re: Python help needed for test suite in multiqc Andreas Tille <tille@debian.org> - 2020-03-26 08:10 +0100
      Re: Python help needed for test suite in multiqc Scott Kitterman <debian@kitterman.com> - 2020-03-26 12:50 +0100

csiph-web