Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyTrie for openSUSE:Factory checked in at 2026-04-08 17:16:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PyTrie (Old) and /work/SRC/openSUSE:Factory/.python-PyTrie.new.21863 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyTrie" Wed Apr 8 17:16:50 2026 rev:6 rq:1345095 version:0.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-PyTrie/python-PyTrie.changes 2025-05-12 20:19:48.487778485 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyTrie.new.21863/python-PyTrie.changes 2026-04-08 17:16:52.042725575 +0200 @@ -1,0 +2,7 @@ +Wed Apr 8 02:24:27 UTC 2026 - Steve Kowalik <[email protected]> + +- Switch to autosetup macro. +- Add patch support-python-314.patch: + * Support Python 3.14 changes. + +------------------------------------------------------------------- New: ---- support-python-314.patch ----------(New B)---------- New:- Switch to autosetup macro. - Add patch support-python-314.patch: * Support Python 3.14 changes. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PyTrie.spec ++++++ --- /var/tmp/diff_new_pack.CYBKES/_old 2026-04-08 17:16:53.002765046 +0200 +++ /var/tmp/diff_new_pack.CYBKES/_new 2026-04-08 17:16:53.006765210 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-PyTrie # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 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 @@ -23,6 +23,8 @@ License: BSD-3-Clause URL: https://github.com/gsakkis/pytrie/ Source: https://files.pythonhosted.org/packages/source/P/PyTrie/PyTrie-%{version}.tar.gz +# PATCH-FIX-OPENSUSE Support Python 3.14 changes +Patch0: support-python-314.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sortedcontainers} @@ -45,8 +47,7 @@ prefix, and vice versa, finding the items whose keys are prefixes of a given key. %prep -%setup -q -n PyTrie-%{version} -%autopatch -p1 +%autosetup -p1 -n PyTrie-%{version} %build %pyproject_wheel @@ -62,6 +63,6 @@ %license LICENSE %doc README.md %{python_sitelib}/pytrie.py -%{python_sitelib}/[Pp]y[Tt]rie-%{version}*-info +%{python_sitelib}/[Pp]y[Tt]rie-%{version}.dist-info %pycache_only %{python_sitelib}/__pycache__/pytrie* ++++++ support-python-314.patch ++++++ Index: PyTrie-0.4.0/pytrie.py =================================================================== --- PyTrie-0.4.0.orig/pytrie.py +++ PyTrie-0.4.0/pytrie.py @@ -44,7 +44,7 @@ KeyError __all__ = ['Trie', 'StringTrie', 'SortedTrie', 'SortedStringTrie', 'Node'] import sys -from copy import copy +from copy import copy, deepcopy from collections.abc import MutableMapping import sortedcontainers @@ -397,7 +397,9 @@ class Trie(MutableMapping): self._root.children.clear() def copy(self): - clone = copy(super(Trie, self)) + clone = deepcopy(super(Trie, self)) + if hasattr(clone, '__self__'): + clone = clone.__self__ clone._root = copy(self._root) # pylint: disable=protected-access return clone
