Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #13265
| Path | csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news.dns-netz.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Emmanuel Arias <eamanu@yaerobi.com> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: How can I override module name in autopkgtest-pkg-python |
| Date | Wed, 03 Mar 2021 23:30:01 +0100 |
| Message-ID | <BOIad-6pc-1@gated-at.bofh.it> (permalink) |
| References | <BOG8q-57b-11@gated-at.bofh.it> <BOGBr-5hf-3@gated-at.bofh.it> <BOI0x-6m1-1@gated-at.bofh.it> |
| X-Original-To | debian-python <debian-python@lists.debian.org> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Wed Mar 3 22:24:28 2021 |
| Old-Return-Path | <eamanu@yaerobi.com> |
| X-Amavis-Spam-Status | No, score=-4 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, GMAIL=1, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .yaerobi. - helo: .mail-wr1-x42e.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yaerobi-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y7XVi23q5uZ4OVJVQFYyRMylUWv9nDETBlOwSBO6sS0=; b=w7/UWc2g4vGod3w0L8Y+fyVA97tFxGoXCciSbQgq4jNbJ9EPhmVGtgSb3cYTO2gl/9 CnxtmuSWS057qT396s66ro7E2j1ZpqFoWlIEJTRCyZeEc7sY1o1JUnb2beWLWpJYbG0z Eu29nKRPosTU7lXP2EhGu9lqhiTMOIjCdU4Un+PqAK3BVaeFcU9qyYJTj+KgAJ8G2TyA oi9Y3rerbRA2ob9N63xvQj4fRw/M2jIsN78ZsD5hupG6pukKdbLwncadAtlFgNZA4cFQ 1lujEy/B1I3UhrLoui/HxdVI1D1MnbiChhRh1HPyQh3breZbJBHVWRdDK+TJhFjWJehQ HnUA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y7XVi23q5uZ4OVJVQFYyRMylUWv9nDETBlOwSBO6sS0=; b=PgjN+AEfOusSEDIsTd4PnUkqW5oUW2JHqvkS7Nn/kX/3ikwx1FssAixFivD3ua0xaF cs1Pi0rawe91A36U/hoVLr/ti1FJHRFcRBigtaSG5fvC6qqn+X3HmWPgOb3lwDPsOU1X CBgMNWjjyCrhN31Kfni9ESFicKQ8qv1qPInIbPk7K9vcQhse02nLw4WkDAfyUvoEcEFN ClgFgvYs7RPPnyqKqrk+5vV5uq2lLJnyDRmN76tyGzbSX+zfq54VFNolNoKdSigxbC3E TX2e4/tzzlkIiaRACZirLiYbTfL5/7JQtUf6ZnlRPdUB3NidXy2ydc9teELSD8XYJ4Ue qeYg== |
| X-Gm-Message-State | AOAM531Jw5YNrhxhQstyCdtykHc4GM/2ekpJxiXsCXoSGG9Eq4O497HM rcABwKaxIXVN41Du5LEIzkSNksZXnRJRNuUuXsRxb/xTCiioNnGt |
| X-Google-SMTP-Source | ABdhPJzgqW3GFPHSHBb4bFOPeSH3EyXYcJzS7PuziPyMrGG+cduSnsvQSueH2abVZar514540fMvnNNyJWoFhyGfY+8= |
| X-Received | by 2002:adf:f889:: with SMTP id u9mr872896wrp.180.1614810251355; Wed, 03 Mar 2021 14:24:11 -0800 (PST) |
| MIME-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="0000000000006976b905bca94f98" |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/19049 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/CAFNO5oeKoOGPpNuUUFtaBCsFzL=icRP2DL=oendSbQwPfS-Hwg@mail.gmail.com |
| Approved | robomod@news.nic.it |
| Lines | 135 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Andreas Tille <andreas@an3as.eu> |
| X-Original-Date | Wed, 3 Mar 2021 19:24:00 -0300 |
| X-Original-Message-ID | <CAFNO5oeKoOGPpNuUUFtaBCsFzL=icRP2DL=oendSbQwPfS-Hwg@mail.gmail.com> |
| X-Original-References | <20210303201156.GH12373@an3as.eu> <3dcaf7c6-e095-c429-cfd6-adbb3bf85399@gmail.com> <CAFNO5of71W=SPr9OoqCU9Zf9wwP6Df2F5OOGpR5upfxzSw7K0Q@mail.gmail.com> |
| Xref | csiph.com linux.debian.maint.python:13265 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
I note that my last mail can be confuse The use of debian/tests/pkg-python/import-name is deprecated. But the use of debian/tests/autopkgtest-pkg-python.conf is mentioned on man autodep8. So this can be used. On Wed, Mar 3, 2021 at 7:15 PM Emmanuel Arias <eamanu@yaerobi.com> wrote: > Hi, > > Maybe this can be useful [0] but that is deprecated. You can create > debian/tests/autopkgtest-pkg-python.conf file and use import_name > variable to change the name. Here an example [1] > > > [0] https://salsa.debian.org/ci-team/autodep8/-/merge_requests/17 > [1] > https://salsa.debian.org/python-team/packages/python-xlib/-/blob/master/debian/tests/autopkgtest-pkg-python.conf > > Cheers, > Emmanuel > > On Wed, Mar 3, 2021 at 5:49 PM Gregor Riepl <onitake@gmail.com> wrote: > >> > 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
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