remove python2-requests package
This commit is contained in:
parent
68aa22734b
commit
0cbcb8ebde
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-requests
|
Name: python-requests
|
||||||
Version: 2.24.0
|
Version: 2.24.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Python HTTP Library
|
Summary: Python HTTP Library
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://python-requests.org/
|
URL: http://python-requests.org/
|
||||||
@ -32,19 +32,6 @@ Features of Requests:
|
|||||||
- Authentication:
|
- Authentication:
|
||||||
+ URL + HTTP Auth Registry.
|
+ URL + HTTP Auth Registry.
|
||||||
|
|
||||||
%package -n python2-requests
|
|
||||||
Summary: HTTP library, written in Python, for human beings
|
|
||||||
%{?python_provide:%python_provide python2-requests}
|
|
||||||
BuildRequires: python2-devel python2-idna python2-chardet python2-urllib3
|
|
||||||
%if %{with tests}
|
|
||||||
BuildRequires: python2-pytest python2-pytest-mock python2-pytest-cov
|
|
||||||
%endif
|
|
||||||
Requires: ca-certificates python2-idna python2-chardet python2-urllib3
|
|
||||||
|
|
||||||
%description -n python2-requests
|
|
||||||
This package exists only to allow packagers to uniformly depend on
|
|
||||||
python2-requests.
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-requests
|
%package -n python%{python3_pkgversion}-requests
|
||||||
Summary: Awesome Python HTTP Library That's Actually Usable
|
Summary: Awesome Python HTTP Library That's Actually Usable
|
||||||
|
|
||||||
@ -82,24 +69,16 @@ rm -rf requests/cacert.pem
|
|||||||
sed -i '/#!\/usr\/.*python/d' requests/certs.py
|
sed -i '/#!\/usr\/.*python/d' requests/certs.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} -m pytest -v
|
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
|
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
|
||||||
%endif # tests
|
%endif # tests
|
||||||
|
|
||||||
%files -n python2-requests
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/*.egg-info
|
|
||||||
%{python2_sitelib}/requests/
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-requests
|
%files -n python%{python3_pkgversion}-requests
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -112,6 +91,12 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
|
|||||||
%doc HISTORY.md README.md
|
%doc HISTORY.md README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 14 2020 shangyibin <shangyibin1@huawei.com> - 2.24.0-3
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: remove python2-requests package
|
||||||
|
|
||||||
*Tue Aug 4 2020 wuchaochao <wuchaochao4@huawei.com> - 2.24.0-2
|
*Tue Aug 4 2020 wuchaochao <wuchaochao4@huawei.com> - 2.24.0-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user