From b93be79fd94b8f28f8827546660c8e42022dfb11863114d2c7352e1604596bbe Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 29 Dec 2023 18:28:27 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=203.2.1:=20=20=20*=20=20Allow?= =?UTF-8?q?=20explicit=20zsh=20global=20completion=20activation=20(#467)?= =?UTF-8?q?=20=20=20*=20=20Fix=20and=20test=20global=20completion=20in=20z?= =?UTF-8?q?sh=20(#463,=20#466)=20=20=20*=20=20Add=20=E2=80=93yes=20option?= =?UTF-8?q?=20to=20activate-global-python-argcomplete=20(#461)=20=20=20*?= =?UTF-8?q?=20=20Test=20suite=20improvements=20-=20drop=20without=5Fzsh.pa?= =?UTF-8?q?tch:=20obsolete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=65 --- argcomplete-3.1.6.tar.gz | 3 --- argcomplete-3.2.1.tar.gz | 3 +++ python-argcomplete.changes | 10 ++++++++++ python-argcomplete.spec | 12 +++++------- without_zsh.patch | 25 ------------------------- 5 files changed, 18 insertions(+), 35 deletions(-) delete mode 100644 argcomplete-3.1.6.tar.gz create mode 100644 argcomplete-3.2.1.tar.gz delete mode 100644 without_zsh.patch diff --git a/argcomplete-3.1.6.tar.gz b/argcomplete-3.1.6.tar.gz deleted file mode 100644 index 2fc304e..0000000 --- a/argcomplete-3.1.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b1f07d133332547a53c79437527c00be48cca3807b1d4ca5cab1b26313386a6 -size 79685 diff --git a/argcomplete-3.2.1.tar.gz b/argcomplete-3.2.1.tar.gz new file mode 100644 index 0000000..d91d363 --- /dev/null +++ b/argcomplete-3.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:437f67fb9b058da5a090df505ef9be0297c4883993f3f56cb186ff087778cfb4 +size 80727 diff --git a/python-argcomplete.changes b/python-argcomplete.changes index 71f60a5..a5ab6d8 100644 --- a/python-argcomplete.changes +++ b/python-argcomplete.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Dec 29 18:27:06 UTC 2023 - Dirk Müller + +- 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 diff --git a/python-argcomplete.spec b/python-argcomplete.spec index 2e1b369..0ef77ad 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -19,26 +19,24 @@ %{?sle15_python_module_pythons} Name: python-argcomplete -Version: 3.1.6 +Version: 3.2.1 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 -# Don't fail the test suite when zsh is not available -Patch2: without_zsh.patch # Use correct place for auxiliary bashrc.sh file from pexpect Patch3: bash-repl.patch BuildRequires: %{python_module coverage} BuildRequires: %{python_module pexpect} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools >= 67.7.2} BuildRequires: %{python_module setuptools_scm >= 6.2} BuildRequires: %{python_module wheel} BuildRequires: ca-certificates BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: zsh Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch @@ -62,10 +60,10 @@ resources over the network). %autosetup -p1 -n argcomplete-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/register-python-argcomplete %python_clone -a %{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script rm -rf %{buildroot}%{python_sitelib}/test @@ -94,7 +92,7 @@ export LANG=en_US.UTF-8 %files %{python_files} %doc README.rst %license LICENSE.rst -%{python_sitelib}/argcomplete-%{version}*-info +%{python_sitelib}/argcomplete-%{version}.dist-info %{python_sitelib}/argcomplete %python_alternative %{_bindir}/python-argcomplete-check-easy-install-script %python_alternative %{_bindir}/register-python-argcomplete diff --git a/without_zsh.patch b/without_zsh.patch deleted file mode 100644 index 385e7ec..0000000 --- a/without_zsh.patch +++ /dev/null @@ -1,25 +0,0 @@ -Index: argcomplete-3.1.6/test/test.py -=================================================================== ---- argcomplete-3.1.6.orig/test/test.py -+++ argcomplete-3.1.6/test/test.py -@@ -1299,20 +1299,6 @@ class TestBash(TestBashZshBase, unittest - self.test_simple_completion() - - --class TestZsh(TestBashZshBase, unittest.TestCase): -- skipped = [ -- "test_parse_special_characters", -- "test_parse_special_characters_dollar", -- "test_comp_point", # FIXME -- "test_completion_environment", # FIXME -- "test_continuation", # FIXME -- "test_wordbreak_chars", # FIXME -- ] -- -- 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=-)"'