Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-oras for openSUSE:Factory checked in at 2026-08-11 17:13:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oras (Old) and /work/SRC/openSUSE:Factory/.python-oras.new.17972 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oras" Tue Aug 11 17:13:55 2026 rev:4 rq:1370541 version:0.2.43 Changes: -------- --- /work/SRC/openSUSE:Factory/python-oras/python-oras.changes 2026-03-31 15:23:32.943469318 +0200 +++ /work/SRC/openSUSE:Factory/.python-oras.new.17972/python-oras.changes 2026-08-11 17:15:30.001887238 +0200 @@ -1,0 +2,6 @@ +Mon Aug 10 05:56:46 UTC 2026 - Johannes Kastl <[email protected]> + +- update to 0.2.43: + * fix: route push completion output through logger in #249 + +------------------------------------------------------------------- Old: ---- oras-0.2.42.tar.gz New: ---- oras-0.2.43.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oras.spec ++++++ --- /var/tmp/diff_new_pack.733vW0/_old 2026-08-11 17:15:30.541910122 +0200 +++ /var/tmp/diff_new_pack.733vW0/_new 2026-08-11 17:15:30.545910292 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-oras -Version: 0.2.42 +Version: 0.2.43 Release: 0 Summary: OCI Registry as Storage Python SDK License: Apache-2.0 ++++++ oras-0.2.42.tar.gz -> oras-0.2.43.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oras-0.2.42/PKG-INFO new/oras-0.2.43/PKG-INFO --- old/oras-0.2.42/PKG-INFO 2026-03-09 23:31:21.174492100 +0100 +++ new/oras-0.2.43/PKG-INFO 2026-08-08 17:45:51.499518400 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: oras -Version: 0.2.42 +Version: 0.2.43 Summary: OCI Registry as Storage Python SDK Home-page: https://github.com/oras-project/oras-py Author: Vanessa Sochat diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oras-0.2.42/oras/provider.py new/oras-0.2.43/oras/provider.py --- old/oras-0.2.42/oras/provider.py 2026-03-09 23:31:06.000000000 +0100 +++ new/oras-0.2.43/oras/provider.py 2026-08-08 17:45:32.000000000 +0200 @@ -724,6 +724,7 @@ subject: Optional[str] = None, do_chunked: bool = False, chunk_size: int = oras.defaults.default_chunksize, + quiet: bool = False, ) -> requests.Response: """ Push a set of files to a target @@ -748,6 +749,8 @@ :type chunk_size: int :param subject: optional subject reference :type subject: oras.oci.Subject + :param quiet: suppress the completion message + :type quiet: bool """ container = self.get_container(target) files = files or [] @@ -863,7 +866,8 @@ manifest, container ) # make the returned response from this method, the one pertaining to the uploaded Manifest self._check_200_response(response) - print(f"Successfully pushed {container}") + if not quiet: + logger.info(f"Successfully pushed {container}") return response def pull( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oras-0.2.42/oras/tests/test_provider.py new/oras-0.2.43/oras/tests/test_provider.py --- old/oras-0.2.42/oras/tests/test_provider.py 2026-03-09 23:31:06.000000000 +0100 +++ new/oras-0.2.43/oras/tests/test_provider.py 2026-08-08 17:45:32.000000000 +0200 @@ -5,6 +5,7 @@ import os import subprocess from pathlib import Path +from unittest.mock import Mock import pytest @@ -17,6 +18,61 @@ here = Path(__file__).resolve().parent +def test_push_quiet_output_does_not_write_stdout(tmp_path, monkeypatch, capsys): + client = oras.provider.Registry(hostname="registry.example", insecure=True) + artifact = tmp_path / "artifact.txt" + artifact.write_text("content") + + class Response: + status_code = 201 + + container = client.get_container("registry.example/repository:tag") + monkeypatch.setattr(client, "get_container", lambda target: container) + monkeypatch.setattr(client.auth, "load_configs", lambda *args, **kwargs: None) + monkeypatch.setattr(client, "upload_blob", lambda *args, **kwargs: Response()) + monkeypatch.setattr(client, "upload_manifest", lambda *args, **kwargs: Response()) + monkeypatch.setattr(client, "_check_200_response", lambda response: None) + info = Mock() + monkeypatch.setattr(oras.provider.logger, "info", info) + + client.push( + files=[artifact], + target="registry.example/repository:tag", + disable_path_validation=True, + quiet=False, + ) + + assert capsys.readouterr().out == "" + info.assert_called_once_with(f"Successfully pushed {container}") + + +def test_push_quiet_suppresses_completion_message(tmp_path, monkeypatch): + client = oras.provider.Registry(hostname="registry.example", insecure=True) + artifact = tmp_path / "artifact.txt" + artifact.write_text("content") + + class Response: + status_code = 201 + + container = client.get_container("registry.example/repository:tag") + monkeypatch.setattr(client, "get_container", lambda target: container) + monkeypatch.setattr(client.auth, "load_configs", lambda *args, **kwargs: None) + monkeypatch.setattr(client, "upload_blob", lambda *args, **kwargs: Response()) + monkeypatch.setattr(client, "upload_manifest", lambda *args, **kwargs: Response()) + monkeypatch.setattr(client, "_check_200_response", lambda response: None) + info = Mock() + monkeypatch.setattr(oras.provider.logger, "info", info) + + client.push( + files=[artifact], + target="registry.example/repository:tag", + disable_path_validation=True, + quiet=True, + ) + + info.assert_not_called() + + @pytest.mark.with_auth(False) def test_annotated_registry_push(tmp_path, registry, credentials, target): """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oras-0.2.42/oras/version.py new/oras-0.2.43/oras/version.py --- old/oras-0.2.42/oras/version.py 2026-03-09 23:31:06.000000000 +0100 +++ new/oras-0.2.43/oras/version.py 2026-08-08 17:45:32.000000000 +0200 @@ -2,7 +2,7 @@ __copyright__ = "Copyright The ORAS Authors." __license__ = "Apache-2.0" -__version__ = "0.2.42" +__version__ = "0.2.43" AUTHOR = "Vanessa Sochat" EMAIL = "[email protected]" NAME = "oras" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oras-0.2.42/oras.egg-info/PKG-INFO new/oras-0.2.43/oras.egg-info/PKG-INFO --- old/oras-0.2.42/oras.egg-info/PKG-INFO 2026-03-09 23:31:21.000000000 +0100 +++ new/oras-0.2.43/oras.egg-info/PKG-INFO 2026-08-08 17:45:51.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: oras -Version: 0.2.42 +Version: 0.2.43 Summary: OCI Registry as Storage Python SDK Home-page: https://github.com/oras-project/oras-py Author: Vanessa Sochat
