Karsten Schöke pushed to branch master at Debian Med / python-skbio
Commits: 7a723aaf by Karsten Schöke at 2026-10-12T07:46:23+02:00 d/tests: automaticly generate new testfiles post import-orig - - - - - 4 changed files: - debian/README.autopkgtest - debian/changelog - + debian/gbp-update-pybuild-testfiles.sh - debian/gbp.conf Changes: ===================================== debian/README.autopkgtest ===================================== @@ -28,10 +28,18 @@ writable virtual overlay inside `debian/rules` during `PYBUILD_AUTOPKGTEST`: - Maintenance Note: The `debian/pybuild.testfiles` manifest must contain a complete list of all test files and associated data resources. It can be fully re-generated - from the root of the source tree using the following command: + AUTOMATICALLY and in full on every upstream import by the gbp import-orig + --postimport hook (`debian/gbp.conf` → `postimport = + debian/gbp-update-pybuild-testfiles.sh`), which also commits the result. + Manual equivalent (in case the hook is not configured on a machine): find skbio -type f -path "*/tests/*" -printf '%p %p\n' | sort > debian/pybuild.testfiles + WARNING: gbp buildpackage builds in the working tree and will NOT reveal a + stale manifest — only the autopkgtest overlay does (FileNotFoundError on + build/overlay/.../tests/data/...). Never commit a new upstream version + without verifying the manifest was regenerated. + - In the testbed, a temporary `overlay/` directory copies the globally installed, fully-compiled system package from `/usr/lib/python3/dist-packages/skbio`. - The uncompiled testing structures and data files from the source tree are @@ -45,5 +53,5 @@ This guarantees that the tests run cleanly against the true installed Debian package binaries while safely maintaining absolute relative paths for internal data lookup structures. - -- Karsten Schöke <[email protected]> Sat, 15 Aug 2026 16:25:26 +0200 + -- Karsten Schöke <[email protected]> Mon, 12 Oct 2026 07:45:33 +0200 ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +python-skbio (0.7.4-3) UNRELEASED; urgency=medium + + * d/tests: automaticly generate new testfiles post import-orig + + -- Karsten Schöke <[email protected]> Mon, 12 Oct 2026 07:45:33 +0200 + python-skbio (0.7.4-2) unstable; urgency=medium * Team upload. ===================================== debian/gbp-update-pybuild-testfiles.sh ===================================== @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu +FILE=debian/pybuild.testfiles +[ -d skbio ] || { echo "skbio/: fehlt" >&2; exit 0; } +find skbio -type f -path "*/tests/*" -printf '%p %p\n' | sort > "$FILE" +git add "$FILE" +git -c user.name="gbp postimport" -c user.email="gbp-postimport@localhost" \ + commit -q -m "Update debian/pybuild.testfiles: rebuild after new upstream import" -- "$FILE" ===================================== debian/gbp.conf ===================================== @@ -5,3 +5,6 @@ upstream-branch = upstream [pq] patch-numbers = False + +[import-orig] +postimport = debian/gbp-update-pybuild-testfiles.sh View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/commit/7a723aaf4da867e083697106c4e49a2120154d3a -- View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/commit/7a723aaf4da867e083697106c4e49a2120154d3a 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
