Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #16420
| From | John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Unable to set custom test command for pybuild |
| Date | 2024-10-31 19:10 +0100 |
| Message-ID | <JDHMl-5Inb-5@gated-at.bofh.it> (permalink) |
| References | <JDHMl-5Inb-7@gated-at.bofh.it> <JDH9E-5HO9-19@gated-at.bofh.it> <JDHMl-5Inb-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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.
I think this information could be added to the Pybuild page on the Debian wiki [2].
Adrian
> [1] https://github.com/p1otr/dh-python/blob/c5a56cdf8cf24b11ac68c980937cf0ef0921d2e0/README.rst#L104
> [2] https://wiki.debian.org/Python/Pybuild
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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