Thread View: linux.debian.maint.python
11 messages
11 total messages
Started by Ben Finney
Mon, 12 Oct 2026 00:50
AutoPkgTest fails to copy the Python files to test environment
Author: Ben Finney
Date: Mon, 12 Oct 2026 00:50
Date: Mon, 12 Oct 2026 00:50
108 lines
6901 bytes
6901 bytes
Howdy all,
I'm attempting to enable AutoPkgTest for a Python package [0], via the
control field âTestsuite: autopkgtest-pkg-pybuildâ. The binary package
builds successfully [1], but the AutoPkgTest run does not include any of
the Python package and so runs no tests [2].
I am quite confused how the Debian tools for Python packaging determine
which package names, module names, and filesystem paths are relevant for
each step. It would not surprise me if some error has been made in
values for those in the Debian package.
Relevant values I can think of:
* Source package name: âjaraco.loggingâ.
* Binary package for the Python 3 library: âpython3-jaraco.loggingâ.
* Python package import name: âjaraco_loggingâ.
* Name of the top-level directory: âjaracoâ.
* Name of the âdist-infoâ directory: âjaraco_logging-3.4.0.dist-infoâ.
So I've set in âdebian/rulesâ:
=====
export PYBUILD_SYSTEM := pyproject
export PYBUILD_NAME := jaraco_logging
=====
and the âdebian/python3-jaraco.logging.installâ instructs âdh_installâ
correctly to install the Python package:
=====
debian/python3-jaraco-logging/usr/lib/python3.*/dist-packages/jaraco
debian/python3-jaraco-logging/usr/lib/python3.*/dist-packages/jaraco_logging-*.dist-info
=====
What is failing, evidently, is AutoPkgTest's step of copying the Python
package and test files, into its test environment. From there, zero test
cases are found, and the step fails.
How do I diagnose what is failing to the point where I know what needs
to be corrected?
[0]: Source package âjaraco.loggingâ, packaging repository at Salsa
<URL:https://salsa.debian.org/bignose/pkg-jaraco.logging>.
[1]: Within the SBuild session, the binary package is correct:
=====
$ dpkg-deb --contents python3-jaraco.logging_3.4.0-1~pre1_all.deb | cut --characters=49-
./
./debian/
./debian/python3-jaraco-logging/
./debian/python3-jaraco-logging/usr/
./debian/python3-jaraco-logging/usr/lib/
./debian/python3-jaraco-logging/usr/lib/python3.14/
./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/
./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco/
./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco/logging.py
./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco_logging-3.4.0.dist-info/
./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco_logging-3.4.0.dist-info/INSTALLER
./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco_logging-3.4.0.dist-info/METADATA
./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco_logging-3.4.0.dist-info/licenses/
./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco_logging-3.4.0.dist-info/licenses/LICENSE
./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco_logging-3.4.0.dist-info/top_level.txt
./usr/
./usr/share/
./usr/share/doc/
./usr/share/doc/python3-jaraco.logging/
./usr/share/doc/python3-jaraco.logging/changelog.Debian.gz
./usr/share/doc/python3-jaraco.logging/changelog.gz
./usr/share/doc/python3-jaraco.logging/copyright
=====
[2]: Within the SBuild session, AutoPkgTest fails because the test
environment does not have the Python packages nor its test suite:
=====
autopkgtest [16:31:49]: test pybuild-autopkgtest: pybuild-autopkgtest
autopkgtest [16:31:49]: test pybuild-autopkgtest: [-----------------------
pybuild-autopkgtest
I: pybuild base:385: cd /tmp/autopkgtest.spiuJG/autopkgtest_tmp/build; python3.14 -m pytest
============================= test session starts ==============================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /tmp/autopkgtest.spiuJG/autopkgtest_tmp/build
configfile: pytest.ini
collected 0 items
============================ no tests ran in 0.00s =============================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=5: cd /tmp/autopkgtest.spiuJG/autopkgtest_tmp/build; python3.14 -m pytest
pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p 3.14 --parallel= returned exit code 13
make: *** [/tmp/hssxY92bd5/run:4: pybuild-autopkgtest] Error 25
pybuild-autopkgtest: error: /tmp/hssxY92bd5/run pybuild-autopkgtest returned exit code 2
autopkgtest [16:31:50]: test pybuild-autopkgtest: -----------------------]
autopkgtest [16:31:51]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - -
pybuild-autopkgtest FAIL non-zero exit status 25
autopkgtest [16:31:51]: - - - - - - - - - - running shell - - - - - - - - - -
# ls -l /tmp/autopkgtest.spiuJG/autopkgtest_tmp/build/
total 8
-rw-r--r-- 1 unshare users 1155 Oct 11 05:31 pyproject.toml
-rw-r--r-- 1 unshare users 584 Oct 11 05:31 pytest.ini
#
=====
--
\ âMembers of the general public commonly find copyright rules |
`\ implausible, and simply disbelieve them.â âJessica Litman, |
_o__) _Digital Copyright_ |
Ben Finney
Re: AutoPkgTest fails to copy the Python files to test environment
Author: Jeroen Ploemen
Date: Mon, 12 Oct 2026 07:00
Date: Mon, 12 Oct 2026 07:00
54 lines
4217 bytes
4217 bytes
--Sig_/CT9vnWv5o43SZTjKFnAiSZ_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 12 Oct 2026 11:44:23 +1100 Ben Finney <bignose@debian.org> wrote: > What is failing, evidently, is AutoPkgTest's step of copying the > Python package and test files, into its test environment. From > there, zero test cases are found, and the step fails. IIRC "testsuite: autopkgtest-pkg-pybuild" cannot handle doctests automagically, so you probably need a custom test setup. The tests are inside the module which is already installed into the global Python namespace and can be used right there. See jaraco.text and jaraco.context for ways to hack things into place. Neither will win a beauty contest, but it works. If you don't need to insert testdata or a conftest file, that would simplify things further and you might even be able to get away with just running "$py -m pytest --doctest-modules /usr/lib/python3/etc..." directly. > [1]: Within the SBuild session, the binary package is correct: > [...] > ./debian/python3-jaraco-logging/usr/lib/python3.14/dist-packages/jaraco/l= ogging.py This path, with the Python version recorded in it, is wrong (the lintian run on the salsa CI already caught that too). FWIW: I've never come across a simple module package that needed a d/*.install file when using pybuild. --Sig_/CT9vnWv5o43SZTjKFnAiSZ_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEd8lhnEnWos3N8v+qQoMEoXSNzHoFAmrMhHcACgkQQoMEoXSN zHoszRAAvQxUeb033ABRKLh1/Gbu8gcbxhRUJVBBpc5sM4dESyjEbobq9QIlXsWt PGc0Gq9GstVqnnEkBLegJgI9G50c7MjURW6WTTFzp/cwYD0RURlF6MEf6gUHR2HC FFirAF7rTPRyaw4GwIHx1Y8zkY6HQhoV+IRg1hpDOKTWU2zf13TqE2eS/eJtPG1g 2w1rCgaq6Oh9nUcOWgdut8WG0LlVslsUfZwoQkHAZCbbWjtePpMAFzxhDhbGNeVK TSZPsxUfs2bdMx3inRV9cjWC7CPH1YaEvDJ0j8NSWRoPubOmq7ofDeUELvXfp1PN CdDiZChAF7LS59enbcn0sCvH1htpn4TSOklER55crVckkvNvaPrnxEeJdieciHoU +f2G0NGPnee8wvweXG/JfJYtzzOxBegp+j7+Fi9h5DCaYf+8fIToTJxvM8Ise3U3 dPNqeyIejyzzRmpbGILUuv2vUllAVdyLvVKtSbS6Tot50LEgIkLRaAEPFIM3DUTf Gmyh1firNsM1+HtqeGSRzArcMUbruYrzsO8I0IZZMfRljhc7Fkbne0uySg+65k8U shDbDygzCP7+62VtwNDy4xMn4oCYUSp2VcgH+u4nW4kM7hdcqve9oKJRokoKj1oa +Ye8XHbIhHrAc3jT2/Zci2BPWd/hT/DsCpoJ0v0W9eNh5Qc6AHY= =n8zp -----END PGP SIGNATURE----- --Sig_/CT9vnWv5o43SZTjKFnAiSZ_--
Re: AutoPkgTest fails to copy the Python files to test environment
Author: Andrey Rakhmatullin
Date: Mon, 12 Oct 2026 07:40
Date: Mon, 12 Oct 2026 07:40
54 lines
3894 bytes
3894 bytes
--A4sz40SSTv3Z3eUA Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 12, 2026 at 11:44:23AM +1100, Ben Finney wrote: >I'm attempting to enable AutoPkgTest for a Python package [0], via the >control field =E2=80=9CTestsuite: autopkgtest-pkg-pybuild=E2=80=9D. The bi= nary package >builds successfully [1], but the AutoPkgTest run does not include any of >the Python package and so runs no tests [2]. I think you need to point autopkgtest to the installed file explicitly=20 (you either failed to mention that the only tests in the package are doctes= ts in=20 the actual module or missed that fact yourself). >What is failing, evidently, is AutoPkgTest's step of copying the Python >package and test files, into its test environment. From there, zero test >cases are found, and the step fails. autopkgtest doesn't copy the package source into its test environment,=20 because by design it uses the installed package, not its source. It=20 doesn't copy test files for you because there aren't any. >[2]: Within the SBuild session, AutoPkgTest fails because the test >environment does not have the Python packages nor its test suite: There is no separate test suite. --=20 WBR, wRAR --A4sz40SSTv3Z3eUA Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmrMjGoACgkQM2L3AxpJ kuEREA/7Bh+McWGSyOCBiH5EUx2fBMofTYz53dm2nGx31mNfcI+UMSh7Be+sqnvy uBmINOmfmi1/MHP71aiekjUPrlSNGFUjnBw6zEQ7or60LvLMk4YHHxygOz/g7KXP jZufwPrD3zqqVl3eUCsnoH9BH526QXwz83zQXR1PEvJGzhjHh3ETtvikune0N4v2 csyP/zfxcxFhfJL8Vl0o4kQo/TTrJqPib/rgOmSIhEzyBl4Bp7dFs5gsgPfFaSZo Kh1S3FPsaNgoYidOEXRHinfPsNJ1+moTXyIezh7b7OSACuylPyICmdBdrNDm4qOm VRm+qksn0bMn2PeL8DyJMq/zI84ihIfIBQaNX1aRtrUuVm1ape986Cw8ngdCKTBI BmfyufDpsoR8iLLp4IBCTFTb1uGJWgxEnVGsoUmJ4OF1NZhuyb8vjT8cqkEHZ+xV mZDZPfbUEZF7t02Kv50nO6E0+dObchOMwepDZZ2HfoROWmMHCk2s6anbSvG6GxLs gkSxWUpllOAOF/fUrxK4hYm6dBGKI/wrXB7uBWrluPVwPvG+VClWR/va5JNTt7nC +6JU3L0vYx6+SgpAtbmHNPidfNlU1kfrqqGzt1krwDxVbUl7XEi2tFjZel9XGsol /XKHMwjCuFCQQLD26sSS0iz1z1YZ1Nio8YOI7Bly+EKXblHgn8g= =ICn9 -----END PGP SIGNATURE----- --A4sz40SSTv3Z3eUA--
AutoPkgTest to run Doctest on installed Python modules (was: AutoPkgTest fails to copy the Python files to test environment)
Author: Ben Finney
Date: Tue, 13 Oct 2026 09:50
Date: Tue, 13 Oct 2026 09:50
71 lines
4917 bytes
4917 bytes
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Andrey Rakhmatullin <wrar@debian.org> writes: > I think you need to point autopkgtest to the installed file explicitly > (you either failed to mention that the only tests in the package are > doctests in the actual module or missed that fact yourself). Thank you both; yes, I knew that Doctest expects to find and read the Python module files directly, and that AutoPkgTest expects to test the installed Python package. But I had not made the connection between them, that they are therefore in conflict. This makes sense of the test suite failure. Jeroen Ploemen <jcfp@debian.org> writes: > IIRC "testsuite: autopkgtest-pkg-pybuild" cannot handle doctests > automagically, so you probably need a custom test setup. That's a disappointment; I hope that can be rectified in a general way for all Debian Python packages that have Doctests to run. But for now, yes I agree that a custom AutoPkgTest suite is the most direct way to get it all working. > See jaraco.text and jaraco.context for ways to hack things into > place. Neither will win a beauty contest, but it works. Thank you, I have looked at those and adapted some other custom AutoPkgTest suites I had written. I now have a custom AutoPkgTest that looks to the installed Python modules and runs the Doctests found there. It is passing that step now. This has been helpful. Yet I am still interested to know of plans to get a general solution for AutoPkgTest to run Doctest on the installed Python modules. =2D-=20 \ =E2=80=9CI must have a prodigious quantity of mind; it takes me as m= uch | `\ as a week sometimes to make it up.=E2=80=9D =E2=80=94Mark Twain, _Th= e Innocents | _o__) Abroad_ | Ben Finney <bignose@debian.org> --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEXfQ3Ydd+6BMR2Ur+B+hY8vqvVjgFAmrN/MITHGJpZ25vc2VA ZGViaWFuLm9yZwAKCRAH6Fjy+q9WOHILD/9XZIpGmg8vCQ8Q6YL0r/8ya/JGw+cr fG6X/yu1Zzse5ZPxSmRsjsl9s6DBfiC3n3E/SohF8OJYNu+tw7LQNGk/FqWx//dp dmhqEIb7U/j7hBBFiSjkIh5OcXVc6meC6h1I8OUvxV+BKTz2FjZGV+5iZ7Nhe+vC N+vEZI4FpjChvJ+cByUAL+PaEDnhK6m096ktDeu31KKub0kOB1/JzPuJ0DCHVm2F TF3LnrYnecADnXXfi8W/HqidVXAefmPAzWe91ScWPAyZBm0KfMOyrPQjoxzlXj74 CulasPuHIc4jgLlwcOL3jT0Bfsa8EQCtdmjP2cbXWyrFMK3Yi83ZkvAgNWPTH5Oe JQOpytB9V4b3NsFv2tWMHd3bkRE9njS+PxOCX7G4CTPT25y1ucX4m3/ZbrAA3DY7 fhvnMUVbNKPtpyvXdvY3o6D/1yyKuRUOHTWg5X+ucbL1FRPs6L6JYMdtm3rj2m+r dk64081Z6aF1coEi4mMSaPorwaGXHpKvgLN9Eaq2DnImtXwgmCJhuTAQE8GMM/dZ RC/vpPTES1HUv8MKbcvOkJgJhBMkYNZUqPhatYM7SrvMY8+GNmyxkypcD3V/HMp5 4TqTwBfNK0o8qzjzL4eYfOg05RlInFviV+iW0xB1BNuokYeunCGLRgU5tEgfYI+K BienQ+QnxXEDuA== =Mroh -----END PGP SIGNATURE----- --=-=-=--
Re: AutoPkgTest to run Doctest on installed Python modules
Author: Stuart Prescott
Date: Wed, 14 Oct 2026 05:50
Date: Wed, 14 Oct 2026 05:50
44 lines
6883 bytes
6883 bytes
Hi Ben >> IIRC "testsuite: autopkgtest-pkg-pybuild" cannot handle doctests >> automagically, so you probably need a custom test setup. > > That's a disappointment; I hope that can be rectified in a general way > for all Debian Python packages that have Doctests to run. But for now, > yes I agree that a custom AutoPkgTest suite is the most direct way to > get it all working. Telling autopkgtest to run the tests against the module as installed is enough; the following works both at build time and at autopkgtest time: export PYBUILD_TEST_ARGS = --pyargs jaraco.logging If you're polishing things in there, there are some left-overs from your previous attempts: - PYBUILD_AFTER_TEST is unnecessary now that you don't have the manual d/*install step, so you can lose a few lines from d/rules. - PYBUILD_SYSTEM is unneeded because that is explicitly what the build dependency on pybuild-plugin-pyproject asks for already. - PYBUILD_INSTALL_ARGS is unneeded (it does nothing in pybuild's pyproject-based workflow) - --test-pytest is unneeded as the explicit build-dep on python3-pytest means the same thing - oldoldstable also satisfies the version constraint for python3-pytest, so unless you are particularly keen on porting to some ancient LTS (that won't have a new enough python3 for this package anyway), you can skip that too. Obviously none of these things are importantâŚ, but deleting things now might save a future someone wondering why they were added or prevent them propagating into other packages via copy+paste. It also inches us towards declarative packaging by having much less in d/rules. cheers Stuart -- Stuart Prescott http://www.nanonanonano.net/ stuart@nanonanonano.net Debian Developer http://www.debian.org/ stuart@debian.org GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
Re: AutoPkgTest to run Doctest on installed Python modules
Author: Ben Finney
Date: Wed, 14 Oct 2026 06:50
Date: Wed, 14 Oct 2026 06:50
65 lines
5184 bytes
5184 bytes
Stuart Prescott <stuart@debian.org> writes: > Telling autopkgtest to run the tests against the module as installed > is enough; the following works both at build time and at autopkgtest > time: > > export PYBUILD_TEST_ARGS = --pyargs jaraco.logging Thanks; that is a command-line option for PyTest that instructs it to import modules and find test cases on them. Okay, that allows removing entirely the custom test suite for AutoPkgTest, and allowing it to run just PyTest as specified. > - PYBUILD_AFTER_TEST is unnecessary now that you don't have the manual > d/*install step, so you can lose a few lines from d/rules. Done, thank you. Is this because PyBuild (or something else?) does the cleanup of PyTest temporary cruft? > - PYBUILD_SYSTEM is unneeded because that is explicitly what the build > dependency on pybuild-plugin-pyproject asks for already. The âdhâ option â--buildsystem pybuildâ also specifies this. Is that what instructs PyBuild correctly? Or is that option also superfluous? > - PYBUILD_INSTALL_ARGS is unneeded (it does nothing in pybuild's > pyproject-based workflow) Because the âpyprojectâ build system (instructing it to use a PEP %!& + PEP 518 build system interface) causes PyBuild to ignore the â--install-argsâ option? > - --test-pytest is unneeded as the explicit build-dep on > python3-pytest means the same thing So, if hypothetically another source package needs to declare âBuild-Depends: python3-pytestâ, but *not* the â--test-pytestâ behaviour, what then? We need an explicit â--test-customâ or the like? > - oldoldstable also satisfies the version constraint for > python3-pytest, so unless you are particularly keen on porting to > some ancient LTS (that won't have a new enough python3 for this > package anyway), you can skip that too. Done, thank you. (I had attempted to specify the complex dependency from upstream, âpytest >= 6, != 8.1.*â. But it was too much trouble translating that to Debian dependency relationships, and anyway no Debian release has any of the problematic PyTest versions.) > Obviously none of these things are importantâŚ, but deleting things now > might save a future someone wondering why they were added or prevent > them propagating into other packages via copy+paste. It also inches us > towards declarative packaging by having much less in d/rules. I'm definitely in favour of this. I just wish the facts of Python packaging in Debian were better kept up to date, maybe in the wiki, and not reliant on stumbling to error and knowledge locked away in people's minds. There's a lot of outdated advice written out there. -- \ âNever do anything against conscience even if the state demands | `\ it.â âAlbert Einstein | _o__) | Ben Finney
Re: AutoPkgTest to run Doctest on installed Python modules
Author: Ben Finney
Date: Wed, 14 Oct 2026 23:30
Date: Wed, 14 Oct 2026 23:30
23 lines
3208 bytes
3208 bytes
Ben Finney <bignose@debian.org> writes: > Stuart Prescott <stuart@debian.org> writes: > > > - PYBUILD_INSTALL_ARGS is unneeded (it does nothing in pybuild's > > pyproject-based workflow) > > Because the âpyprojectâ build system (instructing it to use a PEP %!& + > PEP 518 build system interface) causes PyBuild to ignore the > â--install-argsâ option? Despite my mood at the time being one to curse, that was not intended to be an expletive âPEP %!& + PEP 518â, but should instead have been just âPEP 517 + PEP 518â. I'm still seeking to know, when âPYBUILD_INSTALL_ARGSâ is not specified, what specific tool knows to do this job, and under what condition? -- \ âPinky, are you pondering what I'm pondering?â âI think so, | `\ Brain, but I find scratching just makes it worse.â â_Pinky and | _o__) The Brain_ | Ben Finney
Re: AutoPkgTest to run Doctest on installed Python modules
Author: Stuart Prescott
Date: Thu, 15 Oct 2026 01:30
Date: Thu, 15 Oct 2026 01:30
81 lines
9004 bytes
9004 bytes
Hi Ben On 14/10/2026 17:48, Ben Finney wrote: >> - --test-pytest is unneeded as the explicit build-dep on >> python3-pytest means the same thing > So, if hypothetically another source package needs to declare > âBuild-Depends: python3-pytestâ, but*not* the â--test-pytestâ > behaviour, what then? We need an explicit â--test-customâ or the like? yes, or a declarative PYBUILD_TEST_CUSTOM and then set PYBUILD_TEST_ARGS to make it do what is needed. See python-pyqtgraph as an example to run pytest within xvfb. https://sources.debian.org/src/python-pyqtgraph/0.14.0-8/debian/rules This overlaying of command line options and environment variables is alluded to in the man page pybuild(1) ... I concur with your comments about improving our documentation as I frequently find myself either looking at codesearch.d.n to find existing practice, or pybuild's code (which in the folding together of cli and env vars is clever... but a simple piece of work to trace through). On 15/10/2026 10:25, Ben Finney wrote: >>> - PYBUILD_INSTALL_ARGS is unneeded (it does nothing in pybuild's >>> pyproject-based workflow) >> >> Because the âpyprojectâ build system (instructing it to use a PEP %!& + >> PEP 518 build system interface) causes PyBuild to ignore the >> â--install-argsâ option? > > Despite my mood at the time being one to curse, that was not intended to > be an expletive âPEP %!& + PEP 518â, but should instead have been just > âPEP 517 + PEP 518â. :) I did assume an errant shift key > I'm still seeking to know, when âPYBUILD_INSTALL_ARGSâ is not specified, > what specific tool knows to do this job, and under what condition? Old-style packages were using pybuild's distutils plugin that ran `python3.XY setup.py install --lots-of-args` (and also fed it a config file) in an effort to get it to copy the files into the staging directory. Mostly that just worked and no additional options were needed, but because setup.py allows upstream to anything in code, sometimes there were special/weird setup.py files that needed additional options to make them do the right thing. PYBUILD_INSTALL_ARGS was for those exceptions. The modern PEP517+friends workflow for pybuild is to use the pyproject plugin, which does the build by calling `python3.XY -m build` to build a wheel, and then uses the `installer` module (from python3-installer) to unpack that wheel into the .pybuild/⌠staging directory. Going via the wheel has the nice property for us of isolating build process from the install process - the build can do whatever it needs to, but we always get a .whl file and we can then work with that with code that we entirely control and no setup.py in the way. The `installer` module is basically just unzipping the wheel (it also makes entry-point scripts). However, it's not *just* unzipping - it has separately configurable destinations for modules, data, scripts into the desired file system schema. Your previous PYBUILD_INSTALL_ARGS was trying to set a schema to match what Debian needs but that's unneeded here because we're not going via unmanaged code in setup.py, pybuild calls installer with the correct schema config directly. So yes, pybuild's pyproject plugin has no use for --install-args / PYBUILD_INSTALL_ARGS and just ignores any value for it. (see pybuild's dhpython/build/plugin_pyproject.py for the gory details) regards Stuart -- Stuart Prescott http://www.nanonanonano.net/ stuart@nanonanonano.net Debian Developer http://www.debian.org/ stuart@debian.org GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
Automated cleanup after running test suite (was: AutoPkgTest to run Doctest on installed Python modules)
Author: Ben Finney
Date: Thu, 15 Oct 2026 04:20
Date: Thu, 15 Oct 2026 04:20
19 lines
3043 bytes
3043 bytes
Ben Finney <bignose@debian.org> writes: > Stuart Prescott <stuart@debian.org> writes: > > > - PYBUILD_AFTER_TEST is unnecessary now that you don't have the > > manual d/*install step, so you can lose a few lines from d/rules. > > Done, thank you. Is this because PyBuild (or something else?) does the > cleanup of PyTest temporary cruft? What is it that does the automated cleanup after the test suite run, and how does it know exactly what to remove? Can it be overridden with different instructions, or different files to remove? -- \ Fry: âTake that, poor people!â Leela: âBut Fry, youâre not | `\ rich.â Fry: âNo, but I will be someday, and then people like | _o__) me better watch out!â âFuturama | Ben Finney
Re: Automated cleanup after running test suite (was: AutoPkgTest to run Doctest on installed Python modules)
Author: Andrey Rakhmatullin
Date: Thu, 15 Oct 2026 07:20
Date: Thu, 15 Oct 2026 07:20
44 lines
3842 bytes
3842 bytes
--1RefiOkduUbHbsUb Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 15, 2026 at 03:14:44PM +1100, Ben Finney wrote: >> > - PYBUILD_AFTER_TEST is unnecessary now that you don't have the >> > manual d/*install step, so you can lose a few lines from d/rules. >> >> Done, thank you. Is this because PyBuild (or something else?) does the >> cleanup of PyTest temporary cruft? > >What is it that does the automated cleanup after the test suite run, and >how does it know exactly what to remove? Can it be overridden with >different instructions, or different files to remove? I think it's more simple than that: pybuild runs tests in a temporary dir,= =20 and it probably just removes the dir afterwards. --=20 WBR, wRAR --1RefiOkduUbHbsUb Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmrQfPkACgkQM2L3AxpJ kuH7IA//cFTxyysml3tYtIiyuIccf+ii48Cr66gJPlB2SA0GAtmnaiUWRdmDW9CW nOCN+wW4J9emRBxD7Nz5Sclu5mKgYr/f8Dy5w46ARQWlYi3uovwKFdzgf+phR646 DqZUsczmMzPfgJ3qUhAnC4DODQmK1R3Tth4E6OjDFFbtB0h/CKA0iQS+a2SrMT8z HszVo3048fI/O5RdHk8gczgeUDQNDyJenPCNkMf2OMtVPFzCdIq9/LvjI0fLCoCb 7O9DrQr5ooW+/VfXJ4mQFqIso6A/gjij7SAkh4fB3tSG3uqtAbxJ8FcSbdtQ4W8z BmnkJ6JRRG1ci6rkzopJO8XpUY6yATcSsWFAKkP5U2VIvWMTMVt0X+uVNE9q471M s+8BWZJzfrB/zqeQP0zvbuYX2a8T+udMHZoMVoEAq+8fZjHGpoHOKHsActpvHCLw yNWnU8o3l+kmGMF/LA54waEiH8IdwHpsdjt/gXNDedAWbevsuDbSreusODfIUr0O DKb32xvsfgcjCsjATgOoqHSMqpwB9wCTTzPAb5gP3GKaXsptB5HNgsK1UEa7oswf j1n5B7D0VDIKAwdB1GiQ4jhVRRfp1anC3+PXwNvTaZbGZ0vKXMuY/nYpI4WOD/6n njPa2zhm5MRT9ohM0gC1jHq5Y2biJ6qFbtvfkev3HPm1zZSdUBo= =D8T7 -----END PGP SIGNATURE----- --1RefiOkduUbHbsUb--
Re: Automated cleanup after running test suite
Author: Rebecca N. Palmer
Date: Thu, 15 Oct 2026 19:00
Date: Thu, 15 Oct 2026 19:00
7 lines
3736 bytes
3736 bytes
I have sometimes had files that should have been cleaned up either get left behind in the source tree, or actually get installed into the binary package. However, I'm not sure if I've seen this in a standard (not PYBUILD_SYSTEM=custom) pybuild-pyproject package. My usual solution is to simply 'rm' the files in question: see pandas and statsmodels for examples.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads