diff --git a/argcomplete-3.3.0.tar.gz b/argcomplete-3.3.0.tar.gz deleted file mode 100644 index 25a9dfa..0000000 --- a/argcomplete-3.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fd03ff4a5b9e6580569d34b273f741e85cd9e072f3feeeee3eba4891c70eda62 -size 81832 diff --git a/argcomplete-3.4.0.tar.gz b/argcomplete-3.4.0.tar.gz new file mode 100644 index 0000000..23bb668 --- /dev/null +++ b/argcomplete-3.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2abcdfe1be8ace47ba777d4fce319eb13bf8ad9dace8d085dcad6eded88057f +size 82275 diff --git a/bash-repl.patch b/bash-repl.patch deleted file mode 100644 index 6cdbc2e..0000000 --- a/bash-repl.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: argcomplete-3.0.8/test/test.py -=================================================================== ---- argcomplete-3.0.8.orig/test/test.py -+++ argcomplete-3.0.8/test/test.py -@@ -65,7 +65,7 @@ def _repl_sh(command, args, non_printabl - - - 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 - diff --git a/python-argcomplete.changes b/python-argcomplete.changes index fb9dc29..7ec7427 100644 --- a/python-argcomplete.changes +++ b/python-argcomplete.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Mon Jul 15 11:25:31 UTC 2024 - John Paul Adrian Glaubitz + +- 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 + ------------------------------------------------------------------- Thu Apr 18 06:26:52 UTC 2024 - Daniel Garcia diff --git a/python-argcomplete.spec b/python-argcomplete.spec index 0d198fd..92612d0 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -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}