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


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

pybuild: Build-testing with the package installed

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Matthias Urlichs <matthias@urlichs.de>
Newsgroups linux.debian.maint.python
Subject pybuild: Build-testing with the package installed
Date Thu, 14 Nov 2024 14:20:01 +0100
Message-ID <JIHVn-8Tb9-5@gated-at.bofh.it> (permalink)
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Nov 14 13:17:33 2024
Old-Return-Path <matthias@urlichs.de>
X-Amavis-Spam-Status No, score=-10.8 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, HTML_MESSAGE=2, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -4.6
X-Greylist delayed 1795 seconds by postgrey-1.36 at bendel; Thu, 14 Nov 2024 13:17:17 UTC
MIME-Version 1.0
User-Agent Mozilla Thunderbird
Content-Language en-US
Content-Type multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------06YtIqWtJtZNDqQRC9W3Afup"
X-Smurf-Spam-Score -1.0 (-)
X-Smurf-Whitelist +relay_from_hosts
X-Mailing-List <debian-python@lists.debian.org> archive/latest/22537
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/79836b58-f0c0-404f-b37f-c905c7fd3cac@urlichs.de
Approved robomod@news.nic.it
Lines 114
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 14 Nov 2024 13:38:29 +0100
X-Original-Message-ID <79836b58-f0c0-404f-b37f-c905c7fd3cac@urlichs.de>
Xref csiph.com linux.debian.maint.python:16461

Show key headers only | View raw


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

Hi,

I'm trying to locally build a fixed version of a buggy package which 
happens to be installed on the system.

"debuild -b -us -uc" reports:

Successfully built moat_lib_codec-0.2.2-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module
    dh_auto_test -O--buildsystem=pybuild
dh_auto_test: warning: Use of debian/compat is deprecated and will be removed in debhelper (>=14~).
I: pybuild base:311: cd /src/moat/lib/codec/.pybuild/cpython3_3.12_moat-lib-codec/build; python3.12 -m pytest tests

Note the nonexistence of "PYTHONPATH=." in this command line, which 
causes the test suite to use the installed version, which subsequently 
fails (that's the whole point of having a comprehensive test suite, 
after all …).

Is it possible to teach pybuild to do this the right way? I could always 
add a "override_dh_auto_test" stanza that calls pytest manually, but the 
whole point of standardized packaging is not having to do stuff like that.

The package is at https://github.com/M-o-a-T/moat-lib-codec/tree/deb 
(sorry, moving to Codeberg+Salsa hasn't quite reached the top of my TODO 
list …) if anybody wants to take a closer look.

-- 
-- regards,
-- 
-- Matthias Urlichs

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


Thread

pybuild: Build-testing with the package installed Matthias Urlichs <matthias@urlichs.de> - 2024-11-14 14:20 +0100
  Re: pybuild: Build-testing with the package installed Andrey Rakhmatullin <wrar@debian.org> - 2024-11-14 14:30 +0100
  Re: pybuild: Build-testing with the package installed Stefano Rivera <stefanor@debian.org> - 2024-11-14 15:00 +0100
    Re: pybuild: Build-testing with the package installed Matthias Urlichs <matthias@urlichs.de> - 2024-11-17 12:20 +0100

csiph-web