Control: tags 1005145 + patch Control: tags 1005145 + pending Dear maintainer,
I've prepared an NMU for oz (versioned as 0.17.0-5.1) and uploaded it to DELAYED/14. Please feel free to tell me if I should cancel it. cu Adrian
diff -Nru oz-0.17.0/debian/changelog oz-0.17.0/debian/changelog --- oz-0.17.0/debian/changelog 2021-08-11 19:06:44.000000000 +0300 +++ oz-0.17.0/debian/changelog 2022-05-26 18:24:14.000000000 +0300 @@ -1,3 +1,11 @@ +oz (0.17.0-5.1) unstable; urgency=low + + * Non-maintainer upload. + * Upload to unstable. + * Add fix for Python 3.10 compatibility. (Closes: #1005145) + + -- Adrian Bunk <b...@debian.org> Thu, 26 May 2022 18:24:14 +0300 + oz (0.17.0-5) experimental; urgency=medium * [f99cae8] Use Standards-Version: 4.5.1. diff -Nru oz-0.17.0/debian/patches/0001-ozutil-collections-collections.abc.patch oz-0.17.0/debian/patches/0001-ozutil-collections-collections.abc.patch --- oz-0.17.0/debian/patches/0001-ozutil-collections-collections.abc.patch 1970-01-01 02:00:00.000000000 +0200 +++ oz-0.17.0/debian/patches/0001-ozutil-collections-collections.abc.patch 2022-05-26 18:24:14.000000000 +0300 @@ -0,0 +1,37 @@ +From 2f81e48c478502eca3d228a67f51052201d80639 Mon Sep 17 00:00:00 2001 +From: Dan Bungert <daniel.bung...@canonical.com> +Date: Mon, 7 Feb 2022 14:43:51 -0700 +Subject: ozutil: collections -> collections.abc + +For python 3.10, some items formerly from collections must now be +obtained from collections.abc. This should be backwards compatible. +https://docs.python.org/3.5/library/collections.abc.html#collections.abc.Callable +--- + oz/ozutil.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/oz/ozutil.py b/oz/ozutil.py +index 3a861be..328421b 100644 +--- a/oz/ozutil.py ++++ b/oz/ozutil.py +@@ -19,7 +19,7 @@ + Miscellaneous utility functions. + """ + +-import collections ++import collections.abc + try: + import configparser + except ImportError: +@@ -536,7 +536,7 @@ def copy_modify_file(inname, outname, subfunc): + raise Exception("output filename is None") + if subfunc is None: + raise Exception("subfunction is None") +- if not isinstance(subfunc, collections.Callable): ++ if not isinstance(subfunc, collections.abc.Callable): + raise Exception("subfunction is not callable") + + infile = open(inname, 'r') +-- +2.20.1 + diff -Nru oz-0.17.0/debian/patches/series oz-0.17.0/debian/patches/series --- oz-0.17.0/debian/patches/series 1970-01-01 02:00:00.000000000 +0200 +++ oz-0.17.0/debian/patches/series 2022-05-26 18:24:14.000000000 +0300 @@ -0,0 +1 @@ +0001-ozutil-collections-collections.abc.patch