Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-click for openSUSE:Factory 
checked in at 2023-09-08 21:14:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-click (Old)
 and      /work/SRC/openSUSE:Factory/.python-click.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-click"

Fri Sep  8 21:14:58 2023 rev:22 rq:1109509 version:8.1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-click/python-click.changes        
2023-08-03 17:27:09.362809430 +0200
+++ /work/SRC/openSUSE:Factory/.python-click.new.1766/python-click.changes      
2023-09-08 21:15:08.341608537 +0200
@@ -1,0 +2,9 @@
+Thu Sep  7 10:58:54 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 8.1.7:
+  * Fix issue with regex flags in shell completion.
+  * Bash version detection issues a warning instead of an
+    error.
+  * Fix issue with completion script for Fish shell.
+
+-------------------------------------------------------------------

Old:
----
  click-8.1.6.tar.gz

New:
----
  click-8.1.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-click.spec ++++++
--- /var/tmp/diff_new_pack.0QvOzf/_old  2023-09-08 21:15:09.653655429 +0200
+++ /var/tmp/diff_new_pack.0QvOzf/_new  2023-09-08 21:15:09.657655572 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-click
-Version:        8.1.6
+Version:        8.1.7
 Release:        0
 Summary:        A wrapper around optparse for command line utilities
 License:        BSD-3-Clause

++++++ click-8.1.6.tar.gz -> click-8.1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-8.1.6/CHANGES.rst new/click-8.1.7/CHANGES.rst
--- old/click-8.1.6/CHANGES.rst 2023-07-18 22:00:45.000000000 +0200
+++ new/click-8.1.7/CHANGES.rst 2023-08-17 19:25:39.000000000 +0200
@@ -1,5 +1,15 @@
 .. currentmodule:: click
 
+Version 8.1.7
+-------------
+
+Released 2023-08-17
+
+-   Fix issue with regex flags in shell completion. :issue:`2581`
+-   Bash version detection issues a warning instead of an error. :issue:`2574`
+-   Fix issue with completion script for Fish shell. :issue:`2567`
+
+
 Version 8.1.6
 -------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-8.1.6/PKG-INFO new/click-8.1.7/PKG-INFO
--- old/click-8.1.6/PKG-INFO    2023-07-18 22:00:54.836902100 +0200
+++ new/click-8.1.7/PKG-INFO    2023-08-17 19:25:48.840442400 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: click
-Version: 8.1.6
+Version: 8.1.7
 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-8.1.6/docs/shell-completion.rst 
new/click-8.1.7/docs/shell-completion.rst
--- old/click-8.1.6/docs/shell-completion.rst   2023-07-18 22:00:45.000000000 
+0200
+++ new/click-8.1.7/docs/shell-completion.rst   2023-08-17 19:25:39.000000000 
+0200
@@ -62,7 +62,7 @@
 
         .. code-block:: fish
 
-            eval (env _FOO_BAR_COMPLETE=fish_source foo-bar)
+            _FOO_BAR_COMPLETE=fish_source foo-bar | source
 
         This is the same file used for the activation script method
         below. For Fish it's probably always easier to use that method.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-8.1.6/src/click/__init__.py 
new/click-8.1.7/src/click/__init__.py
--- old/click-8.1.6/src/click/__init__.py       2023-07-18 22:00:45.000000000 
+0200
+++ new/click-8.1.7/src/click/__init__.py       2023-08-17 19:25:39.000000000 
+0200
@@ -70,4 +70,4 @@
 from .utils import get_text_stream as get_text_stream
 from .utils import open_file as open_file
 
-__version__ = "8.1.6"
+__version__ = "8.1.7"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-8.1.6/src/click/_compat.py 
new/click-8.1.7/src/click/_compat.py
--- old/click-8.1.6/src/click/_compat.py        2023-07-18 22:00:45.000000000 
+0200
+++ new/click-8.1.7/src/click/_compat.py        2023-08-17 19:25:39.000000000 
+0200
@@ -516,7 +516,7 @@
 
     _ansi_stream_wrappers: t.MutableMapping[t.TextIO, t.TextIO] = 
WeakKeyDictionary()
 
-    def auto_wrap_for_ansi(
+    def auto_wrap_for_ansi(  # noqa: F811
         stream: t.TextIO, color: t.Optional[bool] = None
     ) -> t.TextIO:
         """Support ANSI color and style codes on Windows by wrapping a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-8.1.6/src/click/shell_completion.py 
new/click-8.1.7/src/click/shell_completion.py
--- old/click-8.1.6/src/click/shell_completion.py       2023-07-18 
22:00:45.000000000 +0200
+++ new/click-8.1.7/src/click/shell_completion.py       2023-08-17 
19:25:39.000000000 +0200
@@ -167,25 +167,25 @@
 """
 
 _SOURCE_FISH = """\
-function %(complete_func)s
+function %(complete_func)s;
     set -l response (env %(complete_var)s=fish_complete 
COMP_WORDS=(commandline -cp) \
-COMP_CWORD=(commandline -t) %(prog_name)s)
+COMP_CWORD=(commandline -t) %(prog_name)s);
 
-    for completion in $response
-        set -l metadata (string split "," $completion)
+    for completion in $response;
+        set -l metadata (string split "," $completion);
 
-        if test $metadata[1] = "dir"
-            __fish_complete_directories $metadata[2]
-        else if test $metadata[1] = "file"
-            __fish_complete_path $metadata[2]
-        else if test $metadata[1] = "plain"
-            echo $metadata[2]
-        end
-    end
-end
+        if test $metadata[1] = "dir";
+            __fish_complete_directories $metadata[2];
+        else if test $metadata[1] = "file";
+            __fish_complete_path $metadata[2];
+        else if test $metadata[1] = "plain";
+            echo $metadata[2];
+        end;
+    end;
+end;
 
 complete --no-files --command %(prog_name)s --arguments \
-"(%(complete_func)s)"
+"(%(complete_func)s)";
 """
 
 
@@ -230,7 +230,7 @@
         """The name of the shell function defined by the completion
         script.
         """
-        safe_name = re.sub(r"\W*", "", self.prog_name.replace("-", "_"), 
re.ASCII)
+        safe_name = re.sub(r"\W*", "", self.prog_name.replace("-", "_"), 
flags=re.ASCII)
         return f"_{safe_name}_completion"
 
     def source_vars(self) -> t.Dict[str, t.Any]:
@@ -301,7 +301,8 @@
     name = "bash"
     source_template = _SOURCE_BASH
 
-    def _check_version(self) -> None:
+    @staticmethod
+    def _check_version() -> None:
         import subprocess
 
         output = subprocess.run(
@@ -313,15 +314,17 @@
             major, minor = match.groups()
 
             if major < "4" or major == "4" and minor < "4":
-                raise RuntimeError(
+                echo(
                     _(
                         "Shell completion is not supported for Bash"
                         " versions older than 4.4."
-                    )
+                    ),
+                    err=True,
                 )
         else:
-            raise RuntimeError(
-                _("Couldn't detect Bash version, shell completion is not 
supported.")
+            echo(
+                _("Couldn't detect Bash version, shell completion is not 
supported."),
+                err=True,
             )
 
     def source(self) -> str:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/click-8.1.6/src/click.egg-info/PKG-INFO 
new/click-8.1.7/src/click.egg-info/PKG-INFO
--- old/click-8.1.6/src/click.egg-info/PKG-INFO 2023-07-18 22:00:54.000000000 
+0200
+++ new/click-8.1.7/src/click.egg-info/PKG-INFO 2023-08-17 19:25:48.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: click
-Version: 8.1.6
+Version: 8.1.7
 Summary: Composable command line interface toolkit
 Home-page: https://palletsprojects.com/p/click/
 Maintainer: Pallets

Reply via email to