Sync from SUSE:SLFO:Main python-argcomplete revision 3ad37ea307d95c927f6df19b6a4c2b05
This commit is contained in:
parent
bd3668f375
commit
e24b77befe
BIN
argcomplete-3.0.8.tar.gz
(Stored with Git LFS)
BIN
argcomplete-3.0.8.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
argcomplete-3.3.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
argcomplete-3.3.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
13
bash-repl.patch
Normal file
13
bash-repl.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
||||||
|
|
@ -1,3 +1,87 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 18 06:26:52 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Update to 3.3.0 (bsc#1222880):
|
||||||
|
* 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+.
|
||||||
|
- update to 3.2.3:
|
||||||
|
* Allow register-python-argcomplete output to be used as lazy-loaded
|
||||||
|
zsh completion module (#475)
|
||||||
|
- Move debug_stream initialization to helper method to allow fd 9
|
||||||
|
behavior to be overridden in subclasses (#471)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 30 12:07:05 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.2.2:
|
||||||
|
* Expand tilde in zsh
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 3 10:54:17 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Remove coverage check
|
||||||
|
- Fix zsh test failures: avoid coloring terminal
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 29 18:27:06 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.2.1:
|
||||||
|
* Allow explicit zsh global completion activation (#467)
|
||||||
|
* Fix and test global completion in zsh (#463, #466)
|
||||||
|
* Add –yes option to activate-global-python-argcomplete (#461)
|
||||||
|
* Test suite improvements
|
||||||
|
- drop without_zsh.patch: obsolete
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 27 15:26:30 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.1.6:
|
||||||
|
* Respect user choice in activate-global-python-argcomplete
|
||||||
|
* Escape colon in zsh completions. Fixes #456
|
||||||
|
* Call \_default as a fallback in zsh global completion
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 10 12:26:40 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.1.4:
|
||||||
|
* Call \_default as a fallback in zsh global completion
|
||||||
|
* zsh: Allow to use external script (#453)
|
||||||
|
* Add support for Python 3.12 and drop EOL 3.6 and 3.7 (#449)
|
||||||
|
* Use homebrew prefix by default
|
||||||
|
* zsh: Allow to use external script (#453)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 24 12:01:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add setuptools_scm for proper version detection
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 5 08:46:50 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.1.2:
|
||||||
|
*Ensure Python 3.12+ compatibility in check_console_script
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 4 11:24:40 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to version 3.1.1
|
||||||
|
* Search through asdf shims
|
||||||
|
* Use \` as escape character in PowerShell (#434)
|
||||||
|
- from version 3.1.0
|
||||||
|
* setup.py -> pyproject.toml migration start (#427)
|
||||||
|
* Improve user install logic in activate-global-python-argcomplete (#437)
|
||||||
|
* Ensure Python 3.7 compatibility in check_console_script (#436)
|
||||||
|
* ZSH implementation fixes (#431, #433)
|
||||||
|
* Documentation improvements
|
||||||
|
- Drop obsolete patch
|
||||||
|
* trim-test-deps.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 30 16:02:49 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
- bash-repl.patch: Use correct place for auxiliary bashrc.sh file from pexpect
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 5 11:23:29 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
Fri May 5 11:23:29 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-argcomplete
|
# spec file for package python-argcomplete
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
# Copyright (c) 2013 Darin Perusich.
|
# Copyright (c) 2013 Darin Perusich.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -17,27 +17,27 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global skip_python2 1
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-argcomplete
|
Name: python-argcomplete
|
||||||
Version: 3.0.8
|
Version: 3.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Bash tab completion for argparse
|
Summary: Bash tab completion for argparse
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/kislyuk/argcomplete
|
URL: https://github.com/kislyuk/argcomplete
|
||||||
Source: https://files.pythonhosted.org/packages/source/a/argcomplete/argcomplete-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/a/argcomplete/argcomplete-%{version}.tar.gz
|
||||||
Patch1: trim-test-deps.patch
|
# Use correct place for auxiliary bashrc.sh file from pexpect
|
||||||
# Don't fail the test suite when zsh is not available
|
Patch3: bash-repl.patch
|
||||||
Patch2: without_zsh.patch
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
BuildRequires: %{python_module coverage}
|
|
||||||
BuildRequires: %{python_module pexpect}
|
BuildRequires: %{python_module pexpect}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools >= 67.2}
|
||||||
|
BuildRequires: %{python_module setuptools_scm >= 6.2}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: ca-certificates
|
BuildRequires: ca-certificates
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: zsh
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -61,25 +61,24 @@ resources over the network).
|
|||||||
%autosetup -p1 -n argcomplete-%{version}
|
%autosetup -p1 -n argcomplete-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/register-python-argcomplete
|
%python_clone -a %{buildroot}%{_bindir}/register-python-argcomplete
|
||||||
%python_clone -a %{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script
|
%python_clone -a %{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script
|
||||||
rm -rf %{buildroot}%{python_sitelib}/test
|
|
||||||
rm %{buildroot}%{_bindir}/activate-global-python-argcomplete
|
rm %{buildroot}%{_bindir}/activate-global-python-argcomplete
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
|
export TERM=xterm-mono
|
||||||
%{python_expand \
|
%{python_expand \
|
||||||
# https://github.com/kislyuk/argcomplete/issues/255
|
# https://github.com/kislyuk/argcomplete/issues/255
|
||||||
# https://github.com/kislyuk/argcomplete/issues/256
|
|
||||||
# https://github.com/kislyuk/argcomplete/issues/299
|
# https://github.com/kislyuk/argcomplete/issues/299
|
||||||
sed -i -e "1s|#!.*python.*|#!%{_bindir}/$python|" test/prog scripts/*
|
sed -i -e "1s|#!.*python.*|#!%{__$python}|" test/prog test/*.py scripts/*
|
||||||
sed -i -e "s|python3 |$python |g" test/test.py
|
sed -i -e "s|python3 |$python |g" test/test.py
|
||||||
PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m coverage run --source=argcomplete --omit=argcomplete/packages/_shlex.py ./test/test.py -v
|
PYTHONPATH=%{buildroot}%{$python_sitelib} $python ./test/test.py -v
|
||||||
}
|
}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -93,7 +92,7 @@ export LANG=en_US.UTF-8
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%{python_sitelib}/argcomplete-%{version}*-info
|
%{python_sitelib}/argcomplete-%{version}.dist-info
|
||||||
%{python_sitelib}/argcomplete
|
%{python_sitelib}/argcomplete
|
||||||
%python_alternative %{_bindir}/python-argcomplete-check-easy-install-script
|
%python_alternative %{_bindir}/python-argcomplete-check-easy-install-script
|
||||||
%python_alternative %{_bindir}/register-python-argcomplete
|
%python_alternative %{_bindir}/register-python-argcomplete
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
Index: argcomplete-3.0.8/setup.py
|
|
||||||
===================================================================
|
|
||||||
--- argcomplete-3.0.8.orig/setup.py
|
|
||||||
+++ argcomplete-3.0.8/setup.py
|
|
||||||
@@ -5,7 +5,7 @@ import glob
|
|
||||||
from setuptools import find_packages, setup
|
|
||||||
|
|
||||||
install_requires = []
|
|
||||||
-tests_require = ["coverage", "pexpect", "wheel", "ruff", "mypy"]
|
|
||||||
+tests_require = ["pexpect"]
|
|
||||||
importlib_backport_requires = ["importlib-metadata >= 0.23, < 7"]
|
|
||||||
|
|
||||||
setup(
|
|
@ -1,27 +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
|
|
||||||
@@ -1299,22 +1299,6 @@ class TestBash(TestBashZshBase, unittest
|
|
||||||
self.test_simple_completion()
|
|
||||||
|
|
||||||
|
|
||||||
-class TestZsh(TestBashZshBase, unittest.TestCase):
|
|
||||||
- expected_failures = [
|
|
||||||
- "test_parse_special_characters_dollar",
|
|
||||||
- "test_comp_point", # FIXME
|
|
||||||
- "test_completion_environment", # FIXME
|
|
||||||
- "test_continuation", # FIXME
|
|
||||||
- "test_wordbreak_chars", # FIXME
|
|
||||||
- ]
|
|
||||||
-
|
|
||||||
- def test_parse_special_characters(self):
|
|
||||||
- pass # FIXME: test crashes in teardown
|
|
||||||
-
|
|
||||||
- def repl_provider(self):
|
|
||||||
- return zsh_repl()
|
|
||||||
-
|
|
||||||
-
|
|
||||||
@unittest.skipIf(BASH_MAJOR_VERSION < 4, "complete -D not supported")
|
|
||||||
class TestBashGlobal(TestBash):
|
|
||||||
install_cmd = 'eval "$(activate-global-python-argcomplete --dest=-)"'
|
|
Loading…
Reference in New Issue
Block a user