!13 Update package to version 3.1.1

From: @jxy_git 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2023-06-25 00:33:45 +00:00 committed by Gitee
commit 8b0336803e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 3 deletions

Binary file not shown.

BIN
argcomplete-3.1.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,5 +1,5 @@
Name: python-argcomplete Name: python-argcomplete
Version: 3.0.5 Version: 3.1.1
Release: 1 Release: 1
Summary: Argparse's bash tab completion Summary: Argparse's bash tab completion
License: ASL 2.0 License: ASL 2.0
@ -23,6 +23,7 @@ Argcomplete provides simple, extensible command line tab parameter completion fo
%prep %prep
%autosetup -n argcomplete-%{version} -p1 %autosetup -n argcomplete-%{version} -p1
sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py
sed -i '9a\ name = "argcomplete",\n version = "3.1.1",' setup.py
sed -i -e "1s|#!.*python.*|#!%{__python3}|" test/prog scripts/* sed -i -e "1s|#!.*python.*|#!%{__python3}|" test/prog scripts/*
sed -i -e "s|python |python3 |" test/test.py sed -i -e "s|python |python3 |" test/test.py
@ -32,7 +33,7 @@ sed -i -e "s|python |python3 |" test/test.py
%install %install
%py3_install %py3_install
install -d %{buildroot}%{_sysconfdir}/bash_completion.d/ install -d %{buildroot}%{_sysconfdir}/bash_completion.d/
install -p -m0644 %{buildroot}%{python3_sitelib}/argcomplete/bash_completion.d/python-argcomplete \ install -p -m0644 %{buildroot}%{python3_sitelib}/argcomplete/bash_completion.d/_python-argcomplete \
%{buildroot}%{_sysconfdir}/bash_completion.d/ %{buildroot}%{_sysconfdir}/bash_completion.d/
%check %check
@ -42,9 +43,12 @@ install -p -m0644 %{buildroot}%{python3_sitelib}/argcomplete/bash_completion.d/p
%{python3_sitelib}/{argcomplete-*.egg-info/,argcomplete/} %{python3_sitelib}/{argcomplete-*.egg-info/,argcomplete/}
%{_bindir}/{activate-global-python-argcomplete,python-argcomplete-check-easy-install-script} %{_bindir}/{activate-global-python-argcomplete,python-argcomplete-check-easy-install-script}
%{_bindir}/{python-argcomplete-tcsh,register-python-argcomplete} %{_bindir}/{python-argcomplete-tcsh,register-python-argcomplete}
%{_sysconfdir}/bash_completion.d/python-argcomplete %{_sysconfdir}/bash_completion.d/_python-argcomplete
%changelog %changelog
* Wed Jun 21 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 3.1.1-1
- Update package to version 3.1.1
* Fri Apr 07 2023 wulei <wu_lei@hoperun.com> - 3.0.5-1 * Fri Apr 07 2023 wulei <wu_lei@hoperun.com> - 3.0.5-1
- Upgrade package to version 3.0.5 - Upgrade package to version 3.0.5