Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #16434

Re: Unable to set custom test command for pybuild

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Antonio Terceiro <terceiro@debian.org>
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 <JE52i-5X4F-3@gated-at.bofh.it> (permalink)
References <JDH9E-5HO9-19@gated-at.bofh.it> <JDHMl-5Inb-9@gated-at.bofh.it> <JDHMl-5Inb-5@gated-at.bofh.it>
X-Original-To John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Nov 1 18:52:24 2024
Old-Return-Path <terceiro@debian.org>
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 <terceiro@debian.org>, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, 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 <debian-python@lists.debian.org> archive/latest/22504
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
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 <ZyUjLHrRd-GFgWRi@debian.org>
X-Original-References <a48e90b50b4d3f8999979de24d1d04276b388300.camel@physik.fu-berlin.de> <ZyPFD3fT8WbxGsrE@d-and-j.net> <562fc8bd27ec6f7fc1664d232f2e30baa98f9a76.camel@physik.fu-berlin.de>
Xref csiph.com linux.debian.maint.python:16434

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Oct 31, 2024 at 07:08:20PM +0100, John Paul Adrian Glaubitz wrote:
> 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)
> > > 
> > > Hello,
> > > 
> > > 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.
> > > 
> > > I tried setting it via "export PYBUILD_OPTION=" but that didn't work.
> > 
> > export PYBUILD_TEST_CUSTOM = 1
> > export PYBUILD_TEST_ARGS = <custom test command>
> 
> 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=custom --test-args='{interpreter} setup.py test'
> 
> 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.

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.

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Unable to set custom test command for pybuild John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2024-10-31 18:30 +0100
  Re: Unable to set custom test command for pybuild John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2024-10-31 19:10 +0100
    Re: Unable to set custom test command for pybuild Andrey Rakhmatullin <wrar@debian.org> - 2024-10-31 19:40 +0100
      Re: Unable to set custom test command for pybuild John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2024-10-31 20:10 +0100
    Re: Unable to set custom test command for pybuild Julian Gilbey <julian@d-and-j.net> - 2024-10-31 22:00 +0100
      Re: Unable to set custom test command for pybuild Matthias Klose <doko@debian.org> - 2024-11-01 08:40 +0100
        Re: Unable to set custom test command for pybuild Julian Gilbey <julian@d-and-j.net> - 2024-11-03 13:50 +0100
    Re: Unable to set custom test command for pybuild Antonio Terceiro <terceiro@debian.org> - 2024-11-01 20:00 +0100
  Re: Unable to set custom test command for pybuild Julian Gilbey <julian@d-and-j.net> - 2024-10-31 19:30 +0100

csiph-web