Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/dnspython/files/, dev-python/dnspython/
Date: Sat, 15 May 2021 11:51:40
Message-Id: 1621079490.49c88a839919fbe4837412bb6abf7fae8ce481ec.mgorny@gentoo
1 commit: 49c88a839919fbe4837412bb6abf7fae8ce481ec
2 Author: Ekaterina Vaartis <vaartis <AT> kotobank <DOT> ch>
3 AuthorDate: Fri May 14 15:12:21 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 15 11:51:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49c88a83
7
8 dev-python/dnspython: bump revision of 1.16.0 to r2 for python 3.10
9
10 Signed-off-by: Ekaterina Vaartis <vaartis <AT> kotobank.ch>
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 ...nspython-1.16.0-r1.ebuild => dnspython-1.16.0-r2.ebuild} | 9 +++++++--
14 dev-python/dnspython/files/dnspython-1.16.0-py310.patch | 13 +++++++++++++
15 2 files changed, 20 insertions(+), 2 deletions(-)
16
17 diff --git a/dev-python/dnspython/dnspython-1.16.0-r1.ebuild b/dev-python/dnspython/dnspython-1.16.0-r2.ebuild
18 similarity index 84%
19 rename from dev-python/dnspython/dnspython-1.16.0-r1.ebuild
20 rename to dev-python/dnspython/dnspython-1.16.0-r2.ebuild
21 index 5296e0e643f..82f4762eb6f 100644
22 --- a/dev-python/dnspython/dnspython-1.16.0-r1.ebuild
23 +++ b/dev-python/dnspython/dnspython-1.16.0-r2.ebuild
24 @@ -1,9 +1,9 @@
25 -# Copyright 1999-2020 Gentoo Authors
26 +# Copyright 1999-2021 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 EAPI=7
30
31 -PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
32 +PYTHON_COMPAT=( python3_{7..10} pypy3 )
33
34 inherit distutils-r1
35
36 @@ -23,6 +23,11 @@ RDEPEND="dev-python/pycryptodome[${PYTHON_USEDEP}]
37 !dev-python/dnspython:py2
38 !dev-python/dnspython:py3"
39
40 +PATCHES=(
41 + # Mutable mapping was moved to a different module in 3.10 and removed from the old one
42 + "${FILESDIR}"/${P}-py310.patch
43 +)
44 +
45 src_prepare() {
46 sed -i -e '/network_avail/s:True:False:' \
47 tests/test_resolver.py || die
48
49 diff --git a/dev-python/dnspython/files/dnspython-1.16.0-py310.patch b/dev-python/dnspython/files/dnspython-1.16.0-py310.patch
50 new file mode 100644
51 index 00000000000..ad6fa929e5e
52 --- /dev/null
53 +++ b/dev-python/dnspython/files/dnspython-1.16.0-py310.patch
54 @@ -0,0 +1,13 @@
55 +diff --git a/dns/namedict.py b/dns/namedict.py
56 +index 37a1310..7d52668 100644
57 +--- a/dns/namedict.py
58 ++++ b/dns/namedict.py
59 +@@ -32,7 +32,7 @@ import dns.name
60 + from ._compat import xrange
61 +
62 +
63 +-class NameDict(collections.MutableMapping):
64 ++class NameDict(collections.abc.MutableMapping):
65 + """A dictionary whose keys are dns.name.Name objects.
66 +
67 + In addition to being like a regular Python dictionary, this