17
0

27 Commits

Author SHA256 Message Date
61cfbfb50e Accepting request 1298824 from devel:languages:python
- Make the libalternatives transition conditional

OBS-URL: https://build.opensuse.org/request/show/1298824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=44
2025-08-12 15:03:27 +00:00
93f7e37c6e fix
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=97
2025-08-11 12:13:43 +00:00
af6f836337 - Make the libalternatives transition conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=96
2025-08-11 12:09:41 +00:00
da9ad080c2 Accepting request 1292430 from devel:languages:python
- update to 3.6.2:
  * Revert “zsh: skip repeat Python runs in the same completion
    run” This reverts a regression introduced in zsh tab
    completion configurations utilizing multiple matchers.
  * zsh: add global completion system install dir to user fpath
    if not present
  * Update shell_integration.py to support spaces in script file
    path.
  * Fix completion when wordbreak is first character
  * Support namespace package traversal when completing Python
    entry points
  * zsh: skip repeat Python runs in the same completion run
  * Make _parse_known_args signature more general for future API
    changes
  * Use interactive shells and bind to make environment variable
    name completions work in older Bash versions
  * Fix _parse_known_args monkeypatching Note: This fix is
    required to restore compatibility with Python 3.12.8 and
    3.13.1.
  * Note: This fix is required to restore compatibility with
    Python 3.12.8 and 3.13.1.
  * CI improvements
  * Restore compatibility with argparse in Python 3.12.7+
  * Use project.scripts instead of setuptools scripts
  * Test infrastructure improvements
  * 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

OBS-URL: https://build.opensuse.org/request/show/1292430
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=43
2025-07-15 14:42:57 +00:00
cfbc2acb0d - update to 3.6.2:
* Revert “zsh: skip repeat Python runs in the same completion
    run” This reverts a regression introduced in zsh tab
    completion configurations utilizing multiple matchers.
  * zsh: add global completion system install dir to user fpath
    if not present
  * Update shell_integration.py to support spaces in script file
    path.
  * Fix completion when wordbreak is first character
  * Support namespace package traversal when completing Python
    entry points
  * zsh: skip repeat Python runs in the same completion run
  * Make _parse_known_args signature more general for future API
    changes
  * Use interactive shells and bind to make environment variable
    name completions work in older Bash versions
  * Fix _parse_known_args monkeypatching Note: This fix is
    required to restore compatibility with Python 3.12.8 and
    3.13.1.
  * Note: This fix is required to restore compatibility with
    Python 3.12.8 and 3.13.1.
  * CI improvements
  * Restore compatibility with argparse in Python 3.12.7+
  * Use project.scripts instead of setuptools scripts
  * Test infrastructure improvements
  * 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=94
2025-07-12 17:20:29 +00:00
9b1591b47e Accepting request 1286090 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=42
2025-06-18 13:53:44 +00:00
b2cf2877a2 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=92
2025-06-16 12:12:03 +00:00
e89301c5f0 Accepting request 1284723 from devel:languages:python
- Remove executable bit on files installed outside of the path. (bsc#1244435)

OBS-URL: https://build.opensuse.org/request/show/1284723
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=41
2025-06-11 14:19:51 +00:00
ff0068be73 - Remove executable bit on files installed outside of the path. (bsc#1244435)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=90
2025-06-11 08:33:33 +00:00
a7544cf658 Accepting request 1284019 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1284019
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=40
2025-06-10 06:56:53 +00:00
3ff19d3fc5 Accepting request 1283842 from home:ojkastl_buildservice:Branch_devel_languages_python
update to 3.5.3

OBS-URL: https://build.opensuse.org/request/show/1283842
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=88
2025-06-09 08:25:16 +00:00
33e1887b2b Accepting request 1229866 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1229866
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=39
2024-12-11 20:01:01 +00:00
eeabe2a688 Accepting request 1229767 from home:mcalabkova:branches:devel:languages:python
- Update to version 3.5.2
  * Fix _parse_known_args monkeypatching. This fix is required to restore 
    compatibility with Python 3.12.8 and 3.13.1.

OBS-URL: https://build.opensuse.org/request/show/1229767
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=86
2024-12-10 15:53:43 +00:00
739a17ad78 Accepting request 1219176 from devel:languages:python
- Update to the version 3.5.1:
  - Restore compatibility with argparse in Python 3.12.7+
  - Use project.scripts instead of setuptools scripts
  - Test infrastructure improvements
- Remove upstreamed patches:
  - argparse-3_12_7.patch
- Add _multibuild (to make testing against fully installed package)

OBS-URL: https://build.opensuse.org/request/show/1219176
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=38
2024-10-30 16:33:05 +00:00
7d36a022b8 Add _multibuild file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=84
2024-10-29 17:11:01 +00:00
481bb8adfb Add _multibuild file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=83
2024-10-29 17:09:52 +00:00
e3a151f9c1 Actually remove the patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=82
2024-10-29 17:09:20 +00:00
b7305c95d8 Actually remove the patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=81
2024-10-29 17:09:02 +00:00
c33f4bc810 - Update to the version 3.5.1:
- Restore compatibility with argparse in Python 3.12.7+
  - Use project.scripts instead of setuptools scripts
  - Test infrastructure improvements
- Remove upstreamed patches:
  - argparse-3_12_7.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=80
2024-10-29 17:08:44 +00:00
5f2809d7de Accepting request 1206005 from devel:languages:python
- Add argparse-3_12_7.patch which should actually fix
  gh#kislyuk/argcomplete#507.
- Remove skip-failing-tests-3_12_7.patch, which is now
  unnecessary.

OBS-URL: https://build.opensuse.org/request/show/1206005
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=37
2024-10-08 15:16:27 +00:00
749886ae5f - Add argparse-3_12_7.patch which should actually fix
gh#kislyuk/argcomplete#507.
- Remove skip-failing-tests-3_12_7.patch, which is now
  unnecessary.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=78
2024-10-06 21:46:10 +00:00
158e596173 Accepting request 1205831 from devel:languages:python
- Add skip-failing-tests-3_12_7.patch as a temporary workaround,
  skip failing tests (gh#kislyuk/argcomplete#507).

OBS-URL: https://build.opensuse.org/request/show/1205831
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=36
2024-10-06 15:51:47 +00:00
17950c2639 - Add skip-failing-tests-3_12_7.patch as a temporary workaround,
skip failing tests (gh#kislyuk/argcomplete#507).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=76
2024-10-05 14:54:12 +00:00
818c035c4e Accepting request 1193769 from devel:languages:python
- require ca-certificates-mozilla for the pip >= 24.2

OBS-URL: https://build.opensuse.org/request/show/1193769
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=35
2024-08-15 07:57:23 +00:00
ad3bd71c34 - require ca-certificates-mozilla for the pip >= 24.2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=74
2024-08-13 20:19:10 +00:00
946c8ae1fe Accepting request 1187607 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1187607
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argcomplete?expand=0&rev=34
2024-07-16 20:02:19 +00:00
c781b94da6 Accepting request 1187546 from home:glaubitz:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1187546
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=72
2024-07-15 18:40:35 +00:00
6 changed files with 384 additions and 29 deletions

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

Binary file not shown.

3
argcomplete-3.6.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d0519b1bc867f5f4f4713c41ad0aba73a4a5f007449716b16f385f2166dc6adf
size 73403

View File

@@ -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

View File

@@ -1,3 +1,331 @@
-------------------------------------------------------------------
Mon Aug 11 12:08:58 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Sat Jul 12 17:20:18 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 3.6.2:
* Revert “zsh: skip repeat Python runs in the same completion
run” This reverts a regression introduced in zsh tab
completion configurations utilizing multiple matchers.
* zsh: add global completion system install dir to user fpath
if not present
* Update shell_integration.py to support spaces in script file
path.
* Fix completion when wordbreak is first character
* Support namespace package traversal when completing Python
entry points
* zsh: skip repeat Python runs in the same completion run
* Make _parse_known_args signature more general for future API
changes
* Use interactive shells and bind to make environment variable
name completions work in older Bash versions
* Fix _parse_known_args monkeypatching Note: This fix is
required to restore compatibility with Python 3.12.8 and
3.13.1.
* Note: This fix is required to restore compatibility with
Python 3.12.8 and 3.13.1.
* CI improvements
* Restore compatibility with argparse in Python 3.12.7+
* Use project.scripts instead of setuptools scripts
* Test infrastructure improvements
* 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.
* Preserve compatibility with argparse option tuples of length
4. This update is required to use argcomplete on Python
3.11.9+ or 3.12.3+.
* Allow register-python-argcomplete output to be used as lazy-
loaded zsh completion module
* Move debug_stream initialization to helper method to allow fd
9 behavior to be overridden in subclasses
* Allow explicit zsh global completion activation
* Fix and test global completion in zsh
* Add yes option to activate-global-python-argcomplete
* Test suite improvements
* Respect user choice in activate-global-python-argcomplete
* Escape colon in zsh completions. Fixes #456
* Call _default as a fallback in zsh global completion
* Use homebrew prefix by default
* zsh: Allow to use external script
* Add support for Python 3.12 and drop EOL 3.6 and 3.7
* Use homebrew prefix by default
* zsh: Allow to use external script
* Add support for Python 3.12 and drop EOL 3.6 and 3.7
* Ensure Python 3.12+ compatibility in check_console_script
* Search through asdf shims
* Use ` as escape character in PowerShell
* setup.py -> pyproject.toml migration start
* Improve user install logic in activate-global-python-
argcomplete
* Ensure Python 3.7 compatibility in check_console_script
* ZSH implementation fixes
* Documentation improvements
* Test suite shell wrapper: Accept OSError on exit
* Test suite: Use general regex to cut zsh reset ANSI sequences
* Allow importlib-metadata 6.x; skip test failures on Python
3.7
* Note completers can return iterables of strings, not just
lists
* Documentation and test improvements
* Call _default as fallback in zsh global completion hook
* Begin support for mapping-emitting completers
* activate-global-python-argcomplete: do not overwrite existing
dotfile in user directory
* Add NOTICE file
* Establish long term name for split_line as
argcomplete.lexers.split_line
* Re-add split_line to API
* Fix zsh autoload issues
* Fully support zsh. Argcomplete now supports completion
descriptions and global completion in zsh.
* Clean up top level namespace.
* Documentation and test improvements.
* Test infrastructure improvements
* Indicate that there is no support commitment for fish and
tcsh shells
* Documentation and test improvements
* Remove scripts for contrib-supported shells from global
namespace
* setup.py: exclude test.* subpackages from find_packages
* Support PowerShell
* CI updates
* Revert “Support powershell (#392)”
* Fix interrupted release (v2.0.1)
* Fix interrupted release (v2.0.1)
* Fix interrupted release (v2.0.1)
* Support powershell
* Update importlib-metadata dependency to include versions 5.x
* Test and documentation improvements
* Truncate input after cursor. Fixes #351
* Support of path completion in fish #327
* Drop support for Python 2.7 and 3.5
* Add support for Python 3.10
* Test, documentation, and release infrastructure improvements
* Update importlib-metadata version pin
* Display script debug output in tcsh
* Fish support improvements
* Print warn() message from beginning of line
* Test infrastructure improvements
* Update importlib-metadata dependency pin
* Add change log project URL
* Replace Travis CI with GitHub Actions
* Update importlib-metadata dependency version range
* Bash nounset mode fixes
* Add -o bashdefault to register-python-argcompletes output
command
* Use shell builtins where possible
* Switch from pkg_resources to importlib
* Remove .sh extension by bash-completion convention
* Catch exceptions in _check_module
* Documentation and test improvements
* Do not suggest options after (end-of-options delimiter)
* Include all test directory contents in source distribution
* Trigger completers on optional=PARTIAL_VALUE
* Complete console scripts installed from wheels
* Fish support #68 (#260), thanks to @volkov
* check_module: Dont crash, exit with error instead
* Register completion for multiple commands
* Use the correct interpreter when checking wrappers
* Provide shellcode as a module function
* Fix handling of COMP_POINT
* Fix crash when writing unicode to debug_stream in Python 2
* Fix release
* Fix release
* Add SuppressCompleter to skip completion for specific
arguments while allowing help text
* Redirect all output to debug stream in debug mode
* Complete python -m module
* Fix bug introduced in v0.7.1 where completers would not
receive the parser keyword argument.
* Documentation improvements.
* Fix completion after tokens with wordbreak chars
* Simplify nospace handling in global completion
* Specially handle all characters in COMP_WORDBREAKS
* Use setuptools tests-require directive, fixes #186
* Complete files using the specified interpreter
* Fix completion for scripts run via python
* Clarify argument to register-python-argcomplete
* Fix handling of commas and other special chars (#172); handle
more special characters
* Fix handling of special characters in tcsh
* Update my_shlex to Python 3.6 version
* Fix additional trailing space in exact matches
* Adjust tests to handle development environments
* Fix tcsh tests on OSX (#177); Update bash on OSX (#176);
Check output of test setup command
* Optionally disable duplicated flags
* Add default_completer option to CompletionFinder.call
* Let bash add or suppress trailing space
* Restore parser to its original state to allow reuse after
completion (#150).
* Expose COMP_TYPE environment variable (#157). Thanks to Matt
Clay (@mattclay).
* Test infrastructure and documentation improvements.
* Add support for tcsh
* Fix handling of unquoted completions containing $
* Don't insert unnecessary leading quote char in completions
* Fix parser reuse with positional arguments
* Tests: Add simple pexpect tests for bash (#153); Add test
case to verify #20 is fixed
* Thanks to @davvid and @evanunderscore for their work on this
release.
* Packaging fix
* Do not suggest options from mutually exclusive groups (#145).
* activate-global-python-argcomplete runs on Homebrew out of
the box
* Correctly handle suggestions for positionals with variable-
length nargs. Thanks to @evanunderscore (#132, #133).
* Correctly handle suggestions with custom nargs for optionals.
Thanks to @evanunderscore (#131).
* Fix propagation of partially parsed subparser namespace into
parent parser namespace upon subparser failure due to partial
args. This allows completers to access partial parse results
for subparser optionals in parsed_args (#114).
* The default completer can now be specified when manually
instantiating CompletionFinder. Thanks to @avylove (#130).
* Use FilesCompleter as default completer fallback (#120).
* Recognize subclasses of argparse._SubParsersAction. Thanks to
Stephen Koo (#118).
* Support parsed_args in custom completers with missing args.
Thanks to Dan Kilman (#124).
* Non-ASCII support in FilesCompleter.
* Automatically enable FilesCompleter for argparse.FileType
arguments.
* Don't print args with suppressed help by default; add
argcomplete.autocomplete(print_suppressed=True) to control
this behavior (#113).
* Fix always_complete_options=False support (#115).
* Correct doc filename in setup.cfg (fixes bdist_rpm failure,
Issue 111).
* Make context managers exception-safe. Thanks to Mikołaj
Siedlarek (pull request #110).
* Build and upload universal wheel packages in release.
* Fix issue with non-string choices for arguments. Thanks to
@neizod (pull request #107).
* Improve non-ascii argparse argument support on Python 2.7.
* register-python-argcomplete: add option to avoid default
readline completion. Thanks to @drmalex07 (pull request #99).
* Expand tilde in script name, allowing argcomplete to work
when invoking scripts from one's home directory. Thanks to
@VorpalBlade (Issue 104).
* Fix issues related to using argcomplete in a REPL
environment.
* New helper method for custom completion display.
* Expand test suite; formatting cleanup.
* Fix issue related to using argcomplete in a REPL environment.
Thanks to @wapiflapi (pull request #91).
* Fix multiple issues related to using argcomplete in a REPL
environment. Thanks to @wapiflapi (pull request #90).
* Don't strip colon prefix in completion results if
COMP_WORDBREAKS does not contain a colon. Thanks to @berezv
(pull request #88).
* Use complete --nospace to avoid issues with directory
completion.
* Refactor main body of code into a class to enable subclassing
and overriding of functionality (Issue #78).
* New keyword option "argcomplete.autocomplete(validator=...)"
to supply a custom validator or bypass default validation.
Thanks to @thijsdezoete (Issue #77).
* Document debug options.
* New keyword option "argcomplete.autocomplete(exclude=[...])"
to suppress options (Issue #74).
* More speedups to code path for global completion hook
negative result.
* Fix handling of development mode script wrappers. Thanks to
@jmlopez-rod and @dcosson (Issue #69).
* Speed up code path for global completion hook negative result
by loading pkg_resources on demand.
* Begin tracking changes in changelog.
* Add completion support for PBR installed scripts (PR #71).
* Detect easy-install shims with shebang lines that contain Py
instead of py (Issue #69).
-------------------------------------------------------------------
Mon Jun 16 12:11:26 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Wed Jun 11 08:32:32 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Remove executable bit on files installed outside of the path. (bsc#1244435)
-------------------------------------------------------------------
Sat Jun 7 08:06:26 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- Update to version 3.5.3
* Use interactive shells and bind to make environment variable
name completions work in older Bash versions (#506)
-------------------------------------------------------------------
Tue Dec 10 11:12:48 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to version 3.5.2
* Fix _parse_known_args monkeypatching. This fix is required to restore
compatibility with Python 3.12.8 and 3.13.1.
-------------------------------------------------------------------
Tue Oct 29 17:07:05 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Update to the version 3.5.1:
- Restore compatibility with argparse in Python 3.12.7+
- Use project.scripts instead of setuptools scripts
- Test infrastructure improvements
- Remove upstreamed patches:
- argparse-3_12_7.patch
- Add _multibuild (to make testing against fully installed package)
-------------------------------------------------------------------
Sun Oct 6 21:27:22 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Add argparse-3_12_7.patch which should actually fix
gh#kislyuk/argcomplete#507.
- Remove skip-failing-tests-3_12_7.patch, which is now
unnecessary.
-------------------------------------------------------------------
Sat Oct 5 14:53:29 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Add skip-failing-tests-3_12_7.patch as a temporary workaround,
skip failing tests (gh#kislyuk/argcomplete#507).
-------------------------------------------------------------------
Tue Aug 13 20:18:47 UTC 2024 - Dirk Müller <dmueller@suse.com>
- require ca-certificates-mozilla for the pip >= 24.2
-------------------------------------------------------------------
Mon Jul 15 11:25:31 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <daniel.garcia@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-argcomplete
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2013 Darin Perusich.
#
# All modifications and additions to the file contributed by third parties
@@ -17,30 +17,50 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-argcomplete
Version: 3.3.0
Name: python-argcomplete%{psuffix}
Version: 3.6.2
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 hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 67.2}
BuildRequires: %{python_module setuptools_scm >= 6.2}
BuildRequires: %{python_module wheel}
BuildRequires: ca-certificates
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: zsh
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%endif
%if %{with test}
BuildRequires: %{python_module argcomplete == %{version}}
BuildRequires: %{python_module pexpect}
BuildRequires: ca-certificates-mozilla
BuildRequires: fish
BuildRequires: zsh
%endif
%python_subpackages
%description
@@ -61,31 +81,46 @@ resources over the network).
%autosetup -p1 -n argcomplete-%{version}
%build
%if %{without test}
%pyproject_wheel
%endif
%install
%if %{without test}
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/activate-global-python-argcomplete
%python_clone -a %{buildroot}%{_bindir}/register-python-argcomplete
%python_clone -a %{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script
rm %{buildroot}%{_bindir}/activate-global-python-argcomplete
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_expand chmod -x %{buildroot}%{$python_sitelib}/argcomplete/scripts/*.py
%endif
%check
%if %{with test}
export LANG=en_US.UTF-8
export TERM=xterm-mono
%{python_expand \
# https://github.com/kislyuk/argcomplete/issues/255
# https://github.com/kislyuk/argcomplete/issues/299
sed -i -e "1s|#!.*python.*|#!%{__$python}|" test/prog test/*.py scripts/*
sed -i -e "1s|#!.*python.*|#!%{__$python}|" test/prog test/*.py
sed -i -e "s|python3 |$python |g" test/test.py
PYTHONPATH=%{buildroot}%{$python_sitelib} $python ./test/test.py -v
$python ./test/test.py -v
}
%endif
%if %{without test}
%pre
%python_libalternatives_reset_alternative activate-global-python-argcomplete
%python_libalternatives_reset_alternative register-python-argcomplete
%python_libalternatives_reset_alternative python-argcomplete-check-easy-install-script
%post
%python_install_alternative activate-global-python-argcomplete
%python_install_alternative register-python-argcomplete
%python_install_alternative python-argcomplete-check-easy-install-script
%postun
%python_uninstall_alternative activate-global-python-argcomplete
%python_uninstall_alternative register-python-argcomplete
%python_uninstall_alternative python-argcomplete-check-easy-install-script
@@ -94,7 +129,9 @@ export TERM=xterm-mono
%license LICENSE.rst
%{python_sitelib}/argcomplete-%{version}.dist-info
%{python_sitelib}/argcomplete
%python_alternative %{_bindir}/activate-global-python-argcomplete
%python_alternative %{_bindir}/python-argcomplete-check-easy-install-script
%python_alternative %{_bindir}/register-python-argcomplete
%endif
%changelog