[arch-commits] Commit in python-abydos/trunk (PKGBUILD python310.patch)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Dec 2 15:28:00 UTC 2021


    Date: Thursday, December 2, 2021 @ 15:27:59
  Author: foutrelis
Revision: 1062087

Fix build with Python 3.10

Added:
  python-abydos/trunk/python310.patch
Modified:
  python-abydos/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   11 +++++++++--
 python310.patch |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 15:25:54 UTC (rev 1062086)
+++ PKGBUILD	2021-12-02 15:27:59 UTC (rev 1062087)
@@ -17,9 +17,16 @@
 )
 # No tests in PyPi tarballs
 #source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-source=(${url}/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz)
-sha256sums=('0d46be1a40cfcdcd9ff9d052828c6ea57f5e1e2378373761c963c4a0cfcc5512')
+source=(${url}/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz
+        python310.patch)
+sha256sums=('0d46be1a40cfcdcd9ff9d052828c6ea57f5e1e2378373761c963c4a0cfcc5512'
+            '33d7c2d13f7e87c33c6f92caf934b6eb10b9503b1334068aee7b4de6bc2660e3')
 
+prepare() {
+  cd ${_pkg}-${pkgver}
+  patch -Np1 -i ../python310.patch
+}
+
 build() {
   cd ${_pkg}-${pkgver}
   python setup.py build

Added: python310.patch
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-02 15:27:59 UTC (rev 1062087)
@@ -0,0 +1,51 @@
+From 27dee3e61f06be004fb8a3ac31056afa23b0ee90 Mon Sep 17 00:00:00 2001
+From: Julian Gilbey <julian-git at d-and-j.net>
+Date: Thu, 31 Dec 2020 19:47:08 +0000
+Subject: [PATCH] The Iterable ABC is now in collections.abc
+
+(cherry picked from commit 7daef8e050e5367b60c694cb5c578b305eed84be)
+---
+ abydos/distance/_synoname.py     | 2 +-
+ abydos/tokenizer/_q_grams.py     | 2 +-
+ abydos/tokenizer/_q_skipgrams.py | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/abydos/distance/_synoname.py b/abydos/distance/_synoname.py
+index 7fd7edda..f9bc4825 100644
+--- a/abydos/distance/_synoname.py
++++ b/abydos/distance/_synoname.py
+@@ -19,7 +19,7 @@
+ Synoname.
+ """
+ 
+-from collections import Iterable
++from collections.abc import Iterable
+ 
+ from deprecation import deprecated
+ 
+diff --git a/abydos/tokenizer/_q_grams.py b/abydos/tokenizer/_q_grams.py
+index 0e1f82f7..8de2e3fa 100644
+--- a/abydos/tokenizer/_q_grams.py
++++ b/abydos/tokenizer/_q_grams.py
+@@ -19,7 +19,7 @@
+ QGrams multi-set class
+ """
+ 
+-from collections import Iterable
++from collections.abc import Iterable
+ 
+ from ._tokenizer import _Tokenizer
+ 
+diff --git a/abydos/tokenizer/_q_skipgrams.py b/abydos/tokenizer/_q_skipgrams.py
+index 9219873d..36e98c26 100644
+--- a/abydos/tokenizer/_q_skipgrams.py
++++ b/abydos/tokenizer/_q_skipgrams.py
+@@ -19,7 +19,7 @@
+ Q-Skipgrams multi-set class
+ """
+ 
+-from collections import Iterable
++from collections.abc import Iterable
+ from itertools import combinations
+ 
+ from ._tokenizer import _Tokenizer



More information about the arch-commits mailing list