mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-python/oset: enable py3.10, EAPI=8
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
14
dev-python/oset/files/oset-0.1.3-fix-py3.10.patch
Normal file
14
dev-python/oset/files/oset-0.1.3-fix-py3.10.patch
Normal 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)
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user