Update to 1.9.4 + drop python2 subpkg
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
ec76c5f839
commit
af6af413a0
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
@ -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
|
@ -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 <ignatenkobrain@fedoraproject.org> - 1.9.4-1
|
||||
- Update to 1.9.4
|
||||
- Drop python2 subpackage
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (argcomplete-1.9.3.tar.gz) = 6f793b1f34df171478af2c477b5ddeff3f44a4c08d1a9205cff19fcc97e65d19a39ddd5c1d7653a70c738507ee1fb5603c437e16e64b3943a87247426bd270b6
|
||||
SHA512 (argcomplete-1.9.4.tar.gz) = 2b0900b55136739f409c32172933af985f4cdde1c018a4687d02f0c5ecdaf36eb8f960270d16bbd157e79f76992c437ab42fd4c6aa9b6aeb3c7302935bf00970
|
||||
|
Loading…
Reference in New Issue
Block a user