Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-gst for openSUSE:Factory checked in at 2026-04-15 16:04:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-gst (Old) and /work/SRC/openSUSE:Factory/.python-gst.new.21863 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-gst" Wed Apr 15 16:04:21 2026 rev:76 rq:1346841 version:1.28.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-gst/python-gst.changes 2026-03-05 17:18:06.686011760 +0100 +++ /work/SRC/openSUSE:Factory/.python-gst.new.21863/python-gst.changes 2026-04-15 16:06:23.887506918 +0200 @@ -1,0 +2,6 @@ +Wed Apr 8 13:25:01 UTC 2026 - Bjørn Lie <[email protected]> + +- Update to version 1.28.2: + + bin: iterator is not nullable + +------------------------------------------------------------------- Old: ---- gst-python-1.28.1.obscpio New: ---- gst-python-1.28.2.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-gst.spec ++++++ --- /var/tmp/diff_new_pack.9GHxJG/_old 2026-04-15 16:06:24.911549024 +0200 +++ /var/tmp/diff_new_pack.9GHxJG/_new 2026-04-15 16:06:24.911549024 +0200 @@ -21,7 +21,7 @@ %{?sle15_python_module_pythons} Name: python-gst -Version: 1.28.1 +Version: 1.28.2 Release: 0 Summary: Python Bindings for GStreamer License: LGPL-2.1-or-later ++++++ _service ++++++ --- /var/tmp/diff_new_pack.9GHxJG/_old 2026-04-15 16:06:24.947550504 +0200 +++ /var/tmp/diff_new_pack.9GHxJG/_new 2026-04-15 16:06:24.951550669 +0200 @@ -5,7 +5,7 @@ <param name="url">https://gitlab.freedesktop.org/gstreamer/gstreamer.git</param> <param name="subdir">subprojects/gst-python</param> <param name="filename">gst-python</param> - <param name="revision">1.28.1</param> + <param name="revision">1.28.2</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">v?(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> ++++++ gst-python-1.28.1.obscpio -> gst-python-1.28.2.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gst-python-1.28.1/gi/overrides/Gst.py new/gst-python-1.28.2/gi/overrides/Gst.py --- old/gst-python-1.28.1/gi/overrides/Gst.py 2026-02-26 03:09:39.000000000 +0100 +++ new/gst-python-1.28.2/gi/overrides/Gst.py 2026-04-07 21:02:23.000000000 +0200 @@ -108,6 +108,15 @@ if not pair[0].link(pair[1]): raise LinkError(f'Failed to link {pair[0]} and {pair[1]}') + def iterate_pads(self) -> Iterator[Gst.Pad]: + return super().iterate_pads() # type: ignore[return-value] + + def iterate_sink_pads(self) -> Iterator[Gst.Pad]: + return super().iterate_sink_pads() # type: ignore[return-value] + + def iterate_src_pads(self) -> Iterator[Gst.Pad]: + return super().iterate_src_pads() # type: ignore[return-value] + override(Element) __all__.append('Element') @@ -131,6 +140,29 @@ self.add(elem) return elem + def iterate_all_by_element_factory_name(self, factory_name: str) -> Iterator[Element]: + return super().iterate_all_by_element_factory_name(factory_name) # type: ignore[return-value] + + def iterate_elements(self) -> Iterator[Element]: + return super().iterate_elements() # type: ignore[return-value] + + def iterate_recurse(self) -> Iterator[Element]: + return super().iterate_recurse() # type: ignore[return-value] + + def iterate_sinks(self) -> Iterator[Element]: + return super().iterate_sinks() # type: ignore[return-value] + + def iterate_sources(self) -> Iterator[Element]: + return super().iterate_sources() # type: ignore[return-value] + + def iterate_sorted(self) -> Iterator[Element]: + return super().iterate_sorted() # type: ignore[return-value] + + def __iter__(self) -> typing.Iterator[Element]: + """Iterate over all elements in the bin, non-recursive.""" + for elem in self.iterate_elements(): + yield elem + override(Bin) __all__.append('Bin') @@ -444,8 +476,11 @@ __all__.append('MapError') -class Iterator(Gst.Iterator): - def __iter__(self) -> typing.Iterator[typing.Any]: +T = typing.TypeVar('T') + + +class Iterator(Gst.Iterator, typing.Generic[T]): + def __iter__(self) -> typing.Iterator[T]: while True: result, value = self.next() if result == Gst.IteratorResult.DONE: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gst-python-1.28.1/gst-python.doap new/gst-python-1.28.2/gst-python.doap --- old/gst-python-1.28.1/gst-python.doap 2026-02-26 03:09:39.000000000 +0100 +++ new/gst-python-1.28.2/gst-python.doap 2026-04-07 21:02:23.000000000 +0200 @@ -32,6 +32,16 @@ <release> <Version> + <revision>1.28.2</revision> + <branch>1.28</branch> + <name></name> + <created>2026-04-07</created> + <file-release rdf:resource="https://gstreamer.freedesktop.org/src/gst-python/gst-python-1.28.2.tar.xz" /> + </Version> + </release> + + <release> + <Version> <revision>1.28.1</revision> <branch>1.28</branch> <name></name> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gst-python-1.28.1/meson.build new/gst-python-1.28.2/meson.build --- old/gst-python-1.28.1/meson.build 2026-02-26 03:09:39.000000000 +0100 +++ new/gst-python-1.28.2/meson.build 2026-04-07 21:02:23.000000000 +0200 @@ -1,5 +1,5 @@ project('gst-python', 'c', - version : '1.28.1', + version : '1.28.2', meson_version : '>= 1.4', default_options : [ 'warning_level=1', 'buildtype=debugoptimized' ]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gst-python-1.28.1/testsuite/test_gst.py new/gst-python-1.28.2/testsuite/test_gst.py --- old/gst-python-1.28.1/testsuite/test_gst.py 2026-02-26 03:09:39.000000000 +0100 +++ new/gst-python-1.28.2/testsuite/test_gst.py 2026-04-07 21:02:23.000000000 +0200 @@ -253,6 +253,23 @@ Gst.init(None) self.assertEqual(Gst.ElementFactory.make("bin", None).sinkpads, []) + def test_make_and_add(self): + Gst.init(None) + bin = Gst.Bin() + with self.assertRaises(Gst.MissingPluginError): + bin.make_and_add("nonexistent") + e = bin.make_and_add("identity") + # Adding the same element again should fail + with self.assertRaises(Gst.AddError): + bin.add(e) + + def test_iterate(self): + Gst.init(None) + bin = Gst.Bin() + e = bin.make_and_add("identity") + chidren = [c for c in bin] + self.assertEqual(chidren, [e]) + class TestBuffer(TestCase): ++++++ gst-python.obsinfo ++++++ --- /var/tmp/diff_new_pack.9GHxJG/_old 2026-04-15 16:06:25.267563662 +0200 +++ /var/tmp/diff_new_pack.9GHxJG/_new 2026-04-15 16:06:25.267563662 +0200 @@ -1,5 +1,5 @@ name: gst-python -version: 1.28.1 -mtime: 1772071779 -commit: dcb37e20147e3b59344bab1e1cbb57e908cc6b92 +version: 1.28.2 +mtime: 1775588543 +commit: 43421c2a5b8ac5cceb52b11749df40301e1de5c0
