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: Unable to set custom test command for pybuild Date: Fri, 01 Nov 2024 20:00:02 +0100 Message-ID: References: X-Original-To: John Paul Adrian Glaubitz X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Nov 1 18:52:24 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 , John Paul Adrian Glaubitz , debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mPXBTY0NFef5WeIq" Content-Disposition: inline X-Debian-User: terceiro X-Mailing-List: archive/latest/22504 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/ZyUjLHrRd-GFgWRi@debian.org Approved: robomod@news.nic.it Lines: 66 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org X-Original-Date: Fri, 1 Nov 2024 15:51:24 -0300 X-Original-Message-ID: X-Original-References: <562fc8bd27ec6f7fc1664d232f2e30baa98f9a76.camel@physik.fu-berlin.de> Xref: csiph.com linux.debian.maint.python:16434 --mPXBTY0NFef5WeIq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 31, 2024 at 07:08:20PM +0100, John Paul Adrian Glaubitz wrote: > Hi Julian, >=20 > On Thu, 2024-10-31 at 17:57 +0000, Julian Gilbey wrote: > > On Thu, Oct 31, 2024 at 06:22:45PM +0100, John Paul Adrian Glaubitz wro= te: > > > (Please CC me as I'm not subscribed to this list) > > >=20 > > > Hello, > > >=20 > > > I need to override the standard test for pybuild and according to the= manpage [1] > > > this is achieved by passing "--test-custom" to pybuild. Unfortunately= , it's actually > > > not saying where exactly the parameter needs to go. > > >=20 > > > I tried setting it via "export PYBUILD_OPTION=3D" but that didn't wor= k. > >=20 > > export PYBUILD_TEST_CUSTOM =3D 1 > > export PYBUILD_TEST_ARGS =3D >=20 > Thanks a lot. I would have never guessed that. >=20 > Meanwhile, I found the following alternative approach in the README.rst [= 1]: >=20 > dh_auto_test -- --system=3Dcustom --test-args=3D'{interpreter} setup.py = test' >=20 > Your suggestion looks cleaner. If it works, I'll use it. If not, I'll sti= ck to the > approach above as it actually works. Took me forever to figure this all o= ut. Note that when you use the PYBUILD_* variables, they also apply when running under autopkgtest, so that is better than overiding the dh_auto_test call. --mPXBTY0NFef5WeIq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEst7mYDbECCn80PEM/A2xu81GC94FAmclIysACgkQ/A2xu81G C94esxAA7bx1wFozLEaShUezeEX+U+q0xQPW0s2rauFZi7fwY9+0ncpicIwigTHq /V0nQUmsGdlXcKWWTznKaSGOH/zEFT273S1XpdlZh2RyXTHew3W+QllYLAcs8hc3 R1OU7qJ8KHhEZOgeJXgGYwjDHTyCGJV3WERYoW74A2/lrfj0liUZTYQgP3gnpvIZ 4cku4KUsih1X3W9GlJhYSingQOijIbAq0n2+ohjfjnSrcFRCrPt8tF/fQTnrZJhD JUNLaMUyWxNfAQjOWIrv7wPjKWNmUcstWIYvT+d8fxwuP6/Gdq6IpEgzLMVK5FzD a76jHw6dG6Z6gkuvaboxOxuE328qD/zgPNpNpP4/m/oa8NWag4N4fZAGf8teeh6h eQUSp3ztNo1NFFd1aZqM3hRm8Z/3XNHEEx1ftv9PyoRBlh5MBQgI8syHSue1vgiZ 7tgL8zr3687M3ua12f5O31q/IjG6atzdxCQZK7zK6QWkSJNe9MSB17Bo6DSYXL/x 3uQRgqAG0F3U6x2uU4yB1ee30AF0n19/2vJxXUSqD52Kaj3Fhcc/gbpqelU5RFkC dxpEM3rCIVFauiJwAcAGzVNfnYkudl0rFjnVglf1h3irT2p2zz4XVRyMR9pIneQL VsBmGiBasKfAPg8lhcabcoSZUkv2QP6xI3CpCf1hZy/oJDTES7Q= =Nl5+ -----END PGP SIGNATURE----- --mPXBTY0NFef5WeIq--