argcomplete 3.6.1__tar.gz → 3.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {argcomplete-3.6.1 → argcomplete-3.6.2}/Changes.rst +7 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/PKG-INFO +1 -1
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/bash_completion.d/_python-argcomplete +0 -6
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/scripts/activate_global_python_argcomplete.py +4 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/shell_integration.py +0 -6
- {argcomplete-3.6.1 → argcomplete-3.6.2}/.github/FUNDING.yml +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/.github/workflows/ci.yml +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/.github/workflows/release.yml +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/.gitignore +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/Authors.rst +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/LICENSE.rst +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/MANIFEST.in +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/Makefile +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/NOTICE +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/README.rst +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/SECURITY.md +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/__init__.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/_check_console_script.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/_check_module.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/completers.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/exceptions.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/finders.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/io.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/lexers.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/packages/__init__.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/packages/_argparse.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/packages/_shlex.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/py.typed +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/scripts/__init__.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/scripts/python_argcomplete_check_easy_install_script.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/scripts/register_python_argcomplete.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/common.mk +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/contrib/README.rst +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/docs/changelog.rst +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/docs/conf.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/docs/examples/describe_github_user.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/docs/fish_help_string.png +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/docs/index.rst +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/docs/toc.html +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/pyproject.toml +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/setup.cfg +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/__init__.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/inputrc +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/prog +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/stuck +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/test.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/test_contrib_shells.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/test_package/__init__.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/test_package/setup.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/test_package/test_module.py +0 -0
- {argcomplete-3.6.1 → argcomplete-3.6.2}/test/test_package/test_package/__init__.py +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
Changes for v3.6.2 (2025-04-02)
|
|
2
|
+
===============================
|
|
3
|
+
|
|
4
|
+
- Revert “zsh: skip repeat Python runs in the same completion run” This
|
|
5
|
+
reverts a regression introduced in zsh tab completion configurations
|
|
6
|
+
utilizing multiple matchers.
|
|
7
|
+
|
|
1
8
|
Changes for v3.6.1 (2025-03-22)
|
|
2
9
|
===============================
|
|
3
10
|
|
|
@@ -124,12 +124,6 @@ __python_argcomplete_which() {
|
|
|
124
124
|
_python_argcomplete_global() {
|
|
125
125
|
|
|
126
126
|
if [[ -n "${ZSH_VERSION-}" ]]; then
|
|
127
|
-
if [[ "${_matcher_num-}" -gt 1 ]]; then
|
|
128
|
-
# Return early if the completer is called multiple times in the same completion run.
|
|
129
|
-
# Currently the only known occurrence of this is in zsh when a matcher-list zstyle is declared.
|
|
130
|
-
# When this happens, _matcher_num is incremented past 1.
|
|
131
|
-
return
|
|
132
|
-
fi
|
|
133
127
|
# Store result of a regex match in the
|
|
134
128
|
# BASH_REMATCH variable rather than MATCH
|
|
135
129
|
setopt local_options BASH_REMATCH
|
{argcomplete-3.6.1 → argcomplete-3.6.2}/argcomplete/scripts/activate_global_python_argcomplete.py
RENAMED
|
@@ -121,10 +121,12 @@ def append_to_config_file(path, shellcode):
|
|
|
121
121
|
fh.write(shellcode)
|
|
122
122
|
print("Added.", file=sys.stderr)
|
|
123
123
|
|
|
124
|
+
|
|
124
125
|
def link_zsh_user_rcfile(zsh_fpath=None):
|
|
125
126
|
zsh_rcfile = os.path.join(os.path.expanduser(os.environ.get("ZDOTDIR", "~")), ".zshenv")
|
|
126
127
|
append_to_config_file(zsh_rcfile, zsh_shellcode.format(zsh_fpath=zsh_fpath or get_activator_dir()))
|
|
127
128
|
|
|
129
|
+
|
|
128
130
|
def link_bash_user_rcfile():
|
|
129
131
|
bash_completion_user_file = os.path.expanduser("~/.bash_completion")
|
|
130
132
|
append_to_config_file(bash_completion_user_file, bash_shellcode.format(activator=get_activator_path()))
|
|
@@ -135,6 +137,7 @@ def link_user_rcfiles():
|
|
|
135
137
|
link_zsh_user_rcfile()
|
|
136
138
|
link_bash_user_rcfile()
|
|
137
139
|
|
|
140
|
+
|
|
138
141
|
def add_zsh_system_dir_to_fpath_for_user():
|
|
139
142
|
if "zsh" not in os.environ.get("SHELL", ""):
|
|
140
143
|
return
|
|
@@ -148,6 +151,7 @@ def add_zsh_system_dir_to_fpath_for_user():
|
|
|
148
151
|
except (FileNotFoundError, subprocess.CalledProcessError):
|
|
149
152
|
pass
|
|
150
153
|
|
|
154
|
+
|
|
151
155
|
def main():
|
|
152
156
|
global args
|
|
153
157
|
args = parser.parse_args()
|
|
@@ -34,12 +34,6 @@ _python_argcomplete%(function_suffix)s() {
|
|
|
34
34
|
local IFS=$'\013'
|
|
35
35
|
local script="%(argcomplete_script)s"
|
|
36
36
|
if [[ -n "${ZSH_VERSION-}" ]]; then
|
|
37
|
-
if [[ "${_matcher_num-}" -gt 1 ]]; then
|
|
38
|
-
# Return early if the completer is called multiple times in the same completion run.
|
|
39
|
-
# Currently the only known occurrence of this is in zsh when a matcher-list zstyle is declared.
|
|
40
|
-
# When this happens, _matcher_num is incremented past 1.
|
|
41
|
-
return
|
|
42
|
-
fi
|
|
43
37
|
local completions
|
|
44
38
|
completions=($(IFS="$IFS" \
|
|
45
39
|
COMP_LINE="$BUFFER" \
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|