Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-lark for openSUSE:Factory checked in at 2025-09-23 16:05:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-lark (Old) and /work/SRC/openSUSE:Factory/.python-lark.new.27445 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-lark" Tue Sep 23 16:05:33 2025 rev:10 rq:1306310 version:1.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-lark/python-lark.changes 2024-10-04 17:08:33.983879725 +0200 +++ /work/SRC/openSUSE:Factory/.python-lark.new.27445/python-lark.changes 2025-09-23 16:05:35.967381155 +0200 @@ -1,0 +2,5 @@ +Sun Sep 21 15:23:43 UTC 2025 - Dirk Müller <[email protected]> + +- add py314-functools-partial.patch + +------------------------------------------------------------------- New: ---- py314-functools-partial.patch ----------(New B)---------- New: - add py314-functools-partial.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-lark.spec ++++++ --- /var/tmp/diff_new_pack.vgO79U/_old 2025-09-23 16:05:36.587407180 +0200 +++ /var/tmp/diff_new_pack.vgO79U/_new 2025-09-23 16:05:36.591407348 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-lark # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ Group: Development/Languages/Python URL: https://github.com/lark-parser/lark Source: https://github.com/lark-parser/lark/archive/%{version}.tar.gz#/lark-%{version}.tar.gz +Patch1: https://github.com/lark-parser/lark/commit/4809ce89ca005b71f6db930c4aabf6496a502795.patch#/py314-functools-partial.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 6} BuildRequires: %{python_module regex} @@ -46,7 +47,7 @@ With Lark, one can parse any context-free grammar with little code. %prep -%setup -q -n lark-%{version} +%autosetup -p1 -n lark-%{version} %build %pyproject_wheel ++++++ py314-functools-partial.patch ++++++ >From 4809ce89ca005b71f6db930c4aabf6496a502795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <[email protected]> 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!"]
