commit: 8330d6312f5833d9c20b8447d1759501107434e5 Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Thu May 13 19:05:25 2021 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Thu May 13 19:09:11 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8330d631
dev-python/vdf: support python3_10 Had to be patched to import ABCs from collections.abc rather than collections directly (deprecated since 3.3, originally scheduled to be disallowed in 3.9, eventually stopped working in 3.10), with that taken care of builds, tests and installs fine. Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> dev-python/vdf/files/vdf-3.3-collections_abc.patch | 11 +++++++++++ dev-python/vdf/vdf-3.3.ebuild | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dev-python/vdf/files/vdf-3.3-collections_abc.patch b/dev-python/vdf/files/vdf-3.3-collections_abc.patch new file mode 100644 index 00000000000..22c64760168 --- /dev/null +++ b/dev-python/vdf/files/vdf-3.3-collections_abc.patch @@ -0,0 +1,11 @@ +--- a/vdf/vdict.py ++++ b/vdf/vdict.py +@@ -5,7 +5,7 @@ + _iter_values = 'values' + _range = range + _string_type = str +- import collections as _c ++ import collections.abc as _c + class _kView(_c.KeysView): + def __iter__(self): + return self._mapping.iterkeys() diff --git a/dev-python/vdf/vdf-3.3.ebuild b/dev-python/vdf/vdf-3.3.ebuild index b0147e4aab7..d4f3fdcce98 100644 --- a/dev-python/vdf/vdf-3.3.ebuild +++ b/dev-python/vdf/vdf-3.3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7..9} pypy3 ) +PYTHON_COMPAT=( python3_{7..10} pypy3 ) inherit distutils-r1 @@ -17,6 +17,7 @@ KEYWORDS="amd64" PATCHES=( "${FILESDIR}"/${PN}-3.2-mock_from_stdlib.patch + "${FILESDIR}"/${PN}-3.3-collections_abc.patch ) distutils_enable_tests pytest