Dear maintainer,
I've prepared an NMU for onnx (versioned as 1.7.0+dfsg-3.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.
Also filed as:
https://salsa.debian.org/deeplearning-team/onnx/-/merge_requests/1
Regards,
SR
diff -Nru onnx-1.7.0+dfsg/debian/changelog onnx-1.7.0+dfsg/debian/changelog
--- onnx-1.7.0+dfsg/debian/changelog 2021-01-26 01:35:24.0 -0400
+++ onnx-1.7.0+dfsg/debian/changelog 2022-03-26 17:25:56.0 -0400
@@ -1,3 +1,10 @@
+onnx (1.7.0+dfsg-3.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Patch: Python 3.10 support. (Closes: #1004952)
+
+ -- Stefano Rivera Sat, 26 Mar 2022 17:25:56 -0400
+
onnx (1.7.0+dfsg-3) unstable; urgency=medium
* Update patch headers and lintian overrides.
diff -Nru onnx-1.7.0+dfsg/debian/patches/python3.10.diff onnx-1.7.0+dfsg/debian/patches/python3.10.diff
--- onnx-1.7.0+dfsg/debian/patches/python3.10.diff 1969-12-31 20:00:00.0 -0400
+++ onnx-1.7.0+dfsg/debian/patches/python3.10.diff 2022-03-26 17:25:56.0 -0400
@@ -0,0 +1,16 @@
+Description: Python 3.10 support, Iterable moved to collections.abc
+Included upstream in https://github.com/onnx/onnx/commit/beb6fe2291923009f64cddc042bc7a41ae9b7097
+
+Bug-Debian: https://bugs.debian.org/1004952
+
+--- a/onnx/helper.py
b/onnx/helper.py
+@@ -216,7 +216,7 @@ def make_attribute(
+ if doc_string:
+ attr.doc_string = doc_string
+
+-is_iterable = isinstance(value, collections.Iterable)
++is_iterable = isinstance(value, collections.abc.Iterable)
+ bytes_or_false = _to_bytes_or_false(value)
+ # First, singular cases
+ # float
diff -Nru onnx-1.7.0+dfsg/debian/patches/series onnx-1.7.0+dfsg/debian/patches/series
--- onnx-1.7.0+dfsg/debian/patches/series 2020-07-25 02:04:53.0 -0400
+++ onnx-1.7.0+dfsg/debian/patches/series 2022-03-26 17:25:56.0 -0400
@@ -1,2 +1,3 @@
pytest-no-nbval.patch
soversion.patch
+python3.10.diff