🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.maint.python
Article #18

Re: AutoPkgTest fails to copy the Python files to test environment

#18
From: Jeroen Ploemen
Date: Mon, 12 Oct 2026 07:00
54 lines
4217 bytes
--Sig_/CT9vnWv5o43SZTjKFnAiSZ_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Mon, 12 Oct 2026 11:44:23 +1100
Ben Finney <bignose@debian.org> wrote:

> What is failing, evidently, is AutoPkgTest's step of copying the
> Python package and test files, into its test environment. From
> there, zero test cases are found, and the step fails.

IIRC "testsuite: autopkgtest-pkg-pybuild" cannot handle doctests
automagically, so you probably need a custom test setup. The tests
are inside the module which is already installed into the global
Python namespace and can be used right there.

See jaraco.text and jaraco.context for ways to hack things into
place. Neither will win a beauty contest, but it works. If you don't
need to insert testdata or a conftest file, that would simplify things
further and you might even be able to get away with just running "$py
-m pytest --doctest-modules /usr/lib/python3/etc..." directly.

> [1]: Within the SBuild session, the binary package is correct:
> [...]
> ./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco/l=
ogging.py

This path, with the Python version recorded in it, is wrong (the
lintian run on the salsa CI already caught that too). FWIW: I've
never come across a simple module package that needed a d/*.install
file when using pybuild.

--Sig_/CT9vnWv5o43SZTjKFnAiSZ_
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEd8lhnEnWos3N8v+qQoMEoXSNzHoFAmrMhHcACgkQQoMEoXSN
zHoszRAAvQxUeb033ABRKLh1/Gbu8gcbxhRUJVBBpc5sM4dESyjEbobq9QIlXsWt
PGc0Gq9GstVqnnEkBLegJgI9G50c7MjURW6WTTFzp/cwYD0RURlF6MEf6gUHR2HC
FFirAF7rTPRyaw4GwIHx1Y8zkY6HQhoV+IRg1hpDOKTWU2zf13TqE2eS/eJtPG1g
2w1rCgaq6Oh9nUcOWgdut8WG0LlVslsUfZwoQkHAZCbbWjtePpMAFzxhDhbGNeVK
TSZPsxUfs2bdMx3inRV9cjWC7CPH1YaEvDJ0j8NSWRoPubOmq7ofDeUELvXfp1PN
CdDiZChAF7LS59enbcn0sCvH1htpn4TSOklER55crVckkvNvaPrnxEeJdieciHoU
+f2G0NGPnee8wvweXG/JfJYtzzOxBegp+j7+Fi9h5DCaYf+8fIToTJxvM8Ise3U3
dPNqeyIejyzzRmpbGILUuv2vUllAVdyLvVKtSbS6Tot50LEgIkLRaAEPFIM3DUTf
Gmyh1firNsM1+HtqeGSRzArcMUbruYrzsO8I0IZZMfRljhc7Fkbne0uySg+65k8U
shDbDygzCP7+62VtwNDy4xMn4oCYUSp2VcgH+u4nW4kM7hdcqve9oKJRokoKj1oa
+Ye8XHbIhHrAc3jT2/Zci2BPWd/hT/DsCpoJ0v0W9eNh5Qc6AHY=
=n8zp
-----END PGP SIGNATURE-----

--Sig_/CT9vnWv5o43SZTjKFnAiSZ_--
Technical Details
Message-ID: <NNiaR-51N7-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NNcoN-4YEM-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Jeroen Ploemen <jcfp@debian.org>
Newsgroups: linux.debian.maint.python
Subject: Re: AutoPkgTest fails to copy the Python files to test environment
Date: Mon, 12 Oct 2026 09:00:01 +0200
Message-ID: <NNiaR-51N7-7@gated-at.bofh.it>
References: <NNcoN-4YEM-1@gated-at.bofh.it>
X-Original-To: Ben Finney <bignose@debian.org>
X-Mailbox-Line: From debian-python-request@lists.debian.org  Mon Oct 12 06:56:29 2026
Old-Return-Path: <jcfp@debian.org>
X-Amavis-Spam-Status: No, score=-4.641 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
X-Mailer: Claws Mail 4.4.0 (GTK 3.24.41; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="Sig_/CT9vnWv5o43SZTjKFnAiSZ_";
 protocol="application/pgp-signature"; micalg=pgp-sha512
X-Debian-User: jcfp
X-Mailing-List: <debian-python@lists.debian.org> archive/latest/24121
List-ID: <debian-python.lists.debian.org>
List-URL: <https://lists.debian.org/debian-python/>
List-Archive: https://lists.debian.org/msgid-search/20261012065551.32714c0e@debian.org
Approved: robomod@news.nic.it
Lines: 54
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: debian-python@lists.debian.org
X-Original-Date: Mon, 12 Oct 2026 06:55:51 -0000
X-Original-Message-ID: <20261012065551.32714c0e@debian.org>
X-Original-References: <875wz7u4rc.fsf@benfinney.id.au>