Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-gobject for openSUSE:Factory checked in at 2025-09-30 17:39:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-gobject (Old) and /work/SRC/openSUSE:Factory/.python-gobject.new.11973 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gobject" Tue Sep 30 17:39:35 2025 rev:105 rq:1307902 version:3.54.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-gobject/python-gobject.changes 2025-09-24 15:22:25.575661366 +0200 +++ /work/SRC/openSUSE:Factory/.python-gobject.new.11973/python-gobject.changes 2025-09-30 17:39:39.894396515 +0200 @@ -1,0 +2,6 @@ +Sun Sep 28 21:33:10 UTC 2025 - Bjørn Lie <[email protected]> + +- Update to version 3.54.3: + + Do not skip symbols both in Gio and in platform specific + +------------------------------------------------------------------- Old: ---- pygobject-3.54.2.obscpio New: ---- pygobject-3.54.3.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gobject.spec ++++++ --- /var/tmp/diff_new_pack.FXLBHn/_old 2025-09-30 17:39:40.658428559 +0200 +++ /var/tmp/diff_new_pack.FXLBHn/_new 2025-09-30 17:39:40.662428727 +0200 @@ -34,7 +34,7 @@ %define libffi_version 3.0 %{?sle15_python_module_pythons} Name: python-gobject -Version: 3.54.2 +Version: 3.54.3 Release: 0 Summary: Python bindings for GObject License: LGPL-2.1-or-later ++++++ _service ++++++ --- /var/tmp/diff_new_pack.FXLBHn/_old 2025-09-30 17:39:40.698430237 +0200 +++ /var/tmp/diff_new_pack.FXLBHn/_new 2025-09-30 17:39:40.702430405 +0200 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="manual"> <param name="scm">git</param> <param name="url">https://gitlab.gnome.org/GNOME/pygobject.git</param> - <param name="revision">3.54.2</param> + <param name="revision">3.54.3</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">v?(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> ++++++ pygobject-3.54.2.obscpio -> pygobject-3.54.3.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.54.2/NEWS new/pygobject-3.54.3/NEWS --- old/pygobject-3.54.2/NEWS 2025-09-13 09:30:29.000000000 +0200 +++ new/pygobject-3.54.3/NEWS 2025-09-28 16:04:55.000000000 +0200 @@ -1,3 +1,8 @@ +3.54.3 - 2025-09-21 +------------------- + +* Do not skip symbols both in Gio and in platform specific :mr:`452` + 3.54.2 - 2025-09-13 ------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.54.2/gi/overrides/Gio.py new/pygobject-3.54.3/gi/overrides/Gio.py --- old/pygobject-3.54.2/gi/overrides/Gio.py 2025-09-13 09:30:29.000000000 +0200 +++ new/pygobject-3.54.3/gi/overrides/Gio.py 2025-09-28 16:04:55.000000000 +0200 @@ -634,12 +634,7 @@ platform_name_lower = platform_name.lower() for attr in dir(GioPlatform): - if ( - attr.startswith("_") - or attr in __all__ - or attr in gio_globals - or hasattr(Gio, attr) - ): + if attr.startswith("_"): continue original_attr = getattr(GioPlatform, attr) @@ -657,6 +652,27 @@ except AttributeError: pass + if wrapper_attr == attr and hasattr(Gio, wrapper_attr): + try: + name = original_attr.__name__[0] + except (AttributeError, IndexError): + name = original_attr + + # Fallback if we don't have the original name. + if name.islower(): + wrapper_attr = f"{platform_name_lower}_{attr}" + elif "_" in name: + wrapper_attr = f"{platform_name.upper()}_{attr}" + elif name: + wrapper_attr = f"{platform_name}{attr}" + + if ( + wrapper_attr in __all__ + or wrapper_attr in gio_globals + or hasattr(Gio, wrapper_attr) + ): + continue + gio_globals[wrapper_attr] = original_attr deprecated_attr( Gio._namespace, wrapper_attr, f"{GioPlatform._namespace}.{attr}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.54.2/meson.build new/pygobject-3.54.3/meson.build --- old/pygobject-3.54.2/meson.build 2025-09-13 09:30:29.000000000 +0200 +++ new/pygobject-3.54.3/meson.build 2025-09-28 16:04:55.000000000 +0200 @@ -1,7 +1,7 @@ project( 'pygobject', 'c', - version : '3.54.2', + version : '3.54.3', meson_version : '>= 0.64.0', default_options : ['warning_level=1', 'buildtype=debugoptimized'] ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.54.2/tests/test_gio.py new/pygobject-3.54.3/tests/test_gio.py --- old/pygobject-3.54.2/tests/test_gio.py 2025-09-13 09:30:29.000000000 +0200 +++ new/pygobject-3.54.3/tests/test_gio.py 2025-09-28 16:04:55.000000000 +0200 @@ -153,6 +153,24 @@ self.assertEqual(GioUnix.mount_points_get, Gio.unix_mount_points_get) @unittest.skipIf(GioUnix is None, "Not supported") + def test_deprecated_unix_type_can_be_used_if_equal_exists_in_gio(self): + with warnings.catch_warnings(record=True) as warn: + warnings.simplefilter("always") + + input_stream = Gio.UnixInputStream + self.assertEqual(len(warn), 1) + self.assertTrue(issubclass(warn[0].category, PyGIDeprecationWarning)) + self.assertEqual( + str(warn[0].message), + "Gio.UnixInputStream is deprecated; " + + "use GioUnix.InputStream instead", + ) + + self.assertIsNotNone(input_stream) + self.assertEqual(Gio.UnixInputStream, GioUnix.InputStream) + self.assertNotEqual(Gio.InputStream, GioUnix.InputStream) + + @unittest.skipIf(GioUnix is None, "Not supported") def test_deprecated_unix_class_can_be_used_from_gio(self): with warnings.catch_warnings(record=True) as warn: warnings.simplefilter("always") @@ -169,6 +187,24 @@ self.assertIsNotNone(monitor) self.assertEqual(Gio.UnixMountMonitor.get, GioUnix.MountMonitor.get) + @unittest.skipIf(GioUnix is None, "Not supported") + def test_deprecated_unix_gobject_class_can_be_used_from_gio(self): + with warnings.catch_warnings(record=True) as warn: + warnings.simplefilter("always") + + input_stream_class = Gio.UnixInputStreamClass + self.assertEqual(len(warn), 1) + self.assertTrue(issubclass(warn[0].category, PyGIDeprecationWarning)) + self.assertEqual( + str(warn[0].message), + "Gio.UnixInputStreamClass is deprecated; " + + "use GioUnix.InputStreamClass instead", + ) + + self.assertIsNotNone(input_stream_class) + self.assertEqual(Gio.UnixInputStreamClass, GioUnix.InputStreamClass) + self.assertNotEqual(Gio.InputStreamClass, GioUnix.InputStreamClass) + class TestGSettings(unittest.TestCase): def setUp(self): ++++++ pygobject.obsinfo ++++++ --- /var/tmp/diff_new_pack.FXLBHn/_old 2025-09-30 17:39:41.274454396 +0200 +++ /var/tmp/diff_new_pack.FXLBHn/_new 2025-09-30 17:39:41.282454731 +0200 @@ -1,5 +1,5 @@ name: pygobject -version: 3.54.2 -mtime: 1757748629 -commit: a6422092fba7e48639f84491b9e718abdf8f57ba +version: 3.54.3 +mtime: 1759068295 +commit: 5e61c052bef1894c0b66fc4f8ad7d0121ab5d950
