Control: tags 1135043 + patch Control: tags 1135043 + pending Dear maintainer,
I've prepared an NMU for python-pyeclib (versioned as 1.7.0-2.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should cancel it. cu Adrian
diffstat for python-pyeclib-1.7.0 python-pyeclib-1.7.0 changelog | 10 ++++++++++ control | 2 +- tests/control | 6 ++++-- tests/encode-decode.py | 35 +++++++++++++---------------------- 4 files changed, 28 insertions(+), 25 deletions(-) diff -Nru python-pyeclib-1.7.0/debian/changelog python-pyeclib-1.7.0/debian/changelog --- python-pyeclib-1.7.0/debian/changelog 2026-03-27 14:47:18.000000000 +0200 +++ python-pyeclib-1.7.0/debian/changelog 2026-06-09 22:41:20.000000000 +0300 @@ -1,3 +1,13 @@ +python-pyeclib (1.7.0-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix the autopkgtest. (Closes: #1135043) + * Simplify libisal2 autopkgtest handling, also run the tests on + more architectures. + * Build depend on libisal-dev on more architectures. + + -- Adrian Bunk <[email protected]> Tue, 09 Jun 2026 22:41:20 +0300 + python-pyeclib (1.7.0-2) unstable; urgency=medium * Uploading to unstable. diff -Nru python-pyeclib-1.7.0/debian/control python-pyeclib-1.7.0/debian/control --- python-pyeclib-1.7.0/debian/control 2026-03-27 14:47:18.000000000 +0200 +++ python-pyeclib-1.7.0/debian/control 2026-06-09 22:41:20.000000000 +0300 @@ -8,7 +8,7 @@ debhelper-compat (= 13), dh-python, liberasurecode-dev, - libisal-dev [amd64 kfreebsd-amd64 arm64], + libisal-dev [alpha amd64 arm64 hurd-amd64 loong64 ppc64 ppc64el riscv64 s390x sparc64], libjerasure-dev, python3-all-dev, python3-pytest, diff -Nru python-pyeclib-1.7.0/debian/tests/control python-pyeclib-1.7.0/debian/tests/control --- python-pyeclib-1.7.0/debian/tests/control 2026-03-27 14:47:18.000000000 +0200 +++ python-pyeclib-1.7.0/debian/tests/control 2026-06-09 22:31:02.000000000 +0300 @@ -17,12 +17,14 @@ Test-Command: set -e ; cp debian/tests/encode-decode.py "$AUTOPKGTEST_TMP" ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py encode-decode.py isa_l_rs_vand ; done Depends: - libisal2 [amd64 kfreebsd-amd64 arm64], + libisal2, python3-all, python3-pyeclib, +Architecture: !armhf !i386 Test-Command: set -e ; cp debian/tests/encode-decode.py "$AUTOPKGTEST_TMP" ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py encode-decode.py isa_l_rs_cauchy ; done Depends: - libisal2 [amd64 kfreebsd-amd64 arm64], + libisal2, python3-all, python3-pyeclib, +Architecture: !armhf !i386 diff -Nru python-pyeclib-1.7.0/debian/tests/encode-decode.py python-pyeclib-1.7.0/debian/tests/encode-decode.py --- python-pyeclib-1.7.0/debian/tests/encode-decode.py 2026-03-27 14:47:18.000000000 +0200 +++ python-pyeclib-1.7.0/debian/tests/encode-decode.py 2026-06-09 22:40:49.000000000 +0300 @@ -1,29 +1,20 @@ from __future__ import print_function -import platform from pyeclib.ec_iface import ECDriver import sys -# libisal2 is only available for amd64 and arm64 architectures -# Note: platform.machine() was returning 'x86_64' on an i386 machine so we -# also test sys.maxsize. -arch = platform.machine() -is64 = sys.maxsize > 2**32 -if sys.argv[1].startswith('isa_') and (arch != 'x86_64' or not is64) and arch != 'aarch64': - print("Skipping {} test for {} architecture, is64={}".format(sys.argv[1], arch, is64)) -else: - input = b'test' +input = b'test' - # Init - print("init:", end=" ") - ec = ECDriver(k=3, m=3, hd=3, ec_type=sys.argv[1]) - print("OK") +# Init +print("init:", end=" ") +ec = ECDriver(k=3, m=3, ec_type=sys.argv[1]) +print("OK") - # Encode - print("encode:", end=" ") - fragments = ec.encode(input) - print("OK") +# Encode +print("encode:", end=" ") +fragments = ec.encode(input) +print("OK") - # Decode - print("decode:", end=" ") - assert ec.decode(fragments[0:ec.k]) == input - print("OK") +# Decode +print("decode:", end=" ") +assert ec.decode(fragments[0:ec.k]) == input +print("OK")

