Stop using python2-pip

This commit is contained in:
Miro Hrončok 2019-08-26 13:15:05 +02:00
parent 70fd6db2a2
commit 8081338488

View File

@ -10,7 +10,7 @@
Name: python-%{modname} Name: python-%{modname}
Version: 1.12.0 Version: 1.12.0
Release: 5%{?dist} Release: 6%{?dist}
Summary: Python 2 and 3 compatibility utilities Summary: Python 2 and 3 compatibility utilities
License: MIT License: MIT
@ -37,8 +37,6 @@ BuildRequires: python2-pytest
BuildRequires: python2-tkinter BuildRequires: python2-tkinter
%endif %endif
BuildRequires: python2-pip
%description -n python2-%{modname} %{_description} %description -n python2-%{modname} %{_description}
Python 2 version. Python 2 version.
@ -68,16 +66,20 @@ Python 3 version.
%build %build
%if %{with python2}
%py2_build
%endif
%py3_build_wheel %py3_build_wheel
%install %install
%py3_install_wheel %{python_wheelname}
%if %{with python2} %if %{with python2}
%py2_install_wheel %{python_wheelname} %py2_install
%endif %endif
%py3_install_wheel %{python_wheelname}
%if %{with tests} %if %{with tests}
%check %check
%if 0%{?fedora} < 32 %if 0%{?fedora} < 32
@ -91,7 +93,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py
%files -n python2-%{modname} %files -n python2-%{modname}
%license LICENSE %license LICENSE
%doc README.rst documentation/index.rst %doc README.rst documentation/index.rst
%{python2_sitelib}/%{modname}-*.dist-info/ %{python2_sitelib}/%{modname}-*.egg-info/
%{python2_sitelib}/%{modname}.py* %{python2_sitelib}/%{modname}.py*
%endif %endif
@ -104,6 +106,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py
%changelog %changelog
* Mon Aug 26 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-6
- Reduce Python 2 build dependencies
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-5 * Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-5
- Rebuilt for Python 3.8 - Rebuilt for Python 3.8