Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyaml for openSUSE:Factory checked in at 2026-07-07 21:03:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyaml (Old) and /work/SRC/openSUSE:Factory/.python-pyaml.new.1982 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyaml" Tue Jul 7 21:03:26 2026 rev:18 rq:1364126 version:26.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyaml/python-pyaml.changes 2026-03-09 16:12:20.767416907 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyaml.new.1982/python-pyaml.changes 2026-07-07 21:05:56.099933717 +0200 @@ -1,0 +2,6 @@ +Mon Jul 6 20:42:45 UTC 2026 - Dirk Müller <[email protected]> + +- update to 26.7.0: + * dump.write: don't trap AttributeError in dst.write(b'') str-or-bytes + +------------------------------------------------------------------- Old: ---- pyaml-26.2.1.tar.gz New: ---- pyaml-26.7.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyaml.spec ++++++ --- /var/tmp/diff_new_pack.KqOVKk/_old 2026-07-07 21:05:56.703954861 +0200 +++ /var/tmp/diff_new_pack.KqOVKk/_new 2026-07-07 21:05:56.707955001 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-pyaml -Version: 26.2.1 +Version: 26.7.0 Release: 0 Summary: Python module to produce formatted YAML-serialized data License: WTFPL ++++++ pyaml-26.2.1.tar.gz -> pyaml-26.7.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyaml-26.2.1/PKG-INFO new/pyaml-26.7.0/PKG-INFO --- old/pyaml-26.2.1/PKG-INFO 2026-02-06 14:49:27.148404400 +0100 +++ new/pyaml-26.7.0/PKG-INFO 2026-07-04 02:34:34.047573000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: pyaml -Version: 26.2.1 +Version: 26.7.0 Summary: PyYAML-based module to produce a bit more pretty and readable YAML-serialized data Home-page: https://github.com/mk-fg/pretty-yaml Author: Mike Kazantsev @@ -377,7 +377,7 @@ More general info on python packaging can be found at `packaging.python.org`_. When changing code, unit tests can be run with ``python -m unittest`` -from the local repository checkout. +from a local repository checkout. .. _pyaml: https://pypi.org/project/pyaml/ .. _unidecode: https://pypi.python.org/pypi/Unidecode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyaml-26.2.1/README.rst new/pyaml-26.7.0/README.rst --- old/pyaml-26.2.1/README.rst 2024-12-12 20:16:00.000000000 +0100 +++ new/pyaml-26.7.0/README.rst 2026-02-06 15:56:23.000000000 +0100 @@ -349,7 +349,7 @@ More general info on python packaging can be found at `packaging.python.org`_. When changing code, unit tests can be run with ``python -m unittest`` -from the local repository checkout. +from a local repository checkout. .. _pyaml: https://pypi.org/project/pyaml/ .. _unidecode: https://pypi.python.org/pypi/Unidecode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyaml-26.2.1/pyaml/__init__.py new/pyaml-26.7.0/pyaml/__init__.py --- old/pyaml-26.2.1/pyaml/__init__.py 2026-01-28 08:28:15.000000000 +0100 +++ new/pyaml-26.7.0/pyaml/__init__.py 2026-07-04 02:31:13.000000000 +0200 @@ -135,7 +135,7 @@ else: return self.represent_dict(dcs.asdict(data)) try: # this is for numpy arrays, and the likes if not callable(getattr(data, 'tolist', None)): raise AttributeError - except: pass # can raise other errors with custom types + except Exception: pass # can raise other errors with custom types else: return self.represent_data(data.tolist()) if self.pyaml_repr_unknown: # repr value as a short oneliner if isinstance(n := self.pyaml_repr_unknown, bool): n = 50 @@ -266,8 +266,8 @@ if dst is bytes: return buff.encode() elif dst is str: return buff else: - try: dst.write(b'') # tests if dst is str- or bytestream - except: dst.write(buff) + try: dst.write(b'') # tests whether dst is str- or bytestream + except TypeError: dst.write(buff) else: dst.write(buff.encode()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyaml-26.2.1/pyaml/tests/test_cli.py new/pyaml-26.7.0/pyaml/tests/test_cli.py --- old/pyaml-26.2.1/pyaml/tests/test_cli.py 2026-02-06 14:47:05.000000000 +0100 +++ new/pyaml-26.7.0/pyaml/tests/test_cli.py 2026-02-06 16:57:05.000000000 +0100 @@ -277,13 +277,13 @@ self.assertEqual(out.getvalue(), '') self.assertGreater(len(err.getvalue()), 50) err.seek(0); err.truncate() + tmp.seek(0); self.assertEqual(tmp.read(), d_tmp) st = os.stat(p := '/dev/null'); st_id = st.st_dev, st.st_ino pyaml.cli.main( argv=['-o', p], # shouldn't replace dev node stdin=io.StringIO(ys), stdout=out, stderr=err ) self.assertEqual(out.getvalue(), '') self.assertEqual(err.getvalue(), '') - tmp.seek(0); self.assertEqual(tmp.read(), d_tmp) st = os.stat(p); self.assertEqual((st.st_dev, st.st_ino), st_id) pyaml.cli.main( argv=['-o', tmp.name], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyaml-26.2.1/pyaml.egg-info/PKG-INFO new/pyaml-26.7.0/pyaml.egg-info/PKG-INFO --- old/pyaml-26.2.1/pyaml.egg-info/PKG-INFO 2026-02-06 14:49:27.000000000 +0100 +++ new/pyaml-26.7.0/pyaml.egg-info/PKG-INFO 2026-07-04 02:34:34.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: pyaml -Version: 26.2.1 +Version: 26.7.0 Summary: PyYAML-based module to produce a bit more pretty and readable YAML-serialized data Home-page: https://github.com/mk-fg/pretty-yaml Author: Mike Kazantsev @@ -377,7 +377,7 @@ More general info on python packaging can be found at `packaging.python.org`_. When changing code, unit tests can be run with ``python -m unittest`` -from the local repository checkout. +from a local repository checkout. .. _pyaml: https://pypi.org/project/pyaml/ .. _unidecode: https://pypi.python.org/pypi/Unidecode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyaml-26.2.1/pyproject.toml new/pyaml-26.7.0/pyproject.toml --- old/pyaml-26.2.1/pyproject.toml 2026-02-06 14:48:21.000000000 +0100 +++ new/pyaml-26.7.0/pyproject.toml 2026-07-04 02:32:06.000000000 +0200 @@ -1,7 +1,7 @@ [project] name = "pyaml" -version = "26.2.1" +version = "26.7.0" description = "PyYAML-based module to produce a bit more pretty and readable YAML-serialized data" authors = [{name="Mike Kazantsev", email="[email protected]"}]
