Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-argcomplete for 
openSUSE:Factory checked in at 2024-07-16 22:02:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-argcomplete (Old)
 and      /work/SRC/openSUSE:Factory/.python-argcomplete.new.17339 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-argcomplete"

Tue Jul 16 22:02:19 2024 rev:34 rq:1187607 version:3.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-argcomplete/python-argcomplete.changes    
2024-04-21 20:24:25.579636463 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-argcomplete.new.17339/python-argcomplete.changes
 2024-07-16 22:02:25.369867585 +0200
@@ -1,0 +2,19 @@
+Mon Jul 15 11:25:31 UTC 2024 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Update to 3.4.0
+  *  No stdin for python calls from bash completion functions (#488)
+     - Prevents usage of stdin by (python) executables that are called
+       during completion generation. This prevents the completion locking up
+       the entire shell when the python script is broken i.e. it enters an
+       interactive mode (REPL) instead of generating the completions, as
+       expected.
+  *  Localize shell variable REPLY to avoid overwriting users’ value (#489)
+     - The variable REPLY is used by default by the ``read`` shell builtin
+       to store the return value, and like all bash/zsh variables, is scoped
+       globally. This change allows this variable to be used for other needs
+       by appropriately scoping its internal use by an argcomplete utility
+       function that uses ``read``.
+- Drop patches for issued fixed upstream
+  * bash-repl.patch
+
+-------------------------------------------------------------------

Old:
----
  argcomplete-3.3.0.tar.gz
  bash-repl.patch

New:
----
  argcomplete-3.4.0.tar.gz

BETA DEBUG BEGIN:
  Old:- Drop patches for issued fixed upstream
  * bash-repl.patch
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-argcomplete.spec ++++++
--- /var/tmp/diff_new_pack.59mhC8/_old  2024-07-16 22:02:26.073893261 +0200
+++ /var/tmp/diff_new_pack.59mhC8/_new  2024-07-16 22:02:26.073893261 +0200
@@ -19,15 +19,13 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-argcomplete
-Version:        3.3.0
+Version:        3.4.0
 Release:        0
 Summary:        Bash tab completion for argparse
 License:        Apache-2.0
 Group:          Development/Languages/Python
 URL:            https://github.com/kislyuk/argcomplete
 Source:         
https://files.pythonhosted.org/packages/source/a/argcomplete/argcomplete-%{version}.tar.gz
-# Use correct place for auxiliary bashrc.sh file from pexpect
-Patch3:         bash-repl.patch
 BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module pexpect}
 BuildRequires:  %{python_module pip}

++++++ argcomplete-3.3.0.tar.gz -> argcomplete-3.4.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argcomplete-3.3.0/Changes.rst 
new/argcomplete-3.4.0/Changes.rst
--- old/argcomplete-3.3.0/Changes.rst   2024-04-14 23:26:19.000000000 +0200
+++ new/argcomplete-3.4.0/Changes.rst   2024-06-16 09:06:51.000000000 +0200
@@ -1,3 +1,23 @@
+Changes for v3.4.0 (2024-06-16)
+===============================
+
+-  No stdin for python calls from bash completion functions (#488)
+
+   Prevents usage of stdin by (python) executables that are called
+   during completion generation. This prevents the completion locking up
+   the entire shell when the python script is broken i.e. it enters an
+   interactive mode (REPL) instead of generating the completions, as
+   expected.
+
+-  Localize shell variable REPLY to avoid overwriting users’ value
+   (#489)
+
+   The variable REPLY is used by default by the ``read`` shell builtin
+   to store the return value, and like all bash/zsh variables, is scoped
+   globally. This change allows this variable to be used for other needs
+   by appropriately scoping its internal use by an argcomplete utility
+   function that uses ``read``.
+
 Changes for v3.3.0 (2024-04-14)
 ===============================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argcomplete-3.3.0/PKG-INFO 
new/argcomplete-3.4.0/PKG-INFO
--- old/argcomplete-3.3.0/PKG-INFO      2024-04-14 23:26:43.235703000 +0200
+++ new/argcomplete-3.4.0/PKG-INFO      2024-06-16 09:07:02.136315300 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: argcomplete
-Version: 3.3.0
+Version: 3.4.0
 Summary: Bash tab completion for argparse
 Home-page: https://github.com/kislyuk/argcomplete
 Author: Andrey Kislyuk
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/argcomplete-3.3.0/argcomplete/bash_completion.d/_python-argcomplete 
new/argcomplete-3.4.0/argcomplete/bash_completion.d/_python-argcomplete
--- old/argcomplete-3.3.0/argcomplete/bash_completion.d/_python-argcomplete     
2024-01-23 21:39:07.000000000 +0100
+++ new/argcomplete-3.4.0/argcomplete/bash_completion.d/_python-argcomplete     
2024-06-16 05:20:34.000000000 +0200
@@ -46,9 +46,9 @@
 
 __python_argcomplete_run_inner() {
     if [[ -z "${_ARC_DEBUG-}" ]]; then
-        "$@" 8>&1 9>&2 1>/dev/null 2>&1
+        "$@" 8>&1 9>&2 1>/dev/null 2>&1 </dev/null
     else
-        "$@" 8>&1 9>&2 1>&9 2>&1
+        "$@" 8>&1 9>&2 1>&9 2>&1 </dev/null
     fi
 }
 
@@ -76,6 +76,7 @@
     local file="$1"
     local target="$2"
 
+    local REPLY
     if [[ -n "${ZSH_VERSION-}" ]]; then
         read -r -k 1024 -u 0 < "$file";
     else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argcomplete-3.3.0/argcomplete/shell_integration.py 
new/argcomplete-3.4.0/argcomplete/shell_integration.py
--- old/argcomplete-3.3.0/argcomplete/shell_integration.py      2024-03-08 
02:27:42.000000000 +0100
+++ new/argcomplete-3.4.0/argcomplete/shell_integration.py      2024-06-16 
05:20:34.000000000 +0200
@@ -24,9 +24,9 @@
 
 __python_argcomplete_run_inner() {
     if [[ -z "${_ARC_DEBUG-}" ]]; then
-        "$@" 8>&1 9>&2 1>/dev/null 2>&1
+        "$@" 8>&1 9>&2 1>/dev/null 2>&1 </dev/null
     else
-        "$@" 8>&1 9>&2 1>&9 2>&1
+        "$@" 8>&1 9>&2 1>&9 2>&1 </dev/null
     fi
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argcomplete-3.3.0/argcomplete.egg-info/PKG-INFO 
new/argcomplete-3.4.0/argcomplete.egg-info/PKG-INFO
--- old/argcomplete-3.3.0/argcomplete.egg-info/PKG-INFO 2024-04-14 
23:26:43.000000000 +0200
+++ new/argcomplete-3.4.0/argcomplete.egg-info/PKG-INFO 2024-06-16 
09:07:02.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: argcomplete
-Version: 3.3.0
+Version: 3.4.0
 Summary: Bash tab completion for argparse
 Home-page: https://github.com/kislyuk/argcomplete
 Author: Andrey Kislyuk
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argcomplete-3.3.0/argcomplete.egg-info/SOURCES.txt 
new/argcomplete-3.4.0/argcomplete.egg-info/SOURCES.txt
--- old/argcomplete-3.3.0/argcomplete.egg-info/SOURCES.txt      2024-04-14 
23:26:43.000000000 +0200
+++ new/argcomplete-3.4.0/argcomplete.egg-info/SOURCES.txt      2024-06-16 
09:07:02.000000000 +0200
@@ -46,6 +46,7 @@
 test/__init__.py
 test/inputrc
 test/prog
+test/stuck
 test/test.py
 test/test_contrib_shells.py
 test/test_package/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argcomplete-3.3.0/test/stuck 
new/argcomplete-3.4.0/test/stuck
--- old/argcomplete-3.3.0/test/stuck    1970-01-01 01:00:00.000000000 +0100
+++ new/argcomplete-3.4.0/test/stuck    2024-06-16 05:20:34.000000000 +0200
@@ -0,0 +1,6 @@
+#!/usr/bin/env python
+# PYTHON_ARGCOMPLETE_OK
+from sys import argv
+
+if argv[1:] != ["no-input"]:
+    input()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/argcomplete-3.3.0/test/test.py 
new/argcomplete-3.4.0/test/test.py
--- old/argcomplete-3.3.0/test/test.py  2023-12-10 16:15:17.000000000 +0100
+++ new/argcomplete-3.4.0/test/test.py  2024-06-16 05:20:34.000000000 +0200
@@ -73,7 +73,7 @@
 
 
 def bash_repl(command="bash"):
-    bashrc = os.path.join(os.path.dirname(pexpect.__file__), "replwrap", 
"bashrc.sh")
+    bashrc = os.path.join(os.path.dirname(pexpect.__file__), "bashrc.sh")
     sh = _repl_sh(command, ["--rcfile", bashrc], non_printable_insert="\\[\\]")
     return sh
 
@@ -1348,6 +1348,10 @@
         self.sh.run_command("cd " + TEST_DIR)
         self.assertEqual(self.sh.run_command("python3 ./pro\tbasic f\t"), 
"foo\r\n")
 
+    def test_python_stuck(self):
+        self.sh.run_command("cd " + TEST_DIR)
+        self.sh.run_command("python3 ./stuck no\t-input")
+
     def test_python_not_executable(self):
         """Test completing a script that cannot be run directly."""
         prog = os.path.join(TEST_DIR, "prog")

Reply via email to