Hello community, here is the log from the commit of package python-knack for openSUSE:Factory checked in at 2018-05-13 16:04:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-knack (Old) and /work/SRC/openSUSE:Factory/.python-knack.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-knack" Sun May 13 16:04:33 2018 rev:2 rq:603138 version:0.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-knack/python-knack.changes 2018-02-13 10:32:09.963120973 +0100 +++ /work/SRC/openSUSE:Factory/.python-knack.new/python-knack.changes 2018-05-13 16:04:35.243377470 +0200 @@ -1,0 +2,9 @@ +Wed May 2 13:54:59 UTC 2018 - [email protected] + +- New upstream release + + Version 0.3.2 + + ArgumentsContext.ignore() should use hidden options_list (#76) + + Consolidate exception handling (#66) +- Fix bogus comment in spec file + +------------------------------------------------------------------- Old: ---- knack-0.3.1.tar.gz New: ---- knack-0.3.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-knack.spec ++++++ --- /var/tmp/diff_new_pack.tD6JYO/_old 2018-05-13 16:04:35.843355582 +0200 +++ /var/tmp/diff_new_pack.tD6JYO/_new 2018-05-13 16:04:35.847355436 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-msrestazure +# spec file for package python-knack # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-knack -Version: 0.3.1 +Version: 0.3.2 Release: 0 Summary: A Command-Line Interface framework License: MIT @@ -30,11 +30,11 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-PyYAML Requires: python-argcomplete Requires: python-colorama Requires: python-jmespath Requires: python-pygments -Requires: python-PyYAML Requires: python-six Requires: python-tabulate BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ knack-0.3.1.tar.gz -> knack-0.3.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.3.1/PKG-INFO new/knack-0.3.2/PKG-INFO --- old/knack-0.3.1/PKG-INFO 2018-01-09 18:11:38.000000000 +0100 +++ new/knack-0.3.2/PKG-INFO 2018-03-16 17:00:24.000000000 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: knack -Version: 0.3.1 +Version: 0.3.2 Summary: A Command-Line Interface framework Home-page: https://github.com/microsoft/knack Author: Microsoft Corporation @@ -41,7 +41,7 @@ ------------ - .. note:: 🚨 The project is in `initial development phase <https://semver.org/#how-should-i-deal-with-revisions-in-the-0yz-initial-development-phase>`__ . We recommend pinning to at least a specific minor version when marking **knack** as a dependency in your project. + .. note:: The project is in `initial development phase <https://semver.org/#how-should-i-deal-with-revisions-in-the-0yz-initial-development-phase>`__ . We recommend pinning to at least a specific minor version when marking **knack** as a dependency in your project. ------------ @@ -149,3 +149,4 @@ Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: License :: OSI Approved :: MIT License +Provides-Extra: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.3.1/README.rst new/knack-0.3.2/README.rst --- old/knack-0.3.1/README.rst 2018-01-09 18:10:40.000000000 +0100 +++ new/knack-0.3.2/README.rst 2018-03-16 16:59:17.000000000 +0100 @@ -33,7 +33,7 @@ ------------ -.. note:: 🚨 The project is in `initial development phase <https://semver.org/#how-should-i-deal-with-revisions-in-the-0yz-initial-development-phase>`__ . We recommend pinning to at least a specific minor version when marking **knack** as a dependency in your project. +.. note:: The project is in `initial development phase <https://semver.org/#how-should-i-deal-with-revisions-in-the-0yz-initial-development-phase>`__ . We recommend pinning to at least a specific minor version when marking **knack** as a dependency in your project. ------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.3.1/knack/arguments.py new/knack-0.3.2/knack/arguments.py --- old/knack-0.3.1/knack/arguments.py 2018-01-09 18:10:40.000000000 +0100 +++ new/knack-0.3.2/knack/arguments.py 2018-03-16 16:59:17.000000000 +0100 @@ -164,7 +164,8 @@ :param argument_dest: The destination argument to apply the ignore type to :type argument_dest: str """ - self.argument(argument_dest, arg_type=ignore_type) + dest_option = ['--__{}'.format(argument_dest.upper())] + self.argument(argument_dest, arg_type=ignore_type, options_list=dest_option) def extra(self, argument_dest, **kwargs): """Register extra parameters for the given command. Typically used to augment auto-command built diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.3.1/knack/cli.py new/knack-0.3.2/knack/cli.py --- old/knack-0.3.1/knack/cli.py 2018-01-09 18:10:40.000000000 +0100 +++ new/knack-0.3.2/knack/cli.py 2018-03-16 16:59:17.000000000 +0100 @@ -157,8 +157,11 @@ func(self, **kwargs) def exception_handler(self, ex): # pylint: disable=no-self-use - """ The default exception handler for unknown CLI exceptions. """ - logger.exception(ex) + """ The default exception handler """ + if isinstance(ex, CLIError): + logger.error(ex) + else: + logger.exception(ex) return 1 def invoke(self, args, initial_invocation_data=None, out_file=None): @@ -198,9 +201,6 @@ self.output.out(cmd_result, formatter=formatter, out_file=out_file) self.raise_event(EVENT_CLI_POST_EXECUTE) exit_code = 0 - except CLIError as ex: - logger.error(ex) - exit_code = 1 except KeyboardInterrupt: exit_code = 1 except Exception as ex: # pylint: disable=broad-except diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.3.1/knack.egg-info/PKG-INFO new/knack-0.3.2/knack.egg-info/PKG-INFO --- old/knack-0.3.1/knack.egg-info/PKG-INFO 2018-01-09 18:11:38.000000000 +0100 +++ new/knack-0.3.2/knack.egg-info/PKG-INFO 2018-03-16 17:00:24.000000000 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: knack -Version: 0.3.1 +Version: 0.3.2 Summary: A Command-Line Interface framework Home-page: https://github.com/microsoft/knack Author: Microsoft Corporation @@ -41,7 +41,7 @@ ------------ - .. note:: 🚨 The project is in `initial development phase <https://semver.org/#how-should-i-deal-with-revisions-in-the-0yz-initial-development-phase>`__ . We recommend pinning to at least a specific minor version when marking **knack** as a dependency in your project. + .. note:: The project is in `initial development phase <https://semver.org/#how-should-i-deal-with-revisions-in-the-0yz-initial-development-phase>`__ . We recommend pinning to at least a specific minor version when marking **knack** as a dependency in your project. ------------ @@ -149,3 +149,4 @@ Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: License :: OSI Approved :: MIT License +Provides-Extra: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.3.1/setup.py new/knack-0.3.2/setup.py --- old/knack-0.3.1/setup.py 2018-01-09 18:10:40.000000000 +0100 +++ new/knack-0.3.2/setup.py 2018-03-16 16:59:17.000000000 +0100 @@ -9,7 +9,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = '0.3.1' +VERSION = '0.3.2' DEPENDENCIES = [ 'argcomplete',
