summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-06-10 18:18:04 +0200
committerMichał Górny <mgorny@gentoo.org>2024-06-10 19:00:58 +0200
commit136810686965f8a13985479c0a0309cbc4208735 (patch)
treef6b8b684b8a2702c6f2e72e58e15056bd26007fd /dev-python
parent753e62b9878b5f81a41d3d7ff74fe26aa28424dd (diff)
downloadgentoo-136810686965f8a13985479c0a0309cbc4208735.tar.gz
gentoo-136810686965f8a13985479c0a0309cbc4208735.tar.bz2
gentoo-136810686965f8a13985479c0a0309cbc4208735.zip
dev-python/frozenlist: Enable py3.13
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/frozenlist/files/frozenlist-1.4.1-py313.patch13
-rw-r--r--dev-python/frozenlist/frozenlist-1.4.1.ebuild7
2 files changed, 19 insertions, 1 deletions
diff --git a/dev-python/frozenlist/files/frozenlist-1.4.1-py313.patch b/dev-python/frozenlist/files/frozenlist-1.4.1-py313.patch
new file mode 100644
index 000000000000..5607461c9229
--- /dev/null
+++ b/dev-python/frozenlist/files/frozenlist-1.4.1-py313.patch
@@ -0,0 +1,13 @@
+diff --git a/tests/test_frozenlist.py b/tests/test_frozenlist.py
+index c0d91b5..b65a998 100644
+--- a/tests/test_frozenlist.py
++++ b/tests/test_frozenlist.py
+@@ -11,7 +11,7 @@ from frozenlist import FrozenList, PyFrozenList
+ class FrozenListMixin:
+ FrozenList = NotImplemented
+
+- SKIP_METHODS = {"__abstractmethods__", "__slots__"}
++ SKIP_METHODS = {"__abstractmethods__", "__slots__", "__static_attributes__", "__firstlineno__"}
+
+ def test___class_getitem__(self) -> None:
+ assert self.FrozenList[str] is not None
diff --git a/dev-python/frozenlist/frozenlist-1.4.1.ebuild b/dev-python/frozenlist/frozenlist-1.4.1.ebuild
index 3419d9fa09a0..42b6ee7b5b7d 100644
--- a/dev-python/frozenlist/frozenlist-1.4.1.ebuild
+++ b/dev-python/frozenlist/frozenlist-1.4.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=standalone
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
inherit distutils-r1
@@ -37,6 +37,11 @@ BDEPEND="
distutils_enable_tests pytest
+PATCHES=(
+ # https://github.com/aio-libs/frozenlist/issues/588#issuecomment-2139078800
+ "${FILESDIR}/${P}-py313.patch"
+)
+
python_compile() {
# pypy is not using the C extension
if ! use native-extensions || [[ ${EPYTHON} != python* ]]; then