1 |
commit: 8330d6312f5833d9c20b8447d1759501107434e5 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 13 19:05:25 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 13 19:09:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8330d631 |
7 |
|
8 |
dev-python/vdf: support python3_10 |
9 |
|
10 |
Had to be patched to import ABCs from collections.abc rather than |
11 |
collections directly (deprecated since 3.3, originally scheduled to be |
12 |
disallowed in 3.9, eventually stopped working in 3.10), with that taken |
13 |
care of builds, tests and installs fine. |
14 |
|
15 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
16 |
|
17 |
dev-python/vdf/files/vdf-3.3-collections_abc.patch | 11 +++++++++++ |
18 |
dev-python/vdf/vdf-3.3.ebuild | 5 +++-- |
19 |
2 files changed, 14 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/dev-python/vdf/files/vdf-3.3-collections_abc.patch b/dev-python/vdf/files/vdf-3.3-collections_abc.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..22c64760168 |
24 |
--- /dev/null |
25 |
+++ b/dev-python/vdf/files/vdf-3.3-collections_abc.patch |
26 |
@@ -0,0 +1,11 @@ |
27 |
+--- a/vdf/vdict.py |
28 |
++++ b/vdf/vdict.py |
29 |
+@@ -5,7 +5,7 @@ |
30 |
+ _iter_values = 'values' |
31 |
+ _range = range |
32 |
+ _string_type = str |
33 |
+- import collections as _c |
34 |
++ import collections.abc as _c |
35 |
+ class _kView(_c.KeysView): |
36 |
+ def __iter__(self): |
37 |
+ return self._mapping.iterkeys() |
38 |
|
39 |
diff --git a/dev-python/vdf/vdf-3.3.ebuild b/dev-python/vdf/vdf-3.3.ebuild |
40 |
index b0147e4aab7..d4f3fdcce98 100644 |
41 |
--- a/dev-python/vdf/vdf-3.3.ebuild |
42 |
+++ b/dev-python/vdf/vdf-3.3.ebuild |
43 |
@@ -1,9 +1,9 @@ |
44 |
-# Copyright 1999-2020 Gentoo Authors |
45 |
+# Copyright 1999-2021 Gentoo Authors |
46 |
# Distributed under the terms of the GNU General Public License v2 |
47 |
|
48 |
EAPI=7 |
49 |
|
50 |
-PYTHON_COMPAT=( python3_{7..9} pypy3 ) |
51 |
+PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
52 |
|
53 |
inherit distutils-r1 |
54 |
|
55 |
@@ -17,6 +17,7 @@ KEYWORDS="amd64" |
56 |
|
57 |
PATCHES=( |
58 |
"${FILESDIR}"/${PN}-3.2-mock_from_stdlib.patch |
59 |
+ "${FILESDIR}"/${PN}-3.3-collections_abc.patch |
60 |
) |
61 |
|
62 |
distutils_enable_tests pytest |