From 88318f4c478203802dc4496d0a0cb32190d62812 Mon Sep 17 00:00:00 2001 From: zhangy1317 Date: Thu, 27 Jan 2022 10:24:45 +0800 Subject: [PATCH] remove python2 --- python-requests.spec | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/python-requests.spec b/python-requests.spec index 5714176..395e521 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -2,7 +2,7 @@ Name: python-requests Version: 2.24.0 -Release: 1 +Release: 2 Summary: Python HTTP Library License: ASL 2.0 URL: http://python-requests.org/ @@ -32,18 +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,23 +70,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) @@ -112,6 +93,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v %doc HISTORY.md README.md %changelog +* Wed Jan 26 2022 zhangy1317 - 2.24.0-2 +- Remove python2 + * Tues Aug 18 2020 jinzhimin - 2.24.0-1 - update package to 2.24.0 -- Gitee