Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-osc-lib for openSUSE:Factory checked in at 2022-05-25 20:34:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-osc-lib (Old) and /work/SRC/openSUSE:Factory/.python-osc-lib.new.2254 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-osc-lib" Wed May 25 20:34:30 2022 rev:16 rq:979070 version:2.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-osc-lib/python-osc-lib.changes 2021-12-07 00:02:07.771981435 +0100 +++ /work/SRC/openSUSE:Factory/.python-osc-lib.new.2254/python-osc-lib.changes 2022-05-25 20:34:47.780247243 +0200 @@ -1,0 +2,9 @@ +Tue May 24 21:07:14 UTC 2022 - [email protected] + +- update to version 2.5.0 + - Add Python3 yoga unit tests + - Update master for stable/xena + - Replace allow_get check with allow_fetch + - parseractions: Make key validation reusable + +------------------------------------------------------------------- Old: ---- osc-lib-2.4.2.tar.gz New: ---- osc-lib-2.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-osc-lib.spec ++++++ --- /var/tmp/diff_new_pack.2mkqKp/_old 2022-05-25 20:34:48.260247913 +0200 +++ /var/tmp/diff_new_pack.2mkqKp/_new 2022-05-25 20:34:48.264247918 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-osc-lib # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,19 +17,17 @@ Name: python-osc-lib -Version: 2.4.2 +Version: 2.5.0 Release: 0 Summary: OpenStackClient Library License: Apache-2.0 Group: Development/Languages/Python URL: https://docs.openstack.org/developer/osc-lib -Source0: https://files.pythonhosted.org/packages/source/o/osc-lib/osc-lib-2.4.2.tar.gz +Source0: https://files.pythonhosted.org/packages/source/o/osc-lib/osc-lib-2.5.0.tar.gz BuildRequires: openstack-macros -BuildRequires: python3-Babel BuildRequires: python3-cliff >= 3.2.0 BuildRequires: python3-fixtures BuildRequires: python3-keystoneauth1 >= 3.14.0 -BuildRequires: python3-mock BuildRequires: python3-openstacksdk >= 0.15.0 BuildRequires: python3-oslo.i18n >= 3.15.3 BuildRequires: python3-oslo.utils >= 3.33.0 @@ -50,7 +48,6 @@ %package -n python3-osc-lib Summary: OpenStackClient Library -Requires: python3-Babel Requires: python3-cliff >= 3.2.0 Requires: python3-keystoneauth1 >= 3.14.0 Requires: python3-openstacksdk >= 0.15.0 @@ -78,7 +75,7 @@ Documentation for the OpenStack client library. %prep -%autosetup -p1 -n osc-lib-2.4.2 +%autosetup -p1 -n osc-lib-2.5.0 %py_req_cleanup %build ++++++ _service ++++++ --- /var/tmp/diff_new_pack.2mkqKp/_old 2022-05-25 20:34:48.296247963 +0200 +++ /var/tmp/diff_new_pack.2mkqKp/_new 2022-05-25 20:34:48.312247986 +0200 @@ -2,7 +2,7 @@ <service mode="disabled" name="renderspec"> <param name="input-template">https://opendev.org/openstack/rpm-packaging/raw/master/openstack/osc-lib/osc-lib.spec.j2</param> <param name="output-name">python-osc-lib.spec</param> - <param name="requirements">https://opendev.org/openstack/osc-lib/raw/branch/stable/xena/requirements.txt</param> + <param name="requirements">https://opendev.org/openstack/osc-lib/raw/branch/master/requirements.txt</param> <param name="changelog-email">[email protected]</param> <param name="changelog-provider">gh,openstack,osc-lib</param> </service> ++++++ osc-lib-2.4.2.tar.gz -> osc-lib-2.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/.zuul.yaml new/osc-lib-2.5.0/.zuul.yaml --- old/osc-lib-2.4.2/.zuul.yaml 2021-08-25 09:45:09.000000000 +0200 +++ new/osc-lib-2.5.0/.zuul.yaml 2022-02-18 16:48:26.000000000 +0100 @@ -3,7 +3,7 @@ templates: - check-requirements - openstack-lower-constraints-jobs - - openstack-python3-xena-jobs + - openstack-python3-yoga-jobs - osc-tox-unit-tips - publish-openstack-docs-pti - release-notes-jobs-python3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/ChangeLog new/osc-lib-2.5.0/ChangeLog --- old/osc-lib-2.4.2/ChangeLog 2021-08-25 09:45:43.000000000 +0200 +++ new/osc-lib-2.5.0/ChangeLog 2022-02-18 16:49:19.000000000 +0100 @@ -1,6 +1,13 @@ CHANGES ======= +2.5.0 +----- + +* Replace allow\_get check with allow\_fetch +* Add Python3 yoga unit tests +* Update master for stable/xena + 2.4.2 ----- @@ -18,6 +25,7 @@ * Add Python3 xena unit tests * Update master for stable/wallaby +* parseractions: Make key validation reusable 2.3.1 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/PKG-INFO new/osc-lib-2.5.0/PKG-INFO --- old/osc-lib-2.4.2/PKG-INFO 2021-08-25 09:45:44.136804600 +0200 +++ new/osc-lib-2.5.0/PKG-INFO 2022-02-18 16:49:19.960379400 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: osc-lib -Version: 2.4.2 +Version: 2.5.0 Summary: OpenStackClient Library Home-page: https://docs.openstack.org/osc-lib/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/osc_lib/cli/parseractions.py new/osc-lib-2.5.0/osc_lib/cli/parseractions.py --- old/osc-lib-2.4.2/osc_lib/cli/parseractions.py 2021-08-25 09:45:09.000000000 +0200 +++ new/osc-lib-2.5.0/osc_lib/cli/parseractions.py 2022-02-18 16:48:26.000000000 +0100 @@ -114,32 +114,15 @@ raise TypeError(msg) self.optional_keys = set(optional_keys or []) - def __call__(self, parser, namespace, values, metavar=None): - # Make sure we have an empty list rather than None - if getattr(namespace, self.dest, None) is None: - setattr(namespace, self.dest, []) - - params = {} - for kv in values.split(','): - # Add value if an assignment else raise ArgumentTypeError - if '=' in kv: - kv_list = kv.split('=', 1) - # NOTE(qtang): Prevent null key setting in property - if '' == kv_list[0]: - msg = _("Each property key must be specified: %s") - raise argparse.ArgumentTypeError(msg % str(kv)) - else: - params.update([kv_list]) - else: - msg = _( - "Expected comma separated 'key=value' pairs, but got: %s" - ) - raise argparse.ArgumentTypeError(msg % str(kv)) + def validate_keys(self, keys): + """Validate the provided keys. + :param keys: A list of keys to validate. + """ # Check key validation valid_keys = self.required_keys | self.optional_keys if valid_keys: - invalid_keys = [k for k in params if k not in valid_keys] + invalid_keys = [k for k in keys if k not in valid_keys] if invalid_keys: msg = _( "Invalid keys %(invalid_keys)s specified.\n" @@ -151,7 +134,7 @@ }) if self.required_keys: - missing_keys = [k for k in self.required_keys if k not in params] + missing_keys = [k for k in self.required_keys if k not in keys] if missing_keys: msg = _( "Missing required keys %(missing_keys)s.\n" @@ -162,6 +145,31 @@ 'required_keys': ', '.join(self.required_keys), }) + def __call__(self, parser, namespace, values, metavar=None): + # Make sure we have an empty list rather than None + if getattr(namespace, self.dest, None) is None: + setattr(namespace, self.dest, []) + + params = {} + for kv in values.split(','): + # Add value if an assignment else raise ArgumentTypeError + if '=' in kv: + kv_list = kv.split('=', 1) + # NOTE(qtang): Prevent null key setting in property + if '' == kv_list[0]: + msg = _("Each property key must be specified: %s") + raise argparse.ArgumentTypeError(msg % str(kv)) + else: + params.update([kv_list]) + else: + msg = _( + "Expected comma separated 'key=value' pairs, but got: %s" + ) + raise argparse.ArgumentTypeError(msg % str(kv)) + + # Check key validation + self.validate_keys(list(params)) + # Update the dest dict getattr(namespace, self.dest, []).append(params) @@ -208,30 +216,7 @@ raise argparse.ArgumentTypeError(msg % str(kv)) # Check key validation - valid_keys = self.required_keys | self.optional_keys - if valid_keys: - invalid_keys = [k for k in params if k not in valid_keys] - if invalid_keys: - msg = _( - "Invalid keys %(invalid_keys)s specified.\n" - "Valid keys are: %(valid_keys)s" - ) - raise argparse.ArgumentTypeError(msg % { - 'invalid_keys': ', '.join(invalid_keys), - 'valid_keys': ', '.join(valid_keys), - }) - - if self.required_keys: - missing_keys = [k for k in self.required_keys if k not in params] - if missing_keys: - msg = _( - "Missing required keys %(missing_keys)s.\n" - "Required keys are: %(required_keys)s" - ) - raise argparse.ArgumentTypeError(msg % { - 'missing_keys': ', '.join(missing_keys), - 'required_keys': ', '.join(self.required_keys), - }) + self.validate_keys(list(params)) # Update the dest dict getattr(namespace, self.dest, []).append(params) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/osc_lib/utils/__init__.py new/osc-lib-2.5.0/osc_lib/utils/__init__.py --- old/osc-lib-2.4.2/osc_lib/utils/__init__.py 2021-08-25 09:45:09.000000000 +0200 +++ new/osc-lib-2.5.0/osc_lib/utils/__init__.py 2022-02-18 16:48:26.000000000 +0100 @@ -723,10 +723,15 @@ columns """ - if getattr(sdk_resource, 'allow_get', None) is not None: + if getattr(sdk_resource, 'allow_fetch', None) is not None: + # OSC at the moment lands here with FakeResource objects which are not + # 100% sdk compatible. Unless we introduce SDK test/fake resources we + # should check presence of the specific method resource_dict = sdk_resource.to_dict( body=True, headers=False, ignore_none=False) else: + # We might land here with not a real SDK Resource (during the + # transition period). resource_dict = sdk_resource # Build the OSC column names to display for the SDK resource. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/osc_lib.egg-info/PKG-INFO new/osc-lib-2.5.0/osc_lib.egg-info/PKG-INFO --- old/osc-lib-2.4.2/osc_lib.egg-info/PKG-INFO 2021-08-25 09:45:44.000000000 +0200 +++ new/osc-lib-2.5.0/osc_lib.egg-info/PKG-INFO 2022-02-18 16:49:19.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: osc-lib -Version: 2.4.2 +Version: 2.5.0 Summary: OpenStackClient Library Home-page: https://docs.openstack.org/osc-lib/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/osc_lib.egg-info/SOURCES.txt new/osc-lib-2.5.0/osc_lib.egg-info/SOURCES.txt --- old/osc-lib-2.4.2/osc_lib.egg-info/SOURCES.txt 2021-08-25 09:45:44.000000000 +0200 +++ new/osc-lib-2.5.0/osc_lib.egg-info/SOURCES.txt 2022-02-18 16:49:19.000000000 +0100 @@ -109,5 +109,6 @@ releasenotes/source/ussuri.rst releasenotes/source/victoria.rst releasenotes/source/wallaby.rst +releasenotes/source/xena.rst releasenotes/source/_static/.placeholder releasenotes/source/_templates/.placeholder \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/osc_lib.egg-info/pbr.json new/osc-lib-2.5.0/osc_lib.egg-info/pbr.json --- old/osc-lib-2.4.2/osc_lib.egg-info/pbr.json 2021-08-25 09:45:43.000000000 +0200 +++ new/osc-lib-2.5.0/osc_lib.egg-info/pbr.json 2022-02-18 16:49:19.000000000 +0100 @@ -1 +1 @@ -{"git_version": "415a6c7", "is_release": true} \ No newline at end of file +{"git_version": "78d276e", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/releasenotes/source/index.rst new/osc-lib-2.5.0/releasenotes/source/index.rst --- old/osc-lib-2.4.2/releasenotes/source/index.rst 2021-08-25 09:45:09.000000000 +0200 +++ new/osc-lib-2.5.0/releasenotes/source/index.rst 2022-02-18 16:48:26.000000000 +0100 @@ -6,6 +6,7 @@ :maxdepth: 1 unreleased + xena wallaby victoria ussuri diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/osc-lib-2.4.2/releasenotes/source/xena.rst new/osc-lib-2.5.0/releasenotes/source/xena.rst --- old/osc-lib-2.4.2/releasenotes/source/xena.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/osc-lib-2.5.0/releasenotes/source/xena.rst 2022-02-18 16:48:26.000000000 +0100 @@ -0,0 +1,6 @@ +========================= +Xena Series Release Notes +========================= + +.. release-notes:: + :branch: stable/xena
