!14 remove python2-requests package
From: @s17723959267 Reviewed-by: @MrRlu Signed-off-by: @MrRlu
This commit is contained in:
commit
186a082423
@ -2,7 +2,7 @@
|
||||
|
||||
Name: python-requests
|
||||
Version: 2.24.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Python HTTP Library
|
||||
License: ASL 2.0
|
||||
URL: http://python-requests.org/
|
||||
@ -32,19 +32,6 @@ Features of Requests:
|
||||
- Authentication:
|
||||
+ 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
|
||||
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
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} -m pytest -v
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
|
||||
%endif # tests
|
||||
|
||||
%files -n python2-requests
|
||||
%license LICENSE
|
||||
%{python2_sitelib}/*.egg-info
|
||||
%{python2_sitelib}/requests/
|
||||
|
||||
%files -n python%{python3_pkgversion}-requests
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
@ -112,6 +91,12 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
|
||||
%doc HISTORY.md README.md
|
||||
|
||||
%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
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user