Hello community,
here is the log from the commit of package python-click-completion for
openSUSE:Factory checked in at 2019-03-26 15:44:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-click-completion (Old)
and /work/SRC/openSUSE:Factory/.python-click-completion.new.25356 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-click-completion"
Tue Mar 26 15:44:02 2019 rev:2 rq:688134 version:0.5.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-click-completion/python-click-completion.changes
2019-03-24 14:59:45.423181157 +0100
+++
/work/SRC/openSUSE:Factory/.python-click-completion.new.25356/python-click-completion.changes
2019-03-26 15:44:23.716151719 +0100
@@ -1,0 +2,11 @@
+Mon Mar 25 02:57:30 UTC 2019 - John Vandenberg <[email protected]>
+
+- Update to v0.5.1
+ * fix DeprecationWarning: invalid escape sequence on python 3.7
+ * Don't call compinit in Zsh completion code
+ * Don't show hidden commands
+ * Use better short help
+ * Escape backticks in help messages for zsh
+ * drop oh-my-zsh specific install
+
+-------------------------------------------------------------------
Old:
----
click-completion-0.5.0.tar.gz
New:
----
click-completion-0.5.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-click-completion.spec ++++++
--- /var/tmp/diff_new_pack.04nwT6/_old 2019-03-26 15:44:24.364150960 +0100
+++ /var/tmp/diff_new_pack.04nwT6/_new 2019-03-26 15:44:24.364150960 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-click-completion
-Version: 0.5.0
+Version: 0.5.1
Release: 0
Summary: Fish, Bash, Zsh and PowerShell completion for Click
License: MIT
@@ -28,8 +28,8 @@
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-click
Requires: python-Jinja2
+Requires: python-click
Requires: python-shellingham
Requires: python-six
%ifpython2
++++++ click-completion-0.5.0.tar.gz -> click-completion-0.5.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-completion-0.5.0/click_completion/__init__.py
new/click-completion-0.5.1/click_completion/__init__.py
--- old/click-completion-0.5.0/click_completion/__init__.py 2018-10-23
15:22:23.000000000 +0200
+++ new/click-completion-0.5.1/click_completion/__init__.py 2019-03-24
10:31:53.000000000 +0100
@@ -13,7 +13,7 @@
from click_completion.lib import get_auto_shell
from click_completion.patch import patch as _patch
-__version__ = '0.5.0'
+__version__ = '0.5.1'
_initialized = False
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-completion-0.5.0/click_completion/core.py
new/click-completion-0.5.1/click_completion/core.py
--- old/click-completion-0.5.0/click_completion/core.py 2018-10-23
15:22:23.000000000 +0200
+++ new/click-completion-0.5.1/click_completion/core.py 2019-03-24
10:31:53.000000000 +0100
@@ -124,8 +124,9 @@
choices.append((opt, None))
if isinstance(ctx.command, MultiCommand):
for name in ctx.command.list_commands(ctx):
- if match(name, incomplete):
- choices.append((name,
ctx.command.get_command_short_help(ctx, name)))
+ command = ctx.command.get_command(ctx, name)
+ if match(name, incomplete) and not command.hidden:
+ choices.append((name, command.get_short_help_str()))
for item, help in choices:
yield (item, help)
@@ -194,7 +195,7 @@
for item, help in get_choices(cli, prog_name, args, incomplete):
if help:
- echo("%s\t%s" % (item, re.sub('\s', ' ', help)))
+ echo("%s\t%s" % (item, re.sub(r'\s', ' ', help)))
else:
echo(item)
@@ -225,11 +226,11 @@
incomplete = ''
def escape(s):
- return s.replace('"', '""').replace("'", "''").replace('$', '\\$')
+ return s.replace('"', '""').replace("'", "''").replace('$',
'\\$').replace('`', '\\`')
res = []
for item, help in get_choices(cli, prog_name, args, incomplete):
if help:
- res.append('"%s"\:"%s"' % (escape(item), escape(help)))
+ res.append(r'"%s"\:"%s"' % (escape(item), escape(help)))
else:
res.append('"%s"' % escape(item))
if res:
@@ -342,13 +343,8 @@
path = path or os.path.expanduser('~') + '/.bash_completion'
mode = mode or 'a'
elif shell == 'zsh':
- ohmyzsh = os.path.expanduser('~') + '/.oh-my-zsh'
- if os.path.exists(ohmyzsh):
- path = path or ohmyzsh + '/completions/_%s' % prog_name
- mode = mode or 'w'
- else:
- path = path or os.path.expanduser('~') + '/.zshrc'
- mode = mode or 'a'
+ path = path or os.path.expanduser('~') + '/.zshrc'
+ mode = mode or 'a'
elif shell == 'powershell':
subprocess.check_call(['powershell', 'Set-ExecutionPolicy Unrestricted
-Scope CurrentUser'])
path = path or subprocess.check_output(['powershell', '-NoProfile',
'echo $profile']).strip() if install else ''
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/click-completion-0.5.0/click_completion/zsh.j2
new/click-completion-0.5.1/click_completion/zsh.j2
--- old/click-completion-0.5.0/click_completion/zsh.j2 2018-10-23
15:22:23.000000000 +0200
+++ new/click-completion-0.5.1/click_completion/zsh.j2 2019-03-24
10:31:53.000000000 +0100
@@ -3,6 +3,5 @@
eval $(env COMMANDLINE="${words[1,$CURRENT]}" {{complete_var}}=complete-zsh
{% for k, v in extra_env.items() %} {{k}}={{v}}{% endfor %} {{prog_name}})
}
if [[ "$(basename -- ${(%):-%x})" != "_{{prog_name}}" ]]; then
- autoload -U compinit && compinit
compdef _{{prog_name}} {{prog_name}}
fi