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


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

Re: How can I override module name in autopkgtest-pkg-python

From Gregor Riepl <onitake@gmail.com>
Newsgroups linux.debian.maint.python
Subject Re: How can I override module name in autopkgtest-pkg-python
Date 2021-03-03 21:50 +0100
Message-ID <BOGBr-5hf-3@gated-at.bofh.it> (permalink)
References <BOG8q-57b-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> autopkgtest [19:46:36]: test autodep8-python3: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import cython_blis; print(cython_blis)" ; done
> autopkgtest [19:46:36]: test autodep8-python3: [-----------------------
> Testing with python3.9:
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> ModuleNotFoundError: No module named 'cython_blis'
> autopkgtest [19:46:37]: test autodep8-python3: -----------------------]
> 
> 
> The actual module that needs to be importet is just blis.  How can
> I teach autodep8-python3 the correct module name?

Simply write a suitable debian/tests/control file that uses

import blis; print(blis)

instead of

import cython_blis; print(cython_blis)

See here for an example:
https://salsa.debian.org/3dprinting-team/libarcus/-/blob/master/debian/tests/control

Although, it looks like this sort of trivial autopkgtest is now
considered "superficial" and will no longer reduce the time until a
package is autopromoted to testing.

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


Thread

How can I override module name in autopkgtest-pkg-python Andreas Tille <andreas@an3as.eu> - 2021-03-03 21:20 +0100
  Re: How can I override module name in autopkgtest-pkg-python Gregor Riepl <onitake@gmail.com> - 2021-03-03 21:50 +0100
    Re: How can I override module name in autopkgtest-pkg-python Emmanuel Arias <eamanu@yaerobi.com> - 2021-03-03 23:20 +0100
      Re: How can I override module name in autopkgtest-pkg-python Emmanuel Arias <eamanu@yaerobi.com> - 2021-03-03 23:30 +0100
  Re: How can I override module name in autopkgtest-pkg-python Paul Wise <pabs@debian.org> - 2021-03-04 03:00 +0100

csiph-web