Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Andrey Rakhmatullin Newsgroups: linux.debian.maint.python Subject: Re: electrum: How to enable autopkgtest? Date: Wed, 30 Oct 2024 06:50:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Oct 30 05:48:07 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -3.5 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JwVV40+j6F6fG7Ly" Content-Disposition: inline X-Mailing-List: archive/latest/22481 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/ZyHIg-83BG1CXnIi@belkar.wrar.name Approved: robomod@news.nic.it Lines: 57 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 30 Oct 2024 10:47:47 +0500 X-Original-Message-ID: X-Original-References: <15878157.HmTS7JG1Cm@soren-desktop> Xref: csiph.com linux.debian.maint.python:16411 --JwVV40+j6F6fG7Ly 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 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 The same happens when I install the package manually and try that import. > 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 Why would this fix this problem? > My question is, what is the canonical way to handle this? Fixing the package so that it provides that module or patching the tests so that they don't require it.=20 --=20 WBR, wRAR --JwVV40+j6F6fG7Ly Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmchyIMtFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh tK4P/2h5sfRfOCEVdcjODHHsp/IGc44gyRBMDAqqdUXAkOEHqzNolAM/ivNR2kb4 3p9PmyHt2ZyCt8fBTu9Uh35Drlw8BzquoauvwVhAYyg4Dt4gE/NxZI4/3Ov4cBM6 T8mlNfUSkDpKER5o4rix8lZpRw9yTAfj6q0MJew4ImsUovm5fjm6qK36J9njh6aj 9ni+Xr8x/q5GnGLB59RgZu4NW94Co8f65c4abthFn0gA9Pf5lRgSWc8b6UMKUHFp MfRfO88n8LxQMYFXPuUGSMazoqv+0WhumGtIaGJpM7yo5xxp0EFZyGG6y1gfLi7s wX/kvT/6596FvElTdm6arL5dRPKqjSNbkHL16Wtq/FpCj1AwE43cGynZR1m1oGfE +Hiqxpn2/QwvHRiRN7HtWaddanVogmgdGw2gSdA7oGYpKukRKU35A9jJQac6/Ebf ldYITY6YnvO+/ItYLaJgbnpDU7hI61Lm8ibmgJN+JvdQRQOQjZC7YZzZ1HmGzR7P DzMsLDNo8XKY+zA1W9EWbNh0p+ptxuPve93O5xjyDwRcJpumAFUnRb8Q6Rq1bbns ACu6EKgKk5G2aeOmFlEmboNhkXDGqRmsfv5PTBd/ql9zxwiHmOtphQw2LPx2EKlc lBsKbDPUF+Xf9MBW2P6I8W3xx3BSako2XJgJpX+h1hNnJYHr =SNwX -----END PGP SIGNATURE----- --JwVV40+j6F6fG7Ly--