[gentoo-commits] repo/gentoo:master commit in: dev-python/lark/, dev-python/lark/files/
commit: 6e023225a33a7e0597dfe699fd2a1d9587476e29
Author: Eli Schwartz gentoo org>
AuthorDate: Tue Dec 2 04:25:12 2025 +
Commit: Eli Schwartz gentoo org>
CommitDate: Tue Dec 2 04:38:59 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e023225
dev-python/lark: drop old
Signed-off-by: Eli Schwartz gentoo.org>
dev-python/lark/Manifest | 1 -
dev-python/lark/files/lark-1.2.2-py314.patch | 38 ---
dev-python/lark/lark-1.2.2.ebuild| 45
3 files changed, 84 deletions(-)
diff --git a/dev-python/lark/Manifest b/dev-python/lark/Manifest
index 51bee5e75cb2..beabe78ff150 100644
--- a/dev-python/lark/Manifest
+++ b/dev-python/lark/Manifest
@@ -1,3 +1,2 @@
-DIST lark-1.2.2.tar.gz 252132 BLAKE2B
175f51930972f17051af6fefdf71ef4602f126d373888f30a630a703d038abe9bb2706da80564c72f19273f7d0bfbe351ab34e9d72fa1ad9dd7181232eefe61e
SHA512
77cf3abf26b827cb60eae4c193de0c98780df7dfa3daa1c21ca5d73bc16387d77561d57e8a20c69ceaeb35531b7191fe765b9834587972e2697f3f07def96b6c
DIST lark-1.3.0.tar.gz 259551 BLAKE2B
0df524ef483efeb7ab42973a1c06146e4e50fb59c489606498cc7dd8db61be76c7cf12062981cdbe9121ad98a1f892940d0b4d592d63c7d8d1563de4feab2f65
SHA512
d20191bb98e823f078359ccf2f391f9d01c80d7481d3c8061f8a6a8083f069e11029017158f773683b8e662f6cc81075f5cb4965c5fecde3956f131e3938af3d
DIST lark-1.3.1.tar.gz 382732 BLAKE2B
d08d8f73d79699f33795a46d1e8ae4aa86425e63df4dea19ce9aefaa18749bed5505f5dd657313e4d0463cd217f851494b939da7e134557f4a8f6c26321d7f42
SHA512
aee4ec6a6dd2e25801c66688861d0b25b68b7b916492764b3f8621dd70c33a93b364cb70d84ccac645cb7156892b90b503d6c79dedb9f656830c70a9b43549d0
diff --git a/dev-python/lark/files/lark-1.2.2-py314.patch
b/dev-python/lark/files/lark-1.2.2-py314.patch
deleted file mode 100644
index aade3ae30229..
--- a/dev-python/lark/files/lark-1.2.2-py314.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-https://github.com/lark-parser/lark/issues/1480
-https://github.com/lark-parser/lark/pull/1483
-
-From 4809ce89ca005b71f6db930c4aabf6496a502795 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?=
-Date: Wed, 6 Nov 2024 16:47:11 +0100
-Subject: [PATCH] Wrap functools.partial in staticmethod() to add compatibility
- with Python 3.14
-
-Fixes: #1480
- tests/test_trees.py | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/tests/test_trees.py b/tests/test_trees.py
-index 1f69869e..07687ac0 100644
a/tests/test_trees.py
-+++ b/tests/test_trees.py
-@@ -254,7 +254,7 @@ def ab_method(self, a, b):
- ab_partialmethod = partialmethod(ab_for_partialmethod, 1)
- set_union = set(["a"]).union
- static_add = staticmethod(add)
--partial_reduce_mul = partial(reduce, mul)
-+partial_reduce_mul = staticmethod(partial(reduce, mul))
-
- custom_callable = CustomCallable()
-
-@@ -355,8 +355,8 @@ def test(prefix, s, postfix):
-
- @v_args(inline=True)
- class T(Transformer):
--a = functools.partial(test, "@", postfix="!")
--b = functools.partial(lambda s: s + "!")
-+a = staticmethod(functools.partial(test, "@", postfix="!"))
-+b = staticmethod(functools.partial(lambda s: s + "!"))
-
- res = T().transform(tree)
- assert res.children == ["@TEST1!", "test2!"]
diff --git a/dev-python/lark/lark-1.2.2.ebuild
b/dev-python/lark/lark-1.2.2.ebuild
deleted file mode 100644
index cf816a40e50e..
--- a/dev-python/lark/lark-1.2.2.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Python module to propose a modern general-purpose parsing library
for Python"
-HOMEPAGE="
- https://github.com/lark-parser/lark/
- https://pypi.org/project/lark/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv
~s390 ~sparc x86 ~arm64-macos ~x64-macos"
-
-# dev-python/regex doesn't support pypy
-BDEPEND="
- test? (
- dev-python/atomicwrites[${PYTHON_USEDEP}]
- $(python_gen_cond_dep '
- dev-python/regex[${PYTHON_USEDEP}]
- ' 'python*')
- )
-"
-
-PATCHES=(
- # https://github.com/lark-parser/lark/pull/1483
- "${FILESDIR}"/${P}-py314.patch
-)
-
-distutils_enable_tests pytest
-
-python_test() {
- local EPYTEST_IGNORE=(
- # require dev-python/js2py which is a really bad quality package
- tests/test_nearley/test_nearley.py
- )
-
- epytest
-}
[gentoo-commits] repo/gentoo:master commit in: dev-python/lark/, dev-python/lark/files/
commit: 47a4311d8ac7d963e5e27ba7f42b329c9adde88e
Author: Sam James gentoo org>
AuthorDate: Sun May 11 19:56:36 2025 +
Commit: Sam James gentoo org>
CommitDate: Sun May 11 20:01:21 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a4311d
dev-python/lark: enable py3.14
Signed-off-by: Sam James gentoo.org>
dev-python/lark/files/lark-1.2.2-py314.patch | 38
dev-python/lark/lark-1.2.2.ebuild| 7 -
2 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/dev-python/lark/files/lark-1.2.2-py314.patch
b/dev-python/lark/files/lark-1.2.2-py314.patch
new file mode 100644
index ..aade3ae30229
--- /dev/null
+++ b/dev-python/lark/files/lark-1.2.2-py314.patch
@@ -0,0 +1,38 @@
+https://github.com/lark-parser/lark/issues/1480
+https://github.com/lark-parser/lark/pull/1483
+
+From 4809ce89ca005b71f6db930c4aabf6496a502795 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?=
+Date: Wed, 6 Nov 2024 16:47:11 +0100
+Subject: [PATCH] Wrap functools.partial in staticmethod() to add compatibility
+ with Python 3.14
+
+Fixes: #1480
+---
+ tests/test_trees.py | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tests/test_trees.py b/tests/test_trees.py
+index 1f69869e..07687ac0 100644
+--- a/tests/test_trees.py
b/tests/test_trees.py
+@@ -254,7 +254,7 @@ def ab_method(self, a, b):
+ ab_partialmethod = partialmethod(ab_for_partialmethod, 1)
+ set_union = set(["a"]).union
+ static_add = staticmethod(add)
+-partial_reduce_mul = partial(reduce, mul)
++partial_reduce_mul = staticmethod(partial(reduce, mul))
+
+ custom_callable = CustomCallable()
+
+@@ -355,8 +355,8 @@ def test(prefix, s, postfix):
+
+ @v_args(inline=True)
+ class T(Transformer):
+-a = functools.partial(test, "@", postfix="!")
+-b = functools.partial(lambda s: s + "!")
++a = staticmethod(functools.partial(test, "@", postfix="!"))
++b = staticmethod(functools.partial(lambda s: s + "!"))
+
+ res = T().transform(tree)
+ assert res.children == ["@TEST1!", "test2!"]
diff --git a/dev-python/lark/lark-1.2.2.ebuild
b/dev-python/lark/lark-1.2.2.ebuild
index 4ce565bfc04c..a8a5dd0e749d 100644
--- a/dev-python/lark/lark-1.2.2.ebuild
+++ b/dev-python/lark/lark-1.2.2.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 )
+PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
inherit distutils-r1 pypi
@@ -28,6 +28,11 @@ BDEPEND="
)
"
+PATCHES=(
+ # https://github.com/lark-parser/lark/pull/1483
+ "${FILESDIR}"/${P}-py314.patch
+)
+
distutils_enable_tests pytest
python_test() {
