1 |
commit: d189e83751dc3b8c219b044d611f22cd6eb75f66 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 16 05:53:40 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 16 05:53:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d189e837 |
7 |
|
8 |
dev-python/abydos: enable py3.10, enable net tests |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/abydos/abydos-0.5.0-r1.ebuild | 7 ++++- |
13 |
.../abydos/files/abydos-0.5.0-fix-py3.10.patch | 33 ++++++++++++++++++++++ |
14 |
2 files changed, 39 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/abydos/abydos-0.5.0-r1.ebuild b/dev-python/abydos/abydos-0.5.0-r1.ebuild |
17 |
index 2af57c2683f..2e016eb2bee 100644 |
18 |
--- a/dev-python/abydos/abydos-0.5.0-r1.ebuild |
19 |
+++ b/dev-python/abydos/abydos-0.5.0-r1.ebuild |
20 |
@@ -3,7 +3,7 @@ |
21 |
|
22 |
EAPI=7 |
23 |
|
24 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
25 |
+PYTHON_COMPAT=( python3_{8..10} ) |
26 |
|
27 |
inherit distutils-r1 |
28 |
|
29 |
@@ -17,6 +17,7 @@ KEYWORDS="amd64 x86" |
30 |
|
31 |
# Requires access to the internet |
32 |
RESTRICT="test" |
33 |
+PROPERTIES="test_network" |
34 |
|
35 |
RDEPEND=" |
36 |
dev-python/deprecation[${PYTHON_USEDEP}] |
37 |
@@ -27,6 +28,10 @@ BDEPEND="test? ( |
38 |
dev-python/nltk[${PYTHON_USEDEP}] |
39 |
)" |
40 |
|
41 |
+PATCHES=( |
42 |
+ "${FILESDIR}/${P}-fix-py3.10.patch" |
43 |
+) |
44 |
+ |
45 |
distutils_enable_tests pytest |
46 |
# Extension error: You must configure the bibtex_bibfiles setting |
47 |
#distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinxcontrib-bibtex |
48 |
|
49 |
diff --git a/dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch b/dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch |
50 |
new file mode 100644 |
51 |
index 00000000000..9cdcf77f467 |
52 |
--- /dev/null |
53 |
+++ b/dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch |
54 |
@@ -0,0 +1,33 @@ |
55 |
+--- a/abydos/distance/_synoname.py |
56 |
++++ b/abydos/distance/_synoname.py |
57 |
+@@ -19,7 +19,7 @@ |
58 |
+ Synoname. |
59 |
+ """ |
60 |
+ |
61 |
+-from collections import Iterable |
62 |
++from collections.abc import Iterable |
63 |
+ |
64 |
+ from deprecation import deprecated |
65 |
+ |
66 |
+--- a/abydos/tokenizer/_q_grams.py |
67 |
++++ b/abydos/tokenizer/_q_grams.py |
68 |
+@@ -19,7 +19,7 @@ |
69 |
+ QGrams multi-set class |
70 |
+ """ |
71 |
+ |
72 |
+-from collections import Iterable |
73 |
++from collections.abc import Iterable |
74 |
+ |
75 |
+ from ._tokenizer import _Tokenizer |
76 |
+ |
77 |
+--- a/abydos/tokenizer/_q_skipgrams.py |
78 |
++++ b/abydos/tokenizer/_q_skipgrams.py |
79 |
+@@ -19,7 +19,7 @@ |
80 |
+ Q-Skipgrams multi-set class |
81 |
+ """ |
82 |
+ |
83 |
+-from collections import Iterable |
84 |
++from collections.abc import Iterable |
85 |
+ from itertools import combinations |
86 |
+ |
87 |
+ from ._tokenizer import _Tokenizer |