15
0

21 Commits

Author SHA256 Message Date
892c3fed62 Convert to libalternatives, bsc#1245883 2025-11-03 14:10:43 +01:00
d15a84f6d4 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
fe1a480bc7 - 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
800eaf853e 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
da8eff4206 update to 3.5.3
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
7fd6894c4b 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
130d169a6a - 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/package/show/devel:languages:python/python-argcomplete?expand=0&rev=86
2024-12-10 15:53:43 +00:00
d88ab8f157 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
0779e1fe80 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
c3fabc84c8 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
9904c9c504 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
9cdd2ba647 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
b898a04ace - 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
3ca032bb28 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
a912570458 - 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
6d053361c2 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
cfb0d3167a - 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
dd5ac3416c 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
540b9317fc - 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
5820dd98f4 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
15003f296a - 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/package/show/devel:languages:python/python-argcomplete?expand=0&rev=72
2024-07-15 18:40:35 +00:00
6 changed files with 118 additions and 37 deletions

3
_multibuild Normal file
View File

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

Binary file not shown.

BIN
argcomplete-3.5.3.tar.gz LFS Normal file

Binary file not shown.

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,76 @@
-------------------------------------------------------------------
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,41 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-argcomplete
Version: 3.3.0
Name: python-argcomplete%{psuffix}
Version: 3.5.3
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: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: zsh
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: alts
BuildArch: noarch
%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,40 +72,47 @@ 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
%post
%python_install_alternative register-python-argcomplete
%python_install_alternative python-argcomplete-check-easy-install-script
%postun
%python_uninstall_alternative register-python-argcomplete
%python_uninstall_alternative python-argcomplete-check-easy-install-script
%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
%files %{python_files}
%doc README.rst
%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