Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyxdg for openSUSE:Factory checked in at 2026-08-01 18:28:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyxdg (Old) and /work/SRC/openSUSE:Factory/.python-pyxdg.new.16738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyxdg" Sat Aug 1 18:28:09 2026 rev:18 rq:1368657 version:0.28 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyxdg/python-pyxdg.changes 2025-09-14 18:50:17.614393484 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyxdg.new.16738/python-pyxdg.changes 2026-08-01 18:28:42.862518876 +0200 @@ -1,0 +2,8 @@ +Thu Jul 30 11:26:01 UTC 2026 - Bjørn Lie <[email protected]> + +- Add 63033ac306aa26d32e1439417e59ae8f8a4c9820.patch: Menu: handle + Python 3.15 deprecations +- Add fix-build-shared-mime-info.patch: test_mime: update test to + pass with >=shared-mime-info-2.5 + +------------------------------------------------------------------- New: ---- 63033ac306aa26d32e1439417e59ae8f8a4c9820.patch fix-build-shared-mime-info.patch ----------(New B)---------- New: - Add 63033ac306aa26d32e1439417e59ae8f8a4c9820.patch: Menu: handle Python 3.15 deprecations New: Python 3.15 deprecations - Add fix-build-shared-mime-info.patch: test_mime: update test to pass with >=shared-mime-info-2.5 ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyxdg.spec ++++++ --- /var/tmp/diff_new_pack.5HGXaM/_old 2026-08-01 18:28:43.426536986 +0200 +++ /var/tmp/diff_new_pack.5HGXaM/_new 2026-08-01 18:28:43.430537114 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyxdg # -# Copyright (c) 2025 SUSE LLC and contributors +# 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 @@ -29,6 +29,10 @@ Source1: https://gitlab.freedesktop.org/xdg/pyxdg/-/archive/rel-%{version}/pyxdg-rel-%{version}.tar.gz?path=test/example#/pyxdg-%{version}-test-example.tar.gz # PATCH-FIX-UPSTREAM https://cgit.freedesktop.org/xdg/pyxdg/patch/?id=9291d419017263c922869d79ac1fe8d423e5f929 Menu: handle Python 3.14 ast.Str changes Patch0: py314.patch +# PATCH-FIX-UPSTREAM Menu: handle Python 3.15 deprecations +Patch1: https://gitlab.freedesktop.org/xdg/pyxdg/-/commit/63033ac306aa26d32e1439417e59ae8f8a4c9820.patch +# PATCH-FIX-UPSTREAM fix-build-shared-mime-info.patch -- test_mime: update test to pass with >=shared-mime-info-2.5 +Patch2: fix-build-shared-mime-info.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} ++++++ 63033ac306aa26d32e1439417e59ae8f8a4c9820.patch ++++++ >From 63033ac306aa26d32e1439417e59ae8f8a4c9820 Mon Sep 17 00:00:00 2001 From: Sam James <[email protected]> Date: Sat, 31 May 2025 18:54:51 +0100 Subject: [PATCH] Menu: handle Python 3.15 deprecations * Unknown keyword args will be fatal, so drop lineno/col_offset that is unused * Set body= immediately as a keyword --- xdg/Menu.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xdg/Menu.py b/xdg/Menu.py index 71f5e61..8e1595c 100644 --- a/xdg/Menu.py +++ b/xdg/Menu.py @@ -419,7 +419,6 @@ class Rule: ctx=ast.Load() )] ), - lineno=1, col_offset=0 ) ast.fix_missing_locations(tree) rule = Rule(type, tree) @@ -763,12 +762,10 @@ class XMLMenuBuilder(object): def parse_rule(self, node): type = Rule.TYPE_INCLUDE if node.tag == 'Include' else Rule.TYPE_EXCLUDE - tree = ast.Expression(lineno=1, col_offset=0) + tree = ast.Expression(body=_ast_const('False')) expr = self.parse_bool_op(node, ast.Or()) if expr: tree.body = expr - else: - tree.body = _ast_const('False') ast.fix_missing_locations(tree) return Rule(type, tree) -- GitLab ++++++ fix-build-shared-mime-info.patch ++++++ >From 95d68296496d7461229cc8569cbf96aee54531b0 Mon Sep 17 00:00:00 2001 From: Alfred Wingate <[email protected]> Date: Sun, 19 Jul 2026 17:16:01 +0300 Subject: [PATCH] test_mime: update test to pass with >=shared-mime-info-2.5 Bug: https://bugs.gentoo.org/978334 See-Also: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/merge_requests/302 Signed-off-by: Alfred Wingate <[email protected]> --- test/test_mime.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_mime.py b/test/test_mime.py index cc10a3c..13958ba 100644 --- a/test/test_mime.py +++ b/test/test_mime.py @@ -152,9 +152,11 @@ class MimeTest(MimeTestBase): def test_inheritance(self): text_python = Mime.lookup('text/x-python') self.check_mimetype(text_python, 'text', 'x-python') + text_cython = Mime.lookup('text/x-cython') text_plain = Mime.lookup('text/plain') app_executable = Mime.lookup('application/x-executable') - self.assertEqual(text_python.inherits_from(), set([text_plain, app_executable])) + # shared-mime-info-2.5 changed inheritance from text/plain to text/x-cython + self.assertIn(text_python.inherits_from(), (set([text_cython, app_executable]), set([text_plain, app_executable]))) def test_is_text(self): assert Mime._is_text(b'abcdef \n') -- GitLab
