dev-python/oset: enable py3.10, EAPI=8

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2021-09-03 09:45:55 +03:00
parent 5aa2ecf86c
commit beb013b3ff
2 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
--- a/src/oset/pyoset.py
+++ b/src/oset/pyoset.py
@@ -13,7 +13,10 @@
def next(it):
return it.next()
else:
- from collections import MutableSet
+ try:
+ from collections.abc import MutableSet
+ except ImportError:
+ from collections import MutableSet
KEY, PREV, NEXT = range(3)

View File

@@ -3,9 +3,8 @@
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
PYTHON_COMPAT=( python3_{8..10} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="Ordered Set"
@@ -15,3 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}/${P}-fix-py3.10.patch"
)