Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-podman for openSUSE:Factory 
checked in at 2024-02-01 18:06:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-podman (Old)
 and      /work/SRC/openSUSE:Factory/.python-podman.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-podman"

Thu Feb  1 18:06:20 2024 rev:16 rq:1143399 version:4.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-podman/python-podman.changes      
2024-01-21 23:08:27.065712822 +0100
+++ /work/SRC/openSUSE:Factory/.python-podman.new.1815/python-podman.changes    
2024-02-01 18:07:39.544040275 +0100
@@ -1,0 +2,24 @@
+Tue Jan 23 17:56:26 UTC 2024 - Johannes Kastl 
<opensuse_buildserv...@ojkastl.de>
+
+-  update to 4.9.0:
+   * Add rich dep to setup.cfg by @umohnani8 in
+     https://github.com/containers/podman-py/pull/353
+   * Fix lint issues by @umohnani8 in
+     https://github.com/containers/podman-py/pull/358
+   * Update dependency containers/automation_images to v20231208 by
+     @renovate in https://github.com/containers/podman-py/pull/355
+   * Bump main to 4.9.0-dev by @umohnani8 in
+     https://github.com/containers/podman-py/pull/348
+   * Make progress_bar an extra feature by @yselkowitz in
+     https://github.com/containers/podman-py/pull/361
+   * Enable user defined netns by @dcasier in
+     https://github.com/containers/podman-py/pull/364
+   * Update dependency containers/automation_images to v20240102 by
+     @renovate in https://github.com/containers/podman-py/pull/365
+   * Fix the 'max_pool_size' parameter passing for Adapters by
+     @milanbalazs in
+     https://github.com/containers/podman-py/pull/366
+   * Bump version to v4.9 by @umohnani8 in
+     https://github.com/containers/podman-py/pull/367
+
+-------------------------------------------------------------------

Old:
----
  podman-4.8.2.tar.gz

New:
----
  podman-4.9.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-podman.spec ++++++
--- /var/tmp/diff_new_pack.O8xLrt/_old  2024-02-01 18:07:40.032058074 +0100
+++ /var/tmp/diff_new_pack.O8xLrt/_new  2024-02-01 18:07:40.036058219 +0100
@@ -26,7 +26,7 @@
 %bcond_with test
 %endif
 Name:           python-podman%{psuffix}
-Version:        4.8.2
+Version:        4.9.0
 Release:        0
 Summary:        A library to interact with a Podman server
 License:        Apache-2.0

++++++ podman-4.8.2.tar.gz -> podman-4.9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/podman-py-4.8.2/.cirrus.yml 
new/podman-py-4.9.0/.cirrus.yml
--- old/podman-py-4.8.2/.cirrus.yml     2024-01-03 14:39:25.000000000 +0100
+++ new/podman-py-4.9.0/.cirrus.yml     2024-01-22 17:13:30.000000000 +0100
@@ -14,10 +14,10 @@
     ####
     #### Cache-image names to test with (double-quotes around names are 
critical)
     ####
-    FEDORA_NAME: "fedora-38"
+    FEDORA_NAME: "fedora-39"
 
     # Google-cloud VM Images
-    IMAGE_SUFFIX: "c20231116t174419z-f39f38d13"
+    IMAGE_SUFFIX: "c20240102t155643z-f39f38d13"
     FEDORA_CACHE_IMAGE_NAME: "fedora-podman-py-${IMAGE_SUFFIX}"
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/podman-py-4.8.2/Makefile new/podman-py-4.9.0/Makefile
--- old/podman-py-4.8.2/Makefile        2024-01-03 14:39:25.000000000 +0100
+++ new/podman-py-4.9.0/Makefile        2024-01-22 17:13:30.000000000 +0100
@@ -8,7 +8,7 @@
 EPOCH_TEST_COMMIT ?= $(shell git merge-base $${DEST_BRANCH:-main} HEAD)
 HEAD ?= HEAD
 
-export PODMAN_VERSION ?= "4.8.2"
+export PODMAN_VERSION ?= "4.9.0"
 
 .PHONY: podman
 podman:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/podman-py-4.8.2/podman/api/client.py 
new/podman-py-4.9.0/podman/api/client.py
--- old/podman-py-4.8.2/podman/api/client.py    2024-01-03 14:39:25.000000000 
+0100
+++ new/podman-py-4.9.0/podman/api/client.py    2024-01-22 17:13:30.000000000 
+0100
@@ -1,6 +1,7 @@
 """APIClient for connecting to Podman service."""
 
 import json
+import warnings
 import urllib.parse
 from typing import Any, ClassVar, IO, Iterable, List, Mapping, Optional, 
Tuple, Type, Union
 
@@ -28,6 +29,16 @@
 """Type alias for request timeout parameter."""
 
 
+class ParameterDeprecationWarning(DeprecationWarning):
+    """
+    Custom DeprecationWarning for deprecated parameters.
+    """
+
+
+# Make the ParameterDeprecationWarning visible for user.
+warnings.simplefilter('always', ParameterDeprecationWarning)
+
+
 class APIResponse:
     """APIResponse proxy requests.Response objects.
 
@@ -89,7 +100,8 @@
         num_pools: Optional[int] = None,
         credstore_env: Optional[Mapping[str, str]] = None,
         use_ssh_client=True,
-        max_pools_size=None,
+        max_pool_size=None,
+        max_pools_size=None,  # This parameter is kept only for backward 
compatibility.
         **kwargs,
     ):  # pylint: disable=unused-argument
         """Instantiate APIClient object.
@@ -103,6 +115,7 @@
             num_pools: The number of connection pools to cache.
             credstore_env: Environment for storing credentials.
             use_ssh_client: Use system ssh agent rather than ssh module. 
Always, True.
+            max_pools_size: Deprecated! Please use 'max_pool_size'.
             max_pool_size: Override number of connections pools to maintain.
                 Default: requests.adapters.DEFAULT_POOLSIZE
 
@@ -117,10 +130,32 @@
         self.base_url = self._normalize_url(base_url)
 
         adapter_kwargs = kwargs.copy()
+
+        # The HTTPAdapter doesn't handle the "**kwargs", so it needs special 
structure
+        # where the parameters are set specifically.
+        http_adapter_kwargs = {}
+
+        # 'max_pools_size' has been changed to 'max_pool_size'
+        # and the below section is needed for backward compatible.
+        # This section can be removed in a future release.
+        if max_pools_size is not None:
+            warnings.warn(
+                "'max_pools_size' parameter is deprecated! Please use 
'max_pool_size' parameter.",
+                ParameterDeprecationWarning,
+            )
+            if max_pool_size is not None:
+                raise ValueError(
+                    "Both of 'max_pools_size' and 'max_pool_size' parameters 
are set. "
+                    "Please use only the 'max_pool_size', 'max_pools_size' is 
deprecated!"
+                )
+            max_pool_size = max_pools_size
+
         if num_pools is not None:
             adapter_kwargs["pool_connections"] = num_pools
-        if max_pools_size is not None:
-            adapter_kwargs["pool_maxsize"] = max_pools_size
+            http_adapter_kwargs["pool_connections"] = num_pools
+        if max_pool_size is not None:
+            adapter_kwargs["pool_maxsize"] = max_pool_size
+            http_adapter_kwargs["pool_maxsize"] = max_pool_size
         if timeout is not None:
             adapter_kwargs["timeout"] = timeout
 
@@ -133,8 +168,8 @@
             self.mount("https://";, SSHAdapter(self.base_url.geturl(), 
**adapter_kwargs))
 
         elif self.base_url.scheme == "http":
-            self.mount("http://";, HTTPAdapter(**adapter_kwargs))
-            self.mount("https://";, HTTPAdapter(**adapter_kwargs))
+            self.mount("http://";, HTTPAdapter(**http_adapter_kwargs))
+            self.mount("https://";, HTTPAdapter(**http_adapter_kwargs))
         else:
             assert False, "APIClient.supported_schemes changed without adding 
a branch here."
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/podman-py-4.8.2/podman/domain/containers_create.py 
new/podman-py-4.9.0/podman/domain/containers_create.py
--- old/podman-py-4.8.2/podman/domain/containers_create.py      2024-01-03 
14:39:25.000000000 +0100
+++ new/podman-py-4.9.0/podman/domain/containers_create.py      2024-01-22 
17:13:30.000000000 +0100
@@ -163,6 +163,7 @@
                 - container:<name|id>: Reuse another container's network
                   stack.
                 - host: Use the host network stack.
+                - ns:<path>: User defined netns path.
 
                 Incompatible with network.
             oom_kill_disable (bool): Whether to disable OOM killer.
@@ -700,7 +701,12 @@
             params["ipcns"] = {"nsmode": args.pop("ipc_mode")}
 
         if "network_mode" in args:
-            params["netns"] = {"nsmode": args.pop("network_mode")}
+            network_mode = args.pop("network_mode")
+            details = network_mode.split(":")
+            if len(details) == 2 and details[0] == "ns":
+                params["netns"] = {"nsmode": "path", "value": details[1]}
+            else:
+                params["netns"] = {"nsmode": network_mode}
 
         if "pid_mode" in args:
             params["pidns"] = {"nsmode": args.pop("pid_mode")}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/podman-py-4.8.2/podman/tests/__init__.py 
new/podman-py-4.9.0/podman/tests/__init__.py
--- old/podman-py-4.8.2/podman/tests/__init__.py        2024-01-03 
14:39:25.000000000 +0100
+++ new/podman-py-4.9.0/podman/tests/__init__.py        2024-01-22 
17:13:30.000000000 +0100
@@ -3,5 +3,5 @@
 # Do not auto-update these from version.py,
 #   as test code should be changed to reflect changes in Podman API versions
 BASE_SOCK = "unix:///run/api.sock"
-LIBPOD_URL = "http://%2Frun%2Fapi.sock/v4.8.2/libpod";
+LIBPOD_URL = "http://%2Frun%2Fapi.sock/v4.9.0/libpod";
 COMPATIBLE_URL = "http://%2Frun%2Fapi.sock/v1.40";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/podman-py-4.8.2/podman/version.py 
new/podman-py-4.9.0/podman/version.py
--- old/podman-py-4.8.2/podman/version.py       2024-01-03 14:39:25.000000000 
+0100
+++ new/podman-py-4.9.0/podman/version.py       2024-01-22 17:13:30.000000000 
+0100
@@ -1,4 +1,4 @@
 """Version of PodmanPy."""
 
-__version__ = "4.8.2"
+__version__ = "4.9.0"
 __compatible_version__ = "1.40"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/podman-py-4.8.2/setup.cfg 
new/podman-py-4.9.0/setup.cfg
--- old/podman-py-4.8.2/setup.cfg       2024-01-03 14:39:25.000000000 +0100
+++ new/podman-py-4.9.0/setup.cfg       2024-01-22 17:13:30.000000000 +0100
@@ -1,6 +1,6 @@
 [metadata]
 name = podman
-version = 4.8.2
+version = 4.9.0
 author = Brent Baude, Jhon Honce
 author_email = jho...@redhat.com
 description = Bindings for Podman RESTful API

Reply via email to