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 2021-04-24 23:06:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-gobject (Old) and /work/SRC/openSUSE:Factory/.python-gobject.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gobject" Sat Apr 24 23:06:43 2021 rev:87 rq:887476 version:3.40.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-gobject/python-gobject.changes 2021-04-12 12:38:38.273458085 +0200 +++ /work/SRC/openSUSE:Factory/.python-gobject.new.12324/python-gobject.changes 2021-04-24 23:06:47.851194941 +0200 @@ -1,0 +2,7 @@ +Sat Apr 17 08:27:06 UTC 2021 - Dominique Leuenberger <[email protected]> + +- Update to version 3.40.1: + + Fix tests with glib 2.68. + + Fix a regression with marshalling partial() objects. + +------------------------------------------------------------------- Old: ---- pygobject-3.40.0.tar.xz New: ---- pygobject-3.40.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gobject.spec ++++++ --- /var/tmp/diff_new_pack.Lsrei0/_old 2021-04-24 23:06:48.239195490 +0200 +++ /var/tmp/diff_new_pack.Lsrei0/_new 2021-04-24 23:06:48.243195495 +0200 @@ -28,7 +28,7 @@ %global __requires_exclude_from ^%{_libdir}/python.*/site-packages/gi/__init__.py$ %define _name pygobject Name: python-gobject -Version: 3.40.0 +Version: 3.40.1 Release: 0 Summary: Python bindings for GObject License: LGPL-2.1-or-later ++++++ pygobject-3.40.0.tar.xz -> pygobject-3.40.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.40.0/NEWS new/pygobject-3.40.1/NEWS --- old/pygobject-3.40.0/NEWS 2021-03-19 14:43:05.867532700 +0100 +++ new/pygobject-3.40.1/NEWS 2021-03-30 08:44:57.289334000 +0200 @@ -1,3 +1,10 @@ +3.40.1 - 2021-03-30 +------------------- + +* Fix tests with glib 2.68 :mr:`166` +* Fix a regression with marshalling partial() objects :mr:`165` :issue:`464` + + 3.40.0 - 2021-03-19 ------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.40.0/PKG-INFO new/pygobject-3.40.1/PKG-INFO --- old/pygobject-3.40.0/PKG-INFO 2021-03-19 14:47:18.848667400 +0100 +++ new/pygobject-3.40.1/PKG-INFO 2021-03-30 08:48:02.722973000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: PyGObject -Version: 3.40.0 +Version: 3.40.1 Summary: Python bindings for GObject Introspection Home-page: https://pygobject.readthedocs.io Author: James Henstridge diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.40.0/PyGObject.egg-info/PKG-INFO new/pygobject-3.40.1/PyGObject.egg-info/PKG-INFO --- old/pygobject-3.40.0/PyGObject.egg-info/PKG-INFO 2021-03-19 14:47:18.460665500 +0100 +++ new/pygobject-3.40.1/PyGObject.egg-info/PKG-INFO 2021-03-30 08:48:02.342970000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: PyGObject -Version: 3.40.0 +Version: 3.40.1 Summary: Python bindings for GObject Introspection Home-page: https://pygobject.readthedocs.io Author: James Henstridge diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.40.0/gi/_gtktemplate.py new/pygobject-3.40.1/gi/_gtktemplate.py --- old/pygobject-3.40.0/gi/_gtktemplate.py 2021-03-19 14:26:34.823526400 +0100 +++ new/pygobject-3.40.1/gi/_gtktemplate.py 2021-03-30 08:42:00.167761000 +0200 @@ -78,9 +78,12 @@ handler, args = _extract_handler_and_args(current_object, handler_name) if obj: - return partial(handler, *args, swap_data=obj) + p = partial(handler, *args, swap_data=obj) + else: + p = partial(handler, *args) - return partial(handler, *args) + p.__gtk_template__ = True + return p return BuilderScope diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.40.0/gi/pygi-struct-marshal.c new/pygobject-3.40.1/gi/pygi-struct-marshal.c --- old/pygobject-3.40.0/gi/pygi-struct-marshal.c 2021-03-19 14:26:34.823526400 +0100 +++ new/pygobject-3.40.1/gi/pygi-struct-marshal.c 2021-03-30 08:42:00.167761000 +0200 @@ -191,7 +191,7 @@ Py_DECREF (functools); } - if (partial && PyObject_IsInstance (py_arg, partial) > 0) { + if (partial && PyObject_IsInstance (py_arg, partial) > 0 && PyObject_HasAttrString (py_arg, "__gtk_template__")) { PyObject *partial_func; PyObject *partial_args; PyObject *partial_keywords; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.40.0/meson.build new/pygobject-3.40.1/meson.build --- old/pygobject-3.40.0/meson.build 2021-03-19 14:42:19.891370500 +0100 +++ new/pygobject-3.40.1/meson.build 2021-03-30 08:42:55.804256000 +0200 @@ -1,5 +1,5 @@ project('pygobject', 'c', - version : '3.40.0', + version : '3.40.1', meson_version : '>= 0.46.0', default_options : [ 'warning_level=1', 'buildtype=debugoptimized']) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.40.0/setup.py new/pygobject-3.40.1/setup.py --- old/pygobject-3.40.0/setup.py 2021-03-19 14:42:31.731410700 +0100 +++ new/pygobject-3.40.1/setup.py 2021-03-30 08:42:55.804256000 +0200 @@ -37,7 +37,7 @@ from distutils.spawn import find_executable -PYGOBJECT_VERSION = "3.40.0" +PYGOBJECT_VERSION = "3.40.1" GLIB_VERSION_REQUIRED = "2.56.0" GI_VERSION_REQUIRED = "1.56.0" PYCAIRO_VERSION_REQUIRED = "1.16.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygobject-3.40.0/tests/test_gi.py new/pygobject-3.40.1/tests/test_gi.py --- old/pygobject-3.40.0/tests/test_gi.py 2020-11-15 17:50:40.608214400 +0100 +++ new/pygobject-3.40.1/tests/test_gi.py 2021-03-30 08:42:00.167761000 +0200 @@ -1692,6 +1692,22 @@ def test_in(self): GIMarshallingTests.gclosure_in(lambda: 42) + def test_in_partial(self): + from functools import partial + + called_args = [] + called_kwargs = {} + + def callback(*args, **kwargs): + called_args.extend(args) + called_kwargs.update(kwargs) + return 42 + + func = partial(callback, 1, 2, 3, foo=42) + GIMarshallingTests.gclosure_in(func) + assert called_args == [1, 2, 3] + assert called_kwargs["foo"] == 42 + def test_pass(self): # test passing a closure between two C calls closure = GIMarshallingTests.gclosure_return() @@ -2406,7 +2422,7 @@ def test_nongir_repr(self): self.assertRegex( - repr(Gio.File.new_for_path("")), + repr(Gio.File.new_for_path("/")), r"<__gi__.GLocalFile object at 0x[^\s]+ " r"\(GLocalFile at 0x[^\s]+\)>")
