Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-magnumclient for 
openSUSE:Factory checked in at 2026-08-09 21:35:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-magnumclient (Old)
 and      /work/SRC/openSUSE:Factory/.python-magnumclient.new.16738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-magnumclient"

Sun Aug  9 21:35:05 2026 rev:19 rq:1370111 version:4.11.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-magnumclient/python-magnumclient.changes  
2026-06-01 18:07:50.347843577 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-magnumclient.new.16738/python-magnumclient.changes
       2026-08-09 21:37:28.182594425 +0200
@@ -1,0 +2,10 @@
+Thu Aug  6 20:14:37 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 4.11.0:
+  * Add --hidden/--visible flags to cluster template update
+    command
+  * Fix tox releasenotes job
+  * Add requests-mock to test-requirements.txt
+  * Update master for stable/2026.1
+
+-------------------------------------------------------------------

Old:
----
  python_magnumclient-4.10.0.tar.gz

New:
----
  python_magnumclient-4.11.0.tar.gz

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

Other differences:
------------------
++++++ python-magnumclient.spec ++++++
--- /var/tmp/diff_new_pack.aX2DSL/_old  2026-08-09 21:37:28.630609680 +0200
+++ /var/tmp/diff_new_pack.aX2DSL/_new  2026-08-09 21:37:28.634609816 +0200
@@ -18,7 +18,7 @@
 
 %global pythons %{primary_python}
 Name:           python-magnumclient
-Version:        4.10.0
+Version:        4.11.0
 Release:        0
 Summary:        Python API and CLI for OpenStack Magnum
 License:        Apache-2.0

++++++ python_magnumclient-4.10.0.tar.gz -> python_magnumclient-4.11.0.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_magnumclient-4.10.0/AUTHORS 
new/python_magnumclient-4.11.0/AUTHORS
--- old/python_magnumclient-4.10.0/AUTHORS      2026-02-27 16:45:13.000000000 
+0100
+++ new/python_magnumclient-4.11.0/AUTHORS      2026-07-03 13:33:29.000000000 
+0200
@@ -96,6 +96,7 @@
 Pierre Riteau <[email protected]>
 Rajiv Kumar <[email protected]>
 Ricardo Rocha <[email protected]>
+Sam Morrison <[email protected]>
 Sean McGinnis <[email protected]>
 Sergey Vilgelm <[email protected]>
 Spyros Trigazis <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_magnumclient-4.10.0/ChangeLog 
new/python_magnumclient-4.11.0/ChangeLog
--- old/python_magnumclient-4.10.0/ChangeLog    2026-02-27 16:45:13.000000000 
+0100
+++ new/python_magnumclient-4.11.0/ChangeLog    2026-07-03 13:33:29.000000000 
+0200
@@ -1,6 +1,14 @@
 CHANGES
 =======
 
+4.11.0
+------
+
+* Add --hidden/--visible flags to cluster template update command
+* Fix tox releasenotes job
+* Add requests-mock to test-requirements.txt
+* Update master for stable/2026.1
+
 4.10.0
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_magnumclient-4.10.0/PKG-INFO 
new/python_magnumclient-4.11.0/PKG-INFO
--- old/python_magnumclient-4.10.0/PKG-INFO     2026-02-27 16:45:13.249911300 
+0100
+++ new/python_magnumclient-4.11.0/PKG-INFO     2026-07-03 13:33:29.930677000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: python-magnumclient
-Version: 4.10.0
+Version: 4.11.0
 Summary: Client library for Magnum API
 Home-page: https://docs.openstack.org/python-magnumclient/latest/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_magnumclient-4.10.0/magnumclient/osc/v1/cluster_templates.py 
new/python_magnumclient-4.11.0/magnumclient/osc/v1/cluster_templates.py
--- old/python_magnumclient-4.10.0/magnumclient/osc/v1/cluster_templates.py     
2026-02-27 16:44:23.000000000 +0100
+++ new/python_magnumclient-4.11.0/magnumclient/osc/v1/cluster_templates.py     
2026-07-03 13:32:44.000000000 +0200
@@ -427,27 +427,51 @@
         parser.add_argument(
             'op',
             metavar='<op>',
+            nargs='?',
             choices=['add', 'replace', 'remove'],
+            default=None,
             help=_("Operations: one of 'add', 'replace' or 'remove'"))
 
         parser.add_argument(
             'attributes',
             metavar='<path=value>',
-            nargs='+',
+            nargs='*',
             action='append',
             default=[],
             help=_(
                 "Attributes to add/replace or remove (only PATH is necessary "
                 "on remove)"))
 
+        parser.set_defaults(hidden=None)
+        parser.add_argument(
+            '--hidden',
+            dest='hidden',
+            action='store_true',
+            help=_('Hide the cluster template.'))
+
+        parser.add_argument(
+            '--visible',
+            dest='hidden',
+            action='store_false',
+            help=_('Make the cluster template visible.'))
+
         return parser
 
     def take_action(self, parsed_args):
         self.log.debug("take_action(%s)", parsed_args)
 
         mag_client = self.app.client_manager.container_infra
-        patch = magnum_utils.args_array_to_patch(parsed_args.op,
-                                                 parsed_args.attributes[0])
+        raw_attrs = parsed_args.attributes[0] if parsed_args.attributes else []
+        if parsed_args.op:
+            patch = magnum_utils.args_array_to_patch(parsed_args.op, raw_attrs)
+        else:
+            patch = []
+        if parsed_args.hidden is not None:
+            patch += [{'op': 'replace', 'path': '/hidden',
+                       'value': parsed_args.hidden}]
+        if not patch:
+            raise InvalidAttribute('At least one of op/attributes or '
+                                   '--hidden/--visible must be specified.')
         name = getattr(parsed_args, 'cluster-template', None)
         ct = mag_client.cluster_templates.update(name, patch)
         return _show_cluster_template(ct)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_magnumclient-4.10.0/magnumclient/tests/osc/unit/v1/test_cluster_templates.py
 
new/python_magnumclient-4.11.0/magnumclient/tests/osc/unit/v1/test_cluster_templates.py
--- 
old/python_magnumclient-4.10.0/magnumclient/tests/osc/unit/v1/test_cluster_templates.py
     2026-02-27 16:44:23.000000000 +0100
+++ 
new/python_magnumclient-4.11.0/magnumclient/tests/osc/unit/v1/test_cluster_templates.py
     2026-07-03 13:32:44.000000000 +0200
@@ -382,6 +382,59 @@
             [{'op': 'remove', 'path': '/bar'}]
         )
 
+    def test_cluster_template_update_hidden(self):
+        arglist = ['foo', '--hidden']
+        verifylist = [
+            ('cluster-template', 'foo'),
+            ('hidden', True),
+        ]
+        parsed_args = self.check_parser(self.cmd, arglist, verifylist)
+
+        self.cmd.take_action(parsed_args)
+        self.cluster_templates_mock.update.assert_called_with(
+            'foo',
+            [{'op': 'replace', 'path': '/hidden', 'value': True}]
+        )
+
+    def test_cluster_template_update_visible(self):
+        arglist = ['foo', '--visible']
+        verifylist = [
+            ('cluster-template', 'foo'),
+            ('hidden', False),
+        ]
+        parsed_args = self.check_parser(self.cmd, arglist, verifylist)
+
+        self.cmd.take_action(parsed_args)
+        self.cluster_templates_mock.update.assert_called_with(
+            'foo',
+            [{'op': 'replace', 'path': '/hidden', 'value': False}]
+        )
+
+    def test_cluster_template_update_with_op_and_hidden(self):
+        arglist = ['foo', 'replace', 'name=bar', '--hidden']
+        verifylist = [
+            ('cluster-template', 'foo'),
+            ('op', 'replace'),
+            ('hidden', True),
+        ]
+        parsed_args = self.check_parser(self.cmd, arglist, verifylist)
+
+        self.cmd.take_action(parsed_args)
+        self.cluster_templates_mock.update.assert_called_with(
+            'foo',
+            [{'op': 'replace', 'path': '/name', 'value': 'bar'},
+             {'op': 'replace', 'path': '/hidden', 'value': True}]
+        )
+
+    def test_cluster_template_update_no_args(self):
+        arglist = ['foo']
+        verifylist = [('cluster-template', 'foo')]
+        parsed_args = self.check_parser(self.cmd, arglist, verifylist)
+
+        self.assertRaises(
+            InvalidAttribute,
+            self.cmd.take_action, parsed_args)
+
     def test_cluster_template_update_bad_op(self):
         arglist = ['foo', 'bar', 'snafu']
         verifylist = [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_magnumclient-4.10.0/python_magnumclient.egg-info/PKG-INFO 
new/python_magnumclient-4.11.0/python_magnumclient.egg-info/PKG-INFO
--- old/python_magnumclient-4.10.0/python_magnumclient.egg-info/PKG-INFO        
2026-02-27 16:45:13.000000000 +0100
+++ new/python_magnumclient-4.11.0/python_magnumclient.egg-info/PKG-INFO        
2026-07-03 13:33:29.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: python-magnumclient
-Version: 4.10.0
+Version: 4.11.0
 Summary: Client library for Magnum API
 Home-page: https://docs.openstack.org/python-magnumclient/latest/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_magnumclient-4.10.0/python_magnumclient.egg-info/SOURCES.txt 
new/python_magnumclient-4.11.0/python_magnumclient.egg-info/SOURCES.txt
--- old/python_magnumclient-4.10.0/python_magnumclient.egg-info/SOURCES.txt     
2026-02-27 16:45:13.000000000 +0100
+++ new/python_magnumclient-4.11.0/python_magnumclient.egg-info/SOURCES.txt     
2026-07-03 13:33:29.000000000 +0200
@@ -120,6 +120,7 @@
 releasenotes/source/2024.2.rst
 releasenotes/source/2025.1.rst
 releasenotes/source/2025.2.rst
+releasenotes/source/2026.1.rst
 releasenotes/source/conf.py
 releasenotes/source/index.rst
 releasenotes/source/rocky.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_magnumclient-4.10.0/python_magnumclient.egg-info/pbr.json 
new/python_magnumclient-4.11.0/python_magnumclient.egg-info/pbr.json
--- old/python_magnumclient-4.10.0/python_magnumclient.egg-info/pbr.json        
2026-02-27 16:45:13.000000000 +0100
+++ new/python_magnumclient-4.11.0/python_magnumclient.egg-info/pbr.json        
2026-07-03 13:33:29.000000000 +0200
@@ -1 +1 @@
-{"git_version": "86936ec", "is_release": true}
\ No newline at end of file
+{"git_version": "0cee961", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_magnumclient-4.10.0/releasenotes/source/2026.1.rst 
new/python_magnumclient-4.11.0/releasenotes/source/2026.1.rst
--- old/python_magnumclient-4.10.0/releasenotes/source/2026.1.rst       
1970-01-01 01:00:00.000000000 +0100
+++ new/python_magnumclient-4.11.0/releasenotes/source/2026.1.rst       
2026-07-03 13:32:44.000000000 +0200
@@ -0,0 +1,6 @@
+===========================
+2026.1 Series Release Notes
+===========================
+
+.. release-notes::
+   :branch: stable/2026.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python_magnumclient-4.10.0/releasenotes/source/index.rst 
new/python_magnumclient-4.11.0/releasenotes/source/index.rst
--- old/python_magnumclient-4.10.0/releasenotes/source/index.rst        
2026-02-27 16:44:23.000000000 +0100
+++ new/python_magnumclient-4.11.0/releasenotes/source/index.rst        
2026-07-03 13:32:44.000000000 +0200
@@ -6,6 +6,7 @@
    :maxdepth: 1
 
    unreleased
+   2026.1
    2025.2
    2025.1
    2024.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_magnumclient-4.10.0/test-requirements.txt 
new/python_magnumclient-4.11.0/test-requirements.txt
--- old/python_magnumclient-4.10.0/test-requirements.txt        2026-02-27 
16:44:23.000000000 +0100
+++ new/python_magnumclient-4.11.0/test-requirements.txt        2026-07-03 
13:32:44.000000000 +0200
@@ -5,6 +5,7 @@
 python-openstackclient>=3.12.0 # Apache-2.0
 oslotest>=3.2.0 # Apache-2.0
 osprofiler>=1.4.0 # Apache-2.0
+requests-mock>=1.2.0 # Apache-2.0
 stestr>=2.0.0 # Apache-2.0
 testscenarios>=0.4 # Apache-2.0/BSD
 testtools>=2.2.0 # MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python_magnumclient-4.10.0/tox.ini 
new/python_magnumclient-4.11.0/tox.ini
--- old/python_magnumclient-4.10.0/tox.ini      2026-02-27 16:44:23.000000000 
+0100
+++ new/python_magnumclient-4.11.0/tox.ini      2026-07-03 13:32:44.000000000 
+0200
@@ -69,6 +69,7 @@
 [testenv:releasenotes]
 basepython = python3
 deps = -r{toxinidir}/doc/requirements.txt
+allowlist_externals = rm
 commands =
   rm -rf releasenotes/build
   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html 
releasenotes/source releasenotes/build/html

Reply via email to