From af6af413a023c443a2c595ef655f540c195c1b77 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 12 Aug 2018 15:52:10 +0200 Subject: [PATCH] Update to 1.9.4 + drop python2 subpkg Signed-off-by: Igor Gnatenko --- .gitignore | 1 + CHANGELOG.yml | 6 ------ python-argcomplete.spec | 34 +++++++--------------------------- sources | 2 +- 4 files changed, 9 insertions(+), 34 deletions(-) delete mode 100644 CHANGELOG.yml diff --git a/.gitignore b/.gitignore index 714ce90..84cbe25 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /argcomplete-1.8.2.tar.gz /argcomplete-1.9.2.tar.gz /argcomplete-1.9.3.tar.gz +/argcomplete-1.9.4.tar.gz diff --git a/CHANGELOG.yml b/CHANGELOG.yml deleted file mode 100644 index c2ef815..0000000 --- a/CHANGELOG.yml +++ /dev/null @@ -1,6 +0,0 @@ -- nevr: python-argcomplete-1.8.1-1 - changelog: > - Update to 1.8.1 - - Full changelog available at:: https://github.com/kislyuk/argcomplete/blob/master/Changes.rst - update_type: enhancement diff --git a/python-argcomplete.spec b/python-argcomplete.spec index 9bfb5d0..37a97bb 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -4,15 +4,13 @@ Name: python-%{modname} Summary: Bash tab completion for argparse -Version: 1.9.3 -Release: 5%{?dist} +Version: 1.9.4 +Release: 1%{?dist} License: ASL 2.0 URL: https://github.com/kislyuk/argcomplete Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz %if %{with check} -# something in tests is invoking /usr/bin/python to test things -BuildRequires: /usr/bin/python BuildRequires: tcsh %endif @@ -34,19 +32,6 @@ is browsing resources over the network). %description %{_description} -%package -n python2-%{modname} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{modname}} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%if %{with check} -BuildRequires: python2-pexpect -%endif - -%description -n python2-%{modname} %{_description} - -Python 2 version. - %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} @@ -66,13 +51,12 @@ Python 3 version. %autosetup -n %{modname}-%{version} # Remove useless BRs sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py +sed -i -e "1s|#!.*|#!%{__python3}|" tests/prog %build -%py2_build %py3_build %install -%py2_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/ @@ -80,17 +64,9 @@ install -p -m0644 %{buildroot}%{python3_sitelib}/%{modname}/bash_completion.d/py %if %{with check} %check export LC_ALL=C.UTF-8 -export PYTHON_DISALLOW_AMBIGUOUS_VERSION=0 # something in tests is invoking /usr/bin/python to test things -%{__python2} setup.py test %{__python3} setup.py test %endif -%files -n python2-%{modname} -%license LICENSE.rst -%doc README.rst -%{python2_sitelib}/%{modname}-*.egg-info/ -%{python2_sitelib}/%{modname}/ - %files -n python3-%{modname} %license LICENSE.rst %doc README.rst @@ -103,6 +79,10 @@ export PYTHON_DISALLOW_AMBIGUOUS_VERSION=0 # something in tests is invoking /us %{_sysconfdir}/bash_completion.d/python-argcomplete.sh %changelog +* Sun Aug 12 2018 Igor Gnatenko - 1.9.4-1 +- Update to 1.9.4 +- Drop python2 subpackage + * Fri Jul 13 2018 Fedora Release Engineering - 1.9.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index adfd175..8424c42 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (argcomplete-1.9.3.tar.gz) = 6f793b1f34df171478af2c477b5ddeff3f44a4c08d1a9205cff19fcc97e65d19a39ddd5c1d7653a70c738507ee1fb5603c437e16e64b3943a87247426bd270b6 +SHA512 (argcomplete-1.9.4.tar.gz) = 2b0900b55136739f409c32172933af985f4cdde1c018a4687d02f0c5ecdaf36eb8f960270d16bbd157e79f76992c437ab42fd4c6aa9b6aeb3c7302935bf00970