[arch-commits] Commit in python-abydos/repos/community-staging-any (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 2 15:29:42 UTC 2021
Date: Thursday, December 2, 2021 @ 15:29:42
Author: felixonmars
Revision: 1062091
archrelease: copy trunk to community-staging-any
Added:
python-abydos/repos/community-staging-any/PKGBUILD
(from rev 1062090, python-abydos/trunk/PKGBUILD)
python-abydos/repos/community-staging-any/python310.patch
(from rev 1062090, python-abydos/trunk/python310.patch)
Deleted:
python-abydos/repos/community-staging-any/PKGBUILD
-----------------+
PKGBUILD | 81 +++++++++++++++++++++++++++++-------------------------
python310.patch | 51 ++++++++++++++++++++++++++++++++++
2 files changed, 95 insertions(+), 37 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-02 15:29:35 UTC (rev 1062090)
+++ PKGBUILD 2021-12-02 15:29:42 UTC (rev 1062091)
@@ -1,37 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkg=abydos
-pkgname=python-${_pkg,,}
-pkgver=0.5.0
-pkgrel=3
-pkgdesc="NLP/IR library for Python"
-arch=(any)
-url="https://github.com/chrislit/abydos"
-license=(GPL3)
-depends=(python-numpy)
-makedepends=(python-setuptools)
-checkdepends=(
- python-pytest
- python-deprecation
- python-nltk
-)
-# 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')
-
-build() {
- cd ${_pkg}-${pkgver}
- python setup.py build
-}
-
-check() {
- cd ${_pkg}-${pkgver}
- rm setup.cfg
- pytest
-}
-
-package() {
- cd ${_pkg}-${pkgver}
- python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
-}
Copied: python-abydos/repos/community-staging-any/PKGBUILD (from rev 1062090, python-abydos/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-02 15:29:42 UTC (rev 1062091)
@@ -0,0 +1,44 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=abydos
+pkgname=python-${_pkg,,}
+pkgver=0.5.0
+pkgrel=4
+pkgdesc="NLP/IR library for Python"
+arch=(any)
+url="https://github.com/chrislit/abydos"
+license=(GPL3)
+depends=(python-numpy)
+makedepends=(python-setuptools)
+checkdepends=(
+ python-pytest
+ python-deprecation
+ python-nltk
+)
+# 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
+ python310.patch)
+sha256sums=('0d46be1a40cfcdcd9ff9d052828c6ea57f5e1e2378373761c963c4a0cfcc5512'
+ '33d7c2d13f7e87c33c6f92caf934b6eb10b9503b1334068aee7b4de6bc2660e3')
+
+prepare() {
+ cd ${_pkg}-${pkgver}
+ patch -Np1 -i ../python310.patch
+}
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ rm setup.cfg
+ pytest
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+}
Copied: python-abydos/repos/community-staging-any/python310.patch (from rev 1062090, python-abydos/trunk/python310.patch)
===================================================================
--- python310.patch (rev 0)
+++ python310.patch 2021-12-02 15:29:42 UTC (rev 1062091)
@@ -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