From ec3210f94e99b1b596f080616444b72eb962bcc7 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 07 2019 11:28:50 +0000 Subject: import python-argcomplete-1.9.3-6.el8 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c5c787 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/argcomplete-1.9.3.tar.gz diff --git a/.python-argcomplete.metadata b/.python-argcomplete.metadata new file mode 100644 index 0000000..80b7bb0 --- /dev/null +++ b/.python-argcomplete.metadata @@ -0,0 +1 @@ +de70124ad24f8cea6f245553291776d9e668b232 SOURCES/argcomplete-1.9.3.tar.gz diff --git a/SPECS/python-argcomplete.spec b/SPECS/python-argcomplete.spec new file mode 100644 index 0000000..60d1ee3 --- /dev/null +++ b/SPECS/python-argcomplete.spec @@ -0,0 +1,212 @@ +%global modname argcomplete + +%bcond_without check + +Name: python-%{modname} +Summary: Bash tab completion for argparse +Version: 1.9.3 +Release: 6%{?dist} +License: ASL 2.0 +URL: https://github.com/kislyuk/argcomplete +Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz + +%if %{with check} +BuildRequires: tcsh +%endif + +BuildArch: noarch + +%global _description \ +Argcomplete provides easy, extensible command line tab completion of\ +arguments for your Python script.\ +\ +It makes two assumptions:\ +\ + * You are using bash as your shell\ + * You are using argparse to manage your command line arguments/options\ +\ +Argcomplete is particularly useful if your program has lots of\ +options or subparsers, and if your program can dynamically suggest\ +completions for your argument/option values (for example, if the user\ +is browsing resources over the network). + +%description %{_description} + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +# pkg_resources module is used from python-argcomplete-check-easy-install-script +%if 0%{?rhel} && 0%{?rhel} >= 8 +Requires: platform-python-setuptools +%else +Requires: python3-setuptools +%endif + +%description -n python3-%{modname} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{modname}-%{version} +# Remove useless BRs +sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py + +pathfix.py -pn -i %{__python3} test/test.py +pathfix.py -pn -i %{__python3} scripts/activate-global-python-argcomplete +pathfix.py -pn -i %{__python3} scripts/python-argcomplete-check-easy-install-script +pathfix.py -pn -i %{__python3} scripts/register-python-argcomplete + +%build +%py3_build + +%install +%py3_install +mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/ +install -p -m0644 %{buildroot}%{python3_sitelib}/%{modname}/bash_completion.d/python-argcomplete.sh %{buildroot}%{_sysconfdir}/bash_completion.d/ + +%if %{with check} +%check +export LC_ALL=C.UTF-8 + +# FIXME: Tests depend on Python 2, they aren't compatible with Python 3 +#{__python3} setup.py test +# - Dropped test dependency on python3-pexpect since the tests weren't being +# run, and python3-pexpect is being dropped from RHEL8 as part of component +# trimming. If tests are needed in the future, they can be run by QE. + +%endif + +%files -n python3-%{modname} +%license LICENSE.rst +%doc README.rst +%{python3_sitelib}/%{modname}-*.egg-info/ +%{python3_sitelib}/%{modname}/ +%{_bindir}/activate-global-python-argcomplete +%{_bindir}/python-argcomplete-check-easy-install-script +%{_bindir}/python-argcomplete-tcsh +%{_bindir}/register-python-argcomplete +%{_sysconfdir}/bash_completion.d/python-argcomplete.sh + +%changelog +* Fri Nov 16 2018 Lumír Balhar - 1.9.3-6 +- Require platform-python-setuptools instead of python3-setuptools +- Resolves: rhbz#1650517 + +* Tue Jun 12 2018 Tomas Orsava - 1.9.3-5 +- Dropped test dependency on python3-pexpect since the tests weren't being + run, and python3-pexpect is being dropped from RHEL8 as part of component + trimming. If tests are needed in the future, they can be run by QE. + +* Tue May 29 2018 Petr Viktorin - 1.9.3-4 +- Remove the Python 2 version +- Point shebangs to Python 3 +- Skip tests (which depend on Python 2) + +* Fri Feb 09 2018 Igor Gnatenko - 1.9.3-3 +- Escape macros in %%changelog + +* Fri Feb 09 2018 Fedora Release Engineering - 1.9.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sun Nov 19 2017 Igor Gnatenko - 1.9.3-1 +- Update to 1.9.3 + +* Wed Nov 08 2017 Igor Gnatenko - 1.9.2-1 +- Update to 1.9.2 + +* Thu Jul 27 2017 Fedora Release Engineering - 1.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Jan 26 2017 Igor Gnatenko - 1.8.2-1 +- Update to 1.8.2 + +* Thu Jan 26 2017 Igor Gnatenko - 1.8.1-1 +- Update to 1.8.1 + +* Sat Jan 07 2017 Igor Gnatenko - 1.7.0-1 +- Update to 1.7.0 (RHBZ #1339845) + +* Fri Dec 09 2016 Charalampos Stratakis - 1.1.1-3 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.1.1-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Sun Mar 27 2016 Igor Gnatenko - 1.1.1-1 +- Update to 1.1.1 (RHBZ #1320348) + +* Mon Feb 22 2016 Igor Gnatenko - 1.1.0-1 +- Update to 1.1.0 (RHBZ #1310473) + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sat Dec 05 2015 Igor Gnatenko - 1.0.0-3 +- Ship bash completion file within RPM + +* Sat Nov 14 2015 Toshio Kuratomi - 1.0.0-2 +- A few minor changes to simplify and take care of cornercases + +* Sat Nov 14 2015 Zbigniew Jędrzejewski-Szmek - 1.0.0-1 +- Update to latest version (#1227119) +- Use %%license +- Update to new python packaging style +- Remove 2to3 invocation, the code is already python3 compatible +- Move scripts to python3 subpackage +- Add Provides:/usr/bin/register-python-activate so packages can depend on it + +* Fri Nov 06 2015 Robert Kuska - 0.8.9-4 +- Rebuilt for Python3.5 rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 0.8.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Jun 2 2015 - Steve Traylen 0.8.8-2 +- Add python3 package (#1225934) + +* Tue Jun 02 2015 Fedora Release Monitoring - 0.8.9-1 +- Update to 0.8.9 (#1227119) + +* Tue May 5 2015 - Steve Traylen 0.8.8-1 +- Updating package to 0.8.8 + +* Sun Dec 14 2014 - Dale Macartney 0.8.4-1 +- Updating package to 0.8.4 + +* Fri Sep 12 2014 - Steve Traylen 0.8.1-1 +- Updating package to 0.8.1 + +* Sat Jun 07 2014 Fedora Release Engineering - 0.8.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Apr 14 2014 - Dale Macartney 0.8.0-1 +- Updating package to 0.8.0 + +* Sun Mar 30 2014 - Dale Macartney 0.7.1-1 +- Updating package to 0.7.1 + +* Mon Mar 24 2014 - Dale Macartney 0.7.0-1 +- Updating package to 0.7.0 + +* Mon Jan 13 2014 - Dale Macartney 0.6.7-2 +- Removing '%%exclude %%{python_sitelib}/test' fom %%files as no longer needed. + +* Mon Jan 13 2014 - Dale Macartney 0.6.7-1 +- Applying latest patch of argcomplete. + +* Wed Jan 8 2014 - Dale Macartney 0.6.3-4 +- Pushing new build for update as previous was not picked up. + +* Wed Oct 16 2013 - Dale Macartney 0.6.3-3 +- Correct missing files for el6 + +* Tue Oct 15 2013 - Dale Macartney 0.6.3-2 +- Initial packaging for Fedora Project and including LICENSE.rst in docs + +* Thu Jan 31 2013 - Marco Neciarini 0.3.5-1 +- Initial packaging.