Karsten Schöke pushed to branch master at Debian Med / pyranges
Commits: 7fb9ff90 by Karsten Schöke at 2026-11-04T09:16:56+01:00 d/rules: fix tests on non 64-bit archs. - - - - - c479d1e6 by Karsten Schöke at 2026-11-04T09:26:58+01:00 Update changelog for 0.1.5+ds-2 release - - - - - 3 changed files: - debian/README.source - debian/changelog - debian/rules Changes: ===================================== debian/README.source ===================================== @@ -16,3 +16,17 @@ They can be generated back with the following commands: These commands are also being run in debian/rules since these binaries are needed for testing. -- Nilesh Patra <[email protected]> Sun, 21 Jun 2020 20:13:10 +0530 + + 32-bit architectures +-------------------- +The upstream test suite fails on 32-bit architectures (see #1103074). Tests +are therefore not executed there: debian/rules replaces the pytest arguments +with --collect-only when DEB_HOST_ARCH is in the 32-bit list. Test modules are +still imported, so import-time errors (missing modules, missing package data) +remain visible in the build log, but no test is run. + +The check is done on PYBUILD_TEST_ARGS rather than in override_dh_auto_test +because autopkgtest's pybuild template invokes pytest directly, bypassing the +dh sequencer. + + -- Karsten Schöke <[email protected]> Wed, 04 Nov 2026 07:41:45 +0100 ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +pyranges (0.1.5+ds-2) unstable; urgency=medium + + * Team Upload + * d/rules: fix tests on non 64-bit archs. + + -- Karsten Schöke <[email protected]> Wed, 04 Nov 2026 09:25:36 +0100 + pyranges (0.1.5+ds-1) unstable; urgency=medium * Team Upload ===================================== debian/rules ===================================== @@ -3,7 +3,6 @@ # output every command that modifies files on the build system. #export DH_VERBOSE = 1 include /usr/share/dpkg/buildopts.mk -include /usr/share/dpkg/architecture.mk export PYBUILD_NAME=pyranges export PYBUILD_TEST_ARGS=-n $(DEB_BUILD_OPTION_PARALLEL) \ -k "not tutorial_doctest" @@ -18,11 +17,13 @@ execute_after_dh_auto_build: cat debian/missing-sources/control.sam| samtools view -Sb - > pyranges/example_data/control.bam samtools index pyranges/example_data/control.bam pyranges/example_data/control.bam.bai -ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) -ifneq ($(DEB_BUILD_ARCH_BITS),64) -override_dh_auto_test: - @echo "W: tests skipped on non-64-bit due to #1103074." -endif +# The upstream test suite fails on 32-bit architectures, see #1103074. +# This must take effect for dpkg-buildpackage (dh_auto_test) *and* for +# autopkgtest, where the pybuild template calls pytest directly without the +# dh sequencer - an override_dh_auto_test target would be ignored there. +# PYBUILD_TEST_ARGS is read by pybuild itself, so it reaches both. +ifneq (,$(filter $(DEB_HOST_ARCH), i386 armhf armel mipsel powerpc)) +export PYBUILD_TEST_ARGS_python3 = --collect-only endif execute_after_dh_install: View it on GitLab: https://salsa.debian.org/med-team/pyranges/-/compare/0229c895d2e6b2de0ce7aa3ebeaaec51b40e3ad9...c479d1e642fdaba224e0162b256f882a8e611a66 -- View it on GitLab: https://salsa.debian.org/med-team/pyranges/-/compare/0229c895d2e6b2de0ce7aa3ebeaaec51b40e3ad9...c479d1e642fdaba224e0162b256f882a8e611a66 You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
