Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-ruamel.yaml.convert for
openSUSE:Factory checked in at 2025-12-09 12:53:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ruamel.yaml.convert (Old)
and /work/SRC/openSUSE:Factory/.python-ruamel.yaml.convert.new.1939 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ruamel.yaml.convert"
Tue Dec 9 12:53:07 2025 rev:4 rq:1321652 version:0.3.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-ruamel.yaml.convert/python-ruamel.yaml.convert.changes
2025-06-24 20:50:58.144781416 +0200
+++
/work/SRC/openSUSE:Factory/.python-ruamel.yaml.convert.new.1939/python-ruamel.yaml.convert.changes
2025-12-09 12:59:15.954446131 +0100
@@ -1,0 +2,6 @@
+Tue Dec 9 04:18:08 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Add patch support-python314.patch:
+ * Support Python 3.14 ast changes.
+
+-------------------------------------------------------------------
New:
----
support-python314.patch
----------(New B)----------
New:
- Add patch support-python314.patch:
* Support Python 3.14 ast changes.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-ruamel.yaml.convert.spec ++++++
--- /var/tmp/diff_new_pack.ZTrIq3/_old 2025-12-09 12:59:16.658475807 +0100
+++ /var/tmp/diff_new_pack.ZTrIq3/_new 2025-12-09 12:59:16.662475976 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-ruamel.yaml.convert
#
-# Copyright (c) 2025 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
@@ -23,6 +23,8 @@
License: MIT
URL: https://sourceforge.net/projects/ruamel-yaml-convert/
Source:
https://files.pythonhosted.org/packages/source/r/ruamel.yaml.convert/ruamel.yaml.convert-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Support Python 3.14 ast changes
+Patch0: support-python314.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module ruamel.base >= 1.0.0+post1}
BuildRequires: %{python_module ruamel.yaml}
@@ -43,7 +45,7 @@
Data format conversion routines to and from YAML.
%prep
-%setup -q -n ruamel.yaml.convert-%{version}
+%autosetup -p1 -n ruamel.yaml.convert-%{version}
# Remove unnecessary namespace declaration
sed -i '/namespace_packages=/d' setup.py
++++++ support-python314.patch ++++++
Index: ruamel.yaml.convert-0.3.2/setup.py
===================================================================
--- ruamel.yaml.convert-0.3.2.orig/setup.py
+++ ruamel.yaml.convert-0.3.2/setup.py
@@ -49,8 +49,7 @@ if sys.version_info < (3, 4):
if sys.version_info >= (3, 8):
-
- from ast import Str, Num, Bytes, NameConstant # NOQA
+ from ast import Constant # NOQA
if sys.version_info < (3,):
@@ -100,15 +99,7 @@ def literal_eval(node_or_string):
raise TypeError('only string or AST nodes supported')
def _convert(node):
- if isinstance(node, Str):
- if sys.version_info < (3,) and not isinstance(node.s, unicode):
- return node.s.decode('utf-8')
- return node.s
- elif isinstance(node, Bytes):
- return node.s
- elif isinstance(node, Num):
- return node.n
- elif isinstance(node, Tuple):
+ if isinstance(node, Tuple):
return tuple(map(_convert, node.elts))
elif isinstance(node, List):
return list(map(_convert, node.elts))
@@ -116,7 +107,7 @@ def literal_eval(node_or_string):
return set(map(_convert, node.elts))
elif isinstance(node, Dict):
return dict((_convert(k), _convert(v)) for k, v in zip(node.keys,
node.values))
- elif isinstance(node, NameConstant):
+ elif isinstance(node, Constant):
return node.value
elif sys.version_info < (3, 4) and isinstance(node, Name):
if node.id in _safe_names: