Hello community, here is the log from the commit of package python-click for openSUSE:Factory checked in at 2020-06-05 20:00:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-click (Old) and /work/SRC/openSUSE:Factory/.python-click.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-click" Fri Jun 5 20:00:58 2020 rev:11 rq:811100 version:7.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-click/python-click.changes 2020-04-19 21:48:28.347960708 +0200 +++ /work/SRC/openSUSE:Factory/.python-click.new.3606/python-click.changes 2020-06-05 20:01:07.776120771 +0200 @@ -1,0 +2,10 @@ +Wed Jun 3 11:15:12 UTC 2020 - Dirk Mueller <dmuel...@suse.com> + +- update to 7.1.2: + Revert applying shell quoting to commands for ``echo_with_pager`` + and ``edit``. This was intended to allows spaces in commands, but + caused issues if the string was actually a command and arguments, or + on Windows. Instead, the string must be quoted manually as it should + appear on the command line. :issue:`1514` + +------------------------------------------------------------------- Old: ---- click-7.1.1.tar.gz New: ---- click-7.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-click.spec ++++++ --- /var/tmp/diff_new_pack.X3yIZu/_old 2020-06-05 20:01:09.444126243 +0200 +++ /var/tmp/diff_new_pack.X3yIZu/_new 2020-06-05 20:01:09.448126255 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-click -Version: 7.1.1 +Version: 7.1.2 Release: 0 Summary: A wrapper around optparse for command line utilities License: BSD-3-Clause ++++++ click-7.1.1.tar.gz -> click-7.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-7.1.1/CHANGES.rst new/click-7.1.2/CHANGES.rst --- old/click-7.1.1/CHANGES.rst 2020-03-09 19:45:31.000000000 +0100 +++ new/click-7.1.2/CHANGES.rst 2020-04-27 22:12:15.000000000 +0200 @@ -1,5 +1,17 @@ .. currentmodule:: click +Version 7.1.2 +------------- + +Released 2020-04-27 + +- Revert applying shell quoting to commands for ``echo_with_pager`` + and ``edit``. This was intended to allows spaces in commands, but + caused issues if the string was actually a command and arguments, or + on Windows. Instead, the string must be quoted manually as it should + appear on the command line. :issue:`1514` + + Version 7.1.1 ------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-7.1.1/PKG-INFO new/click-7.1.2/PKG-INFO --- old/click-7.1.1/PKG-INFO 2020-03-09 19:49:55.260986300 +0100 +++ new/click-7.1.2/PKG-INFO 2020-04-27 22:20:45.411091000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: click -Version: 7.1.1 +Version: 7.1.2 Summary: Composable command line interface toolkit Home-page: https://palletsprojects.com/p/click/ Maintainer: Pallets diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-7.1.1/docs/options.rst new/click-7.1.2/docs/options.rst --- old/click-7.1.1/docs/options.rst 2020-03-06 21:31:09.000000000 +0100 +++ new/click-7.1.2/docs/options.rst 2020-04-27 22:05:29.000000000 +0200 @@ -383,7 +383,7 @@ ``case_sensitive`` and any specified token normalization function. .. versionchanged:: 7.1 - The resulting value from an option will always be on the of the + The resulting value from an option will always be one of the originally passed choices regardless of ``case_sensitive``. .. _option-prompting: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-7.1.1/src/click/__init__.py new/click-7.1.2/src/click/__init__.py --- old/click-7.1.1/src/click/__init__.py 2020-03-09 19:45:31.000000000 +0100 +++ new/click-7.1.2/src/click/__init__.py 2020-04-27 22:12:15.000000000 +0200 @@ -76,4 +76,4 @@ # literals. disable_unicode_literals_warning = False -__version__ = "7.1.1" +__version__ = "7.1.2" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-7.1.1/src/click/_compat.py new/click-7.1.2/src/click/_compat.py --- old/click-7.1.1/src/click/_compat.py 2020-03-09 19:27:37.000000000 +0100 +++ new/click-7.1.2/src/click/_compat.py 2020-04-27 22:05:29.000000000 +0200 @@ -174,8 +174,6 @@ iteritems = lambda x: x.iteritems() range_type = xrange - from pipes import quote as shlex_quote - def is_bytes(x): return isinstance(x, (buffer, bytearray)) @@ -284,8 +282,6 @@ isidentifier = lambda x: x.isidentifier() iteritems = lambda x: iter(x.items()) - from shlex import quote as shlex_quote - def is_bytes(x): return isinstance(x, (bytes, memoryview, bytearray)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-7.1.1/src/click/_termui_impl.py new/click-7.1.2/src/click/_termui_impl.py --- old/click-7.1.1/src/click/_termui_impl.py 2020-03-09 19:27:37.000000000 +0100 +++ new/click-7.1.2/src/click/_termui_impl.py 2020-04-27 22:05:29.000000000 +0200 @@ -17,7 +17,6 @@ from ._compat import isatty from ._compat import open_stream from ._compat import range_type -from ._compat import shlex_quote from ._compat import strip_ansi from ._compat import term_len from ._compat import WIN @@ -346,10 +345,7 @@ fd, filename = tempfile.mkstemp() os.close(fd) try: - if ( - hasattr(os, "system") - and os.system("more {}".format(shlex_quote(filename))) == 0 - ): + if hasattr(os, "system") and os.system('more "{}"'.format(filename)) == 0: return _pipepager(generator, "more", color) return _nullpager(stdout, generator, color) finally: @@ -418,7 +414,7 @@ with open_stream(filename, "wb")[0] as f: f.write(text.encode(encoding)) try: - os.system("{} {}".format(shlex_quote(cmd), shlex_quote(filename))) + os.system('{} "{}"'.format(cmd, filename)) finally: os.unlink(filename) @@ -463,9 +459,7 @@ environ = None try: c = subprocess.Popen( - "{} {}".format(shlex_quote(editor), shlex_quote(filename)), - env=environ, - shell=True, + '{} "{}"'.format(editor, filename), env=environ, shell=True, ) exit_code = c.wait() if exit_code != 0: @@ -536,16 +530,18 @@ elif WIN: if locate: url = _unquote_file(url) - args = "explorer /select,{}".format(shlex_quote(url)) + args = 'explorer /select,"{}"'.format(_unquote_file(url.replace('"', ""))) else: - args = 'start {} "" {}'.format("/WAIT" if wait else "", shlex_quote(url)) + args = 'start {} "" "{}"'.format( + "/WAIT" if wait else "", url.replace('"', "") + ) return os.system(args) elif CYGWIN: if locate: url = _unquote_file(url) - args = "cygstart {}".format(shlex_quote(os.path.dirname(url))) + args = 'cygstart "{}"'.format(os.path.dirname(url).replace('"', "")) else: - args = "cygstart {} {}".format("-w" if wait else "", shlex_quote(url)) + args = 'cygstart {} "{}"'.format("-w" if wait else "", url.replace('"', "")) return os.system(args) try: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-7.1.1/src/click.egg-info/PKG-INFO new/click-7.1.2/src/click.egg-info/PKG-INFO --- old/click-7.1.1/src/click.egg-info/PKG-INFO 2020-03-09 19:49:55.000000000 +0100 +++ new/click-7.1.2/src/click.egg-info/PKG-INFO 2020-04-27 22:20:45.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: click -Version: 7.1.1 +Version: 7.1.2 Summary: Composable command line interface toolkit Home-page: https://palletsprojects.com/p/click/ Maintainer: Pallets diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/click-7.1.1/tests/test_imports.py new/click-7.1.2/tests/test_imports.py --- old/click-7.1.1/tests/test_imports.py 2020-03-09 15:19:20.000000000 +0100 +++ new/click-7.1.2/tests/test_imports.py 2020-04-27 22:05:29.000000000 +0200 @@ -49,7 +49,6 @@ "fcntl", "datetime", "pipes", - "shlex", } if WIN: