Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Antonio Terceiro Newsgroups: linux.debian.maint.python Subject: Re: electrum: How to enable autopkgtest? Date: Wed, 30 Oct 2024 14:10:02 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Oct 30 13:05:05 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-114.93 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.421, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no Mail-Followup-To: Antonio Terceiro , debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="j9JGP57Sx4ot20QL" Content-Disposition: inline X-Debian-User: terceiro X-Mailing-List: archive/latest/22488 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/ZyItwrL5BjSyFbin@debian.org Approved: robomod@news.nic.it Lines: 74 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 30 Oct 2024 09:59:46 -0300 X-Original-Message-ID: X-Original-References: <15878157.HmTS7JG1Cm@soren-desktop> Xref: csiph.com linux.debian.maint.python:16418 --j9JGP57Sx4ot20QL Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 29, 2024 at 01:43:50PM -0700, Soren Stoutner wrote: > I recently requested the upstream maintainers add the tests directory to = their=20 > signed tarball releases. I am now in the process of trying to enable tho= se=20 > tests in the Debian package. >=20 > I added a Build-Depend on "python3-pytest =E2=80=9D and added = =E2=80=9CTestsuite:=20 > autopkgtest-pkg-pybuild=E2=80=9D to debian/control. This enables the tes= ts during=20 > build time, but I receive the following error during autopkgtest: >=20 > E ModuleNotFoundError: No module named =E2=80=98electrum.gui.qml=E2=80= =99 >=20 > https://salsa.debian.org/cryptocoin-team/electrum/-/jobs/6505015#L677 >=20 > I believe I could fix this problem by adding the following to debian/rule= s: >=20 > export PYBUILD_NAME=3Delectrum >=20 > However, this breaks the current splitting of the files into two binary= =20 > packages, electrum and python3-electrum, using .install files. >=20 > My question is, what is the canonical way to handle this? Is there some= =20 > variation of the =E2=80=9Cexport PYBUILD_NAME=E2=80=9D command that prese= rves the contents of=20 > the two binary packages? Or, is there some other command I am missing th= at=20 > will allow autopkgtest to import the built modules? If you check the artfifacts in the pipeline, your python3-electron does not contain the module that the test is trying to import: $ dpkg --contents python3-electrum_4.5.8+ds-1+salsaci+20241029+49_all.deb |= grep qml.*py -rw-r--r-- root/root 4142 2024-10-18 00:56 ./usr/lib/python3/dist-pack= ages/electrum/plugins/labels/qml.py -rw-r--r-- root/root 4559 2024-10-18 00:56 ./usr/lib/python3/dist-pack= ages/electrum/plugins/trustedcoin/qml.py This is why the import fails, it has nothing to do with PYBUILD_NAME. --j9JGP57Sx4ot20QL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEst7mYDbECCn80PEM/A2xu81GC94FAmciLb8ACgkQ/A2xu81G C96XZxAA5Tf4iDlBItFtYJoQteAHSxmymh6W/JIqJhP5ADGjEC4Y13G0PEayXClY yozl6lXhb492V3D43hTGW38EsdfYVA6vM0BQd3HDh5RMD4QXXIx/ZkWU3l9OQqhA y8PoBCUmpCgHrxnXlwlHX5peDcBTqdnVl/aaOm40BMSvaxu/tPWdSEZ9F/COO297 FSwqbCM1zQWZslc++o7TjHI6HzjEtiN/wndYDpQ89Q0hKdy7Q9KDVcoK3KRVaYPF NQ1CKdg8LfVuklyXeNDVxGHv4nSkc2Prwj1TsM/q7qocuEn4lqa8c5rvUjYRhYIK 6SSwfroldYkNxpFFuapwwAYueavxA4BmAoNpFypXERKfqeOWqESdyx6l6qND4Tjz 9yY/DpXaQHdyD5QywXoVpXarEKa8eVted1yfrDuOdaucdnpX27WlUhN0gM50bkPF /IkK2yCQbje9QrEQ3IU3fQYzuTtpDj4HHP9MbFm1Qbb2f1/9efBgr5HeK6QG/fFR UQ+8sVyRqGxNzVUILFJuHwJAAChbicVcRtC6JPPWXHbSj7S1g+mdxdFw7MKeJ+C4 Q6I236NbccvBvblVa6aj2WqEi49R5o7TZZ9HF3rKQTb7+wG3NfrAJVwPmbioG/tc CYiXFlxDJ2iYIc9ZAnsceEo1UqXYRJlL234dF+hsA6n4CcqL2mk= =u/7c -----END PGP SIGNATURE----- --j9JGP57Sx4ot20QL--