forked from pool/python-argcomplete
Compare commits
16 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| d15a84f6d4 | |||
| fe1a480bc7 | |||
| 800eaf853e | |||
| da8eff4206 | |||
| 7fd6894c4b | |||
| 130d169a6a | |||
| d88ab8f157 | |||
| 0779e1fe80 | |||
| c3fabc84c8 | |||
| 9904c9c504 | |||
| 9cdd2ba647 | |||
| b898a04ace | |||
| 3ca032bb28 | |||
| a912570458 | |||
| 6d053361c2 | |||
| cfb0d3167a |
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
||||||
BIN
argcomplete-3.4.0.tar.gz
LFS
BIN
argcomplete-3.4.0.tar.gz
LFS
Binary file not shown.
BIN
argcomplete-3.5.3.tar.gz
LFS
Normal file
BIN
argcomplete-3.5.3.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,47 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Tue Aug 13 20:18:47 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-argcomplete
|
# spec file for package python-argcomplete
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 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
|
||||||
@@ -18,24 +18,36 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-argcomplete
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
Version: 3.4.0
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
Name: python-argcomplete%{psuffix}
|
||||||
|
Version: 3.5.3
|
||||||
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
|
|
||||||
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
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
BuildRequires: %{python_module pexpect}
|
BuildRequires: %{python_module hatchling}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools >= 67.2}
|
BuildRequires: %{python_module setuptools >= 67.2}
|
||||||
BuildRequires: %{python_module setuptools_scm >= 6.2}
|
BuildRequires: %{python_module setuptools_scm >= 6.2}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: ca-certificates-mozilla
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module argcomplete == %{version}}
|
||||||
|
BuildRequires: %{python_module pexpect}
|
||||||
|
BuildRequires: ca-certificates-mozilla
|
||||||
|
BuildRequires: fish
|
||||||
BuildRequires: zsh
|
BuildRequires: zsh
|
||||||
|
%endif
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -59,31 +71,41 @@ resources over the network).
|
|||||||
%autosetup -p1 -n argcomplete-%{version}
|
%autosetup -p1 -n argcomplete-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{without test}
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if %{without test}
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/activate-global-python-argcomplete
|
||||||
%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 %{buildroot}%{_bindir}/activate-global-python-argcomplete
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%python_expand chmod -x %{buildroot}%{$python_sitelib}/argcomplete/scripts/*.py
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with test}
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
export TERM=xterm-mono
|
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/299
|
# 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
|
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}
|
||||||
%post
|
%post
|
||||||
|
%python_install_alternative activate-global-python-argcomplete
|
||||||
%python_install_alternative register-python-argcomplete
|
%python_install_alternative register-python-argcomplete
|
||||||
%python_install_alternative python-argcomplete-check-easy-install-script
|
%python_install_alternative python-argcomplete-check-easy-install-script
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
%python_uninstall_alternative activate-global-python-argcomplete
|
||||||
%python_uninstall_alternative register-python-argcomplete
|
%python_uninstall_alternative register-python-argcomplete
|
||||||
%python_uninstall_alternative python-argcomplete-check-easy-install-script
|
%python_uninstall_alternative python-argcomplete-check-easy-install-script
|
||||||
|
|
||||||
@@ -92,7 +114,9 @@ export TERM=xterm-mono
|
|||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%{python_sitelib}/argcomplete-%{version}.dist-info
|
%{python_sitelib}/argcomplete-%{version}.dist-info
|
||||||
%{python_sitelib}/argcomplete
|
%{python_sitelib}/argcomplete
|
||||||
|
%python_alternative %{_bindir}/activate-global-python-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
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user