Control: tags 1131073 + patch Control: tags 1131073 + pending Dear maintainer,
I've prepared an NMU for python-einops (versioned as 0.8.1-1.1) and uploaded it to DELAYED/7. Please feel free to tell me if I should cancel it. cu Adrian
diffstat for python-einops-0.8.1 python-einops-0.8.1 changelog | 8 ++++++++ patches/numpy2.4.patch | 16 ++++++++++++++++ patches/series | 1 + 3 files changed, 25 insertions(+) diff -Nru python-einops-0.8.1/debian/changelog python-einops-0.8.1/debian/changelog --- python-einops-0.8.1/debian/changelog 2025-02-21 01:34:31.000000000 +0200 +++ python-einops-0.8.1/debian/changelog 2026-05-19 22:53:04.000000000 +0300 @@ -1,3 +1,11 @@ +python-einops (0.8.1-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Backport upstream fix for autopkgtest failure with NumPy 2.4. + (Closes: #1131073) + + -- Adrian Bunk <[email protected]> Tue, 19 May 2026 22:53:04 +0300 + python-einops (0.8.1-1) unstable; urgency=medium * New upstream version 0.8.1 diff -Nru python-einops-0.8.1/debian/patches/numpy2.4.patch python-einops-0.8.1/debian/patches/numpy2.4.patch --- python-einops-0.8.1/debian/patches/numpy2.4.patch 1970-01-01 02:00:00.000000000 +0200 +++ python-einops-0.8.1/debian/patches/numpy2.4.patch 2026-05-19 22:53:04.000000000 +0300 @@ -0,0 +1,16 @@ +Description: Fix autopkgtest failure with NumPy 2.4 +Author: Adrian Bunk <[email protected]> +Bug-Debian: https://bugs.debian.org/1131073 +Origin: backport, https://github.com/arogozhnikov/einops/commit/507abe07ec46dc66fee735523e0b0316d58f3cc6 + +--- python-einops-0.8.1.orig/einops/tests/test_layers.py ++++ python-einops-0.8.1/einops/tests/test_layers.py +@@ -142,7 +142,7 @@ def test_reduce_imperative(): + if reduction == "mean": + assert numpy.allclose(grad, grad.min()) + if reduction in ["max", "min"]: +- assert numpy.all(numpy.in1d(grad, [0, 1])) ++ assert numpy.all(numpy.isin(grad, [0, 1])) + assert numpy.sum(grad) > 0.5 + + diff -Nru python-einops-0.8.1/debian/patches/series python-einops-0.8.1/debian/patches/series --- python-einops-0.8.1/debian/patches/series 2025-02-21 01:28:14.000000000 +0200 +++ python-einops-0.8.1/debian/patches/series 2026-05-19 22:53:04.000000000 +0300 @@ -1 +1,2 @@ python-to-python3.patch +numpy2.4.patch

