#1153727 geoalchemy2: Please test against all supported Python interpreters

#1153727#5
Date:
2026-11-11 10:47:54 UTC
From:
To:
Dear Maintainer,

The build-time and autopkgtest tests for geoalchem2 only test against
the current default Python interpreter and not against all supported
interpreters (despite using python3-all as the dependency to bring in
all supported interpreters).

The attached patch:

- removes manual handling of test files from d/rules, using the
  automated handling of pybuild instead (incidentally, this would also
  have fixed #1134667, #1151473; I wrote this as those bugs were still
  open after the 0.21.0~rc0-1 upload).

- tells pybuild to run the test script, using its {interpreter}
  placeholder to get pybuild to run it in a loop with each supported
  interpreter in turn. By asking pybuild to run the tests, they are run
  against the built module in .pybuild/... and not against the unpacked
  upstream source as is currently mistakenly done.

- it also removes the manual deletion of 'build' and 'tests' directories
  as they are now automatically managed by pybuild.

There is a remaining task to also run the tests against each supported
interpreter in the autopkgtests too. This can either be done in a loop
over `py3versions -s` as is commonly scripted for Python packages. With
pybuild running the tests, it should also be possible to use pybuild to
run the autopkgtests with 'Testsuite: autopkgtest-pkg-pybuild' in
d/control (untested - I stopped working on this when I realised that
you'd already fixed #1134667, #1151473).

regards
Stuart