Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: John Paul Adrian Glaubitz Newsgroups: linux.debian.maint.python Subject: Re: Unable to set custom test command for pybuild Date: Thu, 31 Oct 2024 19:10:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Oct 31 18:08:43 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.761 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SARE_MSGID_LONG40=0.637] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -5.5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.1 MIME-Version: 1.0 X-Originating-IP: 87.189.144.78 X-Zedat-Hint: PO X-Mailing-List: archive/latest/22490 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/562fc8bd27ec6f7fc1664d232f2e30baa98f9a76.camel@physik.fu-berlin.de Approved: robomod@news.nic.it Lines: 47 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org X-Original-Date: Thu, 31 Oct 2024 19:08:20 +0100 X-Original-Message-ID: <562fc8bd27ec6f7fc1664d232f2e30baa98f9a76.camel@physik.fu-berlin.de> X-Original-References: Xref: csiph.com linux.debian.maint.python:16420 Hi Julian, 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 wrote= : > > (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 m= anpage [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 work. >=20 > export PYBUILD_TEST_CUSTOM =3D 1 > export PYBUILD_TEST_ARGS =3D Thanks a lot. I would have never guessed that. Meanwhile, I found the following alternative approach in the README.rst [1]= : dh_auto_test -- --system=3Dcustom --test-args=3D'{interpreter} setup.py te= st' Your suggestion looks cleaner. If it works, I'll use it. If not, I'll stick= to the approach above as it actually works. Took me forever to figure this all out= . I think this information could be added to the Pybuild page on the Debian w= iki [2]. Adrian > [1] https://github.com/p1otr/dh-python/blob/c5a56cdf8cf24b11ac68c980937cf= 0ef0921d2e0/README.rst#L104 > [2] https://wiki.debian.org/Python/Pybuild --=20 .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913