Control: tags -1 patch

The attached patch resolves the issue.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
diff -Nru python-crank-0.7.2/debian/changelog 
python-crank-0.7.2/debian/changelog
--- python-crank-0.7.2/debian/changelog 2019-10-06 12:11:53.000000000 +0200
+++ python-crank-0.7.2/debian/changelog 2023-01-19 14:29:02.000000000 +0100
@@ -1,3 +1,11 @@
+python-crank (0.7.2-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch to fix FTBFS with python3.11.
+    (closes: #1028731)
+
+ -- Bas Couwenberg <sebas...@debian.org>  Thu, 19 Jan 2023 14:29:02 +0100
+
 python-crank (0.7.2-5) unstable; urgency=medium
 
   [ Ondřej Nový ]
diff -Nru python-crank-0.7.2/debian/patches/python3.11.patch 
python-crank-0.7.2/debian/patches/python3.11.patch
--- python-crank-0.7.2/debian/patches/python3.11.patch  1970-01-01 
01:00:00.000000000 +0100
+++ python-crank-0.7.2/debian/patches/python3.11.patch  2023-01-19 
14:29:01.000000000 +0100
@@ -0,0 +1,25 @@
+Description: Don't used getargspec, removed in python3.11.
+Author: Bas Couwenberg <sebas...@debian.org>
+Forwarded: not-needed
+Bug-Debian: https://bugs.debian.org/1028731
+
+--- a/crank/util.py
++++ b/crank/util.py
+@@ -6,7 +6,7 @@ MIT License
+ """
+ 
+ import collections, sys, string
+-from inspect import getargspec
++from inspect import getfullargspec
+ 
+ __all__ = [
+         'get_argspec', 'get_params_with_argspec', 
'remove_argspec_params_from_params',
+@@ -31,7 +31,7 @@ def get_argspec(func):
+     try:
+         argspec = _cached_argspecs[im_func]
+     except KeyError:
+-        spec = getargspec(im_func)
++        spec = getfullargspec(im_func)
+         argvals = spec[3]
+ 
+         # this is a work around for a crappy api choice in getargspec
diff -Nru python-crank-0.7.2/debian/patches/series 
python-crank-0.7.2/debian/patches/series
--- python-crank-0.7.2/debian/patches/series    2019-10-06 12:11:53.000000000 
+0200
+++ python-crank-0.7.2/debian/patches/series    2023-01-19 14:26:26.000000000 
+0100
@@ -1 +1,2 @@
 remove-broken-test.patch
+python3.11.patch

Reply via email to