Hello community, here is the log from the commit of package python-knack for openSUSE:Factory checked in at 2020-05-08 23:06:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-knack (Old) and /work/SRC/openSUSE:Factory/.python-knack.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-knack" Fri May 8 23:06:27 2020 rev:11 rq:801309 version:0.7.0~rc4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-knack/python-knack.changes 2020-05-03 22:45:54.846993502 +0200 +++ /work/SRC/openSUSE:Factory/.python-knack.new.2738/python-knack.changes 2020-05-08 23:06:31.670006408 +0200 @@ -1,0 +2,9 @@ +Thu May 7 08:01:03 UTC 2020 - John Paul Adrian Glaubitz <[email protected]> + +- Update to 0.7.0rc4 + * Change the timing to raise `EVENT_CLI_POST_EXECUTE` event (#199) + * Make `CLI.invoke` catch `SystemExit` (#199) +- from version 0.7.0rc3 + * Change experimental tag color to cyan (#196) + +------------------------------------------------------------------- Old: ---- knack-0.7.0rc1.tar.gz New: ---- knack-0.7.0rc4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-knack.spec ++++++ --- /var/tmp/diff_new_pack.NMMNAN/_old 2020-05-08 23:06:32.242007576 +0200 +++ /var/tmp/diff_new_pack.NMMNAN/_new 2020-05-08 23:06:32.246007584 +0200 @@ -18,9 +18,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 -%define realver 0.7.0rc1 +%define realver 0.7.0rc4 Name: python-knack -Version: 0.7.0~rc1 +Version: 0.7.0~rc4 Release: 0 Summary: A Command-Line Interface framework License: MIT ++++++ knack-0.7.0rc1.tar.gz -> knack-0.7.0rc4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.7.0rc1/HISTORY.rst new/knack-0.7.0rc4/HISTORY.rst --- old/knack-0.7.0rc1/HISTORY.rst 2020-03-20 06:39:38.000000000 +0100 +++ new/knack-0.7.0rc4/HISTORY.rst 2020-04-22 04:41:45.000000000 +0200 @@ -3,8 +3,17 @@ Release History =============== +0.7.0rc4 +++++++++ +* Change the timing to raise `EVENT_CLI_POST_EXECUTE` event (#199) +* Make `CLI.invoke` catch `SystemExit` (#199) + +0.7.0rc3 +++++++++ +* Change experimental tag color to cyan (#196) + 0.7.0rc1 -+++++ +++++++++ * Allow disabling color (#171) * Support yaml and yamlc output (#173) * Drop support for python 2 and 3.5 (#174) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.7.0rc1/PKG-INFO new/knack-0.7.0rc4/PKG-INFO --- old/knack-0.7.0rc1/PKG-INFO 2020-03-20 06:40:24.000000000 +0100 +++ new/knack-0.7.0rc4/PKG-INFO 2020-04-22 04:41:54.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: knack -Version: 0.7.0rc1 +Version: 0.7.0rc4 Summary: A Command-Line Interface framework Home-page: https://github.com/microsoft/knack Author: Microsoft Corporation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.7.0rc1/knack/cli.py new/knack-0.7.0rc4/knack/cli.py --- old/knack-0.7.0rc1/knack/cli.py 2020-03-20 06:39:38.000000000 +0100 +++ new/knack-0.7.0rc4/knack/cli.py 2020-04-22 04:41:45.000000000 +0200 @@ -219,15 +219,20 @@ if cmd_result and cmd_result.result is not None: formatter = self.output.get_formatter(output_type) self.output.out(cmd_result, formatter=formatter, out_file=out_file) - self.raise_event(EVENT_CLI_POST_EXECUTE) except KeyboardInterrupt as ex: - self.result = CommandResultItem(None, error=ex) exit_code = 1 + self.result = CommandResultItem(None, error=ex, exit_code=exit_code) except Exception as ex: # pylint: disable=broad-except exit_code = self.exception_handler(ex) - self.result = CommandResultItem(None, error=ex) + self.result = CommandResultItem(None, error=ex, exit_code=exit_code) + except SystemExit as ex: + exit_code = ex.code + self.result = CommandResultItem(None, error=ex, exit_code=exit_code) + raise ex finally: + self.raise_event(EVENT_CLI_POST_EXECUTE) + if self.enable_color: colorama.deinit() - self.result.exit_code = exit_code + return exit_code diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.7.0rc1/knack/experimental.py new/knack-0.7.0rc4/knack/experimental.py --- old/knack-0.7.0rc1/knack/experimental.py 2020-03-20 06:39:38.000000000 +0100 +++ new/knack-0.7.0rc4/knack/experimental.py 2020-04-22 04:41:45.000000000 +0200 @@ -57,7 +57,7 @@ cli_ctx=cli_ctx, object_type=object_type, target=target, - color='red', + color='cyan', tag_func=tag_func or (lambda _: _EXPERIMENTAL_TAG), message_func=message_func or _default_get_message ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.7.0rc1/knack.egg-info/PKG-INFO new/knack-0.7.0rc4/knack.egg-info/PKG-INFO --- old/knack-0.7.0rc1/knack.egg-info/PKG-INFO 2020-03-20 06:40:24.000000000 +0100 +++ new/knack-0.7.0rc4/knack.egg-info/PKG-INFO 2020-04-22 04:41:54.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: knack -Version: 0.7.0rc1 +Version: 0.7.0rc4 Summary: A Command-Line Interface framework Home-page: https://github.com/microsoft/knack Author: Microsoft Corporation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.7.0rc1/knack.egg-info/requires.txt new/knack-0.7.0rc4/knack.egg-info/requires.txt --- old/knack-0.7.0rc1/knack.egg-info/requires.txt 2020-03-20 06:40:24.000000000 +0100 +++ new/knack-0.7.0rc4/knack.egg-info/requires.txt 2020-04-22 04:41:54.000000000 +0200 @@ -5,6 +5,3 @@ pyyaml six tabulate - -[:python_version<"3.4"] -enum34 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.7.0rc1/setup.cfg new/knack-0.7.0rc4/setup.cfg --- old/knack-0.7.0rc1/setup.cfg 2020-03-20 06:40:24.000000000 +0100 +++ new/knack-0.7.0rc4/setup.cfg 2020-04-22 04:41:54.000000000 +0200 @@ -1,6 +1,3 @@ -[bdist_wheel] -universal = 1 - [metadata] license_files = LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knack-0.7.0rc1/setup.py new/knack-0.7.0rc4/setup.py --- old/knack-0.7.0rc1/setup.py 2020-03-20 06:39:38.000000000 +0100 +++ new/knack-0.7.0rc4/setup.py 2020-04-22 04:41:45.000000000 +0200 @@ -9,7 +9,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = '0.7.0rc1' +VERSION = '0.7.0rc4' DEPENDENCIES = [ 'argcomplete', @@ -47,8 +47,5 @@ 'License :: OSI Approved :: MIT License', ], packages=['knack', 'knack.testsdk'], - install_requires=DEPENDENCIES, - extras_require={ - ':python_version<"3.4"': ['enum34'] - } + install_requires=DEPENDENCIES )
