Compare commits

...

No commits in common. 'cs10' and 'c9' have entirely different histories.
cs10 ... c9

2
.gitignore vendored

@ -1 +1 @@
SOURCES/argcomplete-3.2.2.tar.gz SOURCES/argcomplete-1.12.0.tar.gz

@ -1 +1 @@
e04c56e3cf245e2f0efe3aaed6d2a09e492eee74 SOURCES/argcomplete-3.2.2.tar.gz 5316860c86a931535fd9bed6a5ca8bd9f6a67e33 SOURCES/argcomplete-1.12.0.tar.gz

@ -1,13 +1,3 @@
## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 4;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
# Disable check to avoid pulling unwanted package (fish) into RHEL 9 # Disable check to avoid pulling unwanted package (fish) into RHEL 9
%if 0%{?rhel} >= 9 && !0%{?epel} %if 0%{?rhel} >= 9 && !0%{?epel}
%bcond_with check %bcond_with check
@ -15,42 +5,39 @@
%bcond_without check %bcond_without check
%endif %endif
# Enable all tests (requires check to be true)
%bcond all_tests 1
Name: python-argcomplete Name: python-argcomplete
Summary: Bash tab completion for argparse Summary: Bash tab completion for argparse
Version: 3.2.2 Version: 1.12.0
Release: %autorelease Release: 5%{?dist}
License: Apache-2.0 License: ASL 2.0
URL: https://github.com/kislyuk/argcomplete URL: https://github.com/kislyuk/argcomplete
Source0: %pypi_source argcomplete Source0: %pypi_source argcomplete
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with check} %if %{with check}
BuildRequires: tcsh BuildRequires: tcsh
BuildRequires: fish BuildRequires: fish
BuildRequires: zsh BuildRequires: /usr/bin/pip
BuildRequires: python3-pexpect
%endif %endif
BuildArch: noarch BuildArch: noarch
%global _description %{expand: %global _description %{expand:
Tab complete all the things!
Argcomplete provides easy, extensible command line tab completion of Argcomplete provides easy, extensible command line tab completion of
arguments for your Python application. arguments for your Python script.
It makes two assumptions: It makes two assumptions:
- You're using bash or zsh as your shell * You are using bash as your shell
- You're using argparse to manage your command line arguments/options * You are using argparse to manage your command line arguments/options
Argcomplete is particularly useful if your program has lots of options Argcomplete is particularly useful if your program has lots of
or subparsers, and if your program can dynamically suggest completions options or subparsers, and if your program can dynamically suggest
for your argument/option values (for example, if the user is browsing completions for your argument/option values (for example, if the user
resources over the network).} is browsing resources over the network).}
%description %_description %description %_description
@ -60,149 +47,50 @@ Summary: %{summary}
%prep %prep
%autosetup -p1 -n argcomplete-%{version} %autosetup -p1 -n argcomplete-%{version}
# Remove useless BRs (aka linters) # Remove useless BRs
sed -i -r -e '/test = /s/"(coverage|ruff|mypy)"[, ]*//g' pyproject.toml sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py
# 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/256
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
%generate_buildrequires
%pyproject_buildrequires %{?with_check:-x test}
%build %build
%pyproject_wheel %py3_build
%install %install
%pyproject_install %py3_install
%pyproject_save_files argcomplete mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
install -p -m0644 %{buildroot}%{python3_sitelib}/argcomplete/bash_completion.d/python-argcomplete %{buildroot}%{_sysconfdir}/bash_completion.d/
# do not attempt to install to %%bash_completions_dir, see https://bugzilla.redhat.com/2211862
install -Dp -m0644 argcomplete/bash_completion.d/_%{name} %{buildroot}%{_sysconfdir}/bash_completion.d/_%{name}
%if %{with check} %if %{with check}
%check %check
%if %{with all_tests} # workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1914782
%{py3_test_envvars} %{python3} test/test.py -v # upstream: https://github.com/kislyuk/argcomplete/issues/337
%else echo "set enable-bracketed-paste off" > .inputrc
# Disable zsh tests. They fail for mysterious reasons. export INPUTRC=$PWD/.inputrc
# https://github.com/kislyuk/argcomplete/issues/447
%{py3_test_envvars} %{python3} test/test.py -v -k "TestArgcomplete" %{python3} setup.py test
%{py3_test_envvars} %{python3} test/test.py -v -k "TestBash"
%{py3_test_envvars} %{python3} test/test.py -v -k "TestCheckModule"
%{py3_test_envvars} %{python3} test/test.py -v -k "TestSplitLine"
%endif
%endif %endif
%files -n python3-argcomplete -f %{pyproject_files} %files -n python3-argcomplete
%license LICENSE.rst %license LICENSE.rst
%doc README.rst %doc README.rst
%{python3_sitelib}/argcomplete-*.egg-info/
%{python3_sitelib}/argcomplete/
%{_bindir}/activate-global-python-argcomplete %{_bindir}/activate-global-python-argcomplete
%{_bindir}/python-argcomplete-check-easy-install-script %{_bindir}/python-argcomplete-check-easy-install-script
%{_bindir}/python-argcomplete-tcsh
%{_bindir}/register-python-argcomplete %{_bindir}/register-python-argcomplete
%{_sysconfdir}/bash_completion.d/_%{name} %{_sysconfdir}/bash_completion.d/python-argcomplete
%changelog %changelog
## START: Generated by rpmautospec * Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.12.0-5
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.2.2-4 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
- Bump release for October 2024 mass rebuild: Related: rhbz#1991688
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.2.2-3
- Bump release for June 2024 mass rebuild
* Tue Feb 06 2024 Sandro <devel@penguinpee.nl> - 3.2.2-2
- Add Packit config
* Tue Feb 06 2024 Sandro <devel@penguinpee.nl> - 3.2.2-1
- Update to 3.2.2 (RHBZ#2259943)
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Dec 13 2023 Sandro <devel@penguinpee.nl> - 3.2.1-1
- Update to 3.2.1 (RHBZ#2175448)
* Sun Dec 10 2023 Sandro <devel@penguinpee.nl> - 3.2.0-1
- Update to 3.2.0 (RHBZ#2175448)
- Drop patches (merged upstream)
* Sat Nov 25 2023 Sandro <devel@penguinpee.nl> - 3.1.6-2
- Apply patches from upstream regarding zsh tests
* Mon Nov 13 2023 Sandro <devel@penguinpee.nl> - 3.1.6-1
- Update to 3.1.6 (RHBZ#2175448)
* Thu Nov 09 2023 Sandro <devel@penguinpee.nl> - 3.1.4-3 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.12.0-4
- Add conditional for running all tests - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Thu Nov 09 2023 Sandro <devel@penguinpee.nl> - 3.1.4-2
- Update description
* Thu Nov 09 2023 Sandro <devel@penguinpee.nl> - 3.1.4-1
- Update to 3.1.4 (RHBZ#2175448)
- Drop patches (merged upstream)
- Disable zsh tests (I will re-open upstream issue #447)
- Various edits due to upstream changes
* Thu Sep 14 2023 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-12
- Second attempt to fix KeyError: 'console_scripts'
- Fixes: rhbz#2231593
* Sun Aug 13 2023 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-11
- Fix KeyError: 'console_scripts'
- Fixes: rhbz#2231593
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.0.0-9
- Rebuilt for Python 3.12
* Mon Jun 05 2023 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-8
- Move the Bash completion files to /etc/bash_completion.d to fix rhbz#2211862
* Mon May 22 2023 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-7
- Fix build with pip 23.1.2+
- Fixes: rhbz#2209020
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Nov 12 2022 Todd Zullinger <tmz@pobox.com> - 2.0.0-5
- Install bash-completion in default location
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.0-3
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Jan 04 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.0.0-1
- Update to 2.0.0
- Fixes: rhbz#2036728
- Fixes: rhbz#2034200
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.12.3-2
- Rebuilt for Python 3.10
* Thu Apr 29 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.12.3-1
- Update to 1.12.3
- Resolves: rhbz#1951096
* Wed Feb 17 2021 Lumír Balhar <lbalhar@redhat.com> - 1.12.2-1
- Update to 1.12.2
Resolves: rhbz#1882968
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
@ -356,5 +244,3 @@ Resolves: rhbz#1882968
* Thu Jan 31 2013 - Marco Neciarini <marco.nenciarini@2ndquadrant.it> 0.3.5-1 * Thu Jan 31 2013 - Marco Neciarini <marco.nenciarini@2ndquadrant.it> 0.3.5-1
- Initial packaging. - Initial packaging.
## END: Generated by rpmautospec

Loading…
Cancel
Save