!9 delete python2 dependency
From: @weiwei_150212 Reviewed-by: @hanxinke Signed-off-by: @hanxinke
This commit is contained in:
commit
9869ad73d1
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-%{_name}
|
Name: python-%{_name}
|
||||||
Version: 1.5.1
|
Version: 1.5.1
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: A transport adapter for use with the Requests Python library
|
Summary: A transport adapter for use with the Requests Python library
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/dashea/requests-file
|
URL: https://github.com/dashea/requests-file
|
||||||
@ -14,16 +14,6 @@ BuildArch: noarch
|
|||||||
Requests-File is a transport adapter for use with the Requests Python library
|
Requests-File is a transport adapter for use with the Requests Python library
|
||||||
to allow local filesystem access via file:// URLs.
|
to allow local filesystem access via file:// URLs.
|
||||||
|
|
||||||
%package -n python2-%{_name}
|
|
||||||
Summary: python2 version of %{summary}
|
|
||||||
BuildRequires: python2-devel python2-setuptools python2-pytest
|
|
||||||
BuildRequires: python2-requests python2-six
|
|
||||||
Requires: python2-requests python2-six
|
|
||||||
%{?python_provide:%python_provide python2-%{_name}}
|
|
||||||
|
|
||||||
%description -n python2-%{_name}
|
|
||||||
python2 binds of python-%{_name}.
|
|
||||||
|
|
||||||
%package -n python3-%{_name}
|
%package -n python3-%{_name}
|
||||||
Summary: python3 version of %{summary}
|
Summary: python3 version of %{summary}
|
||||||
BuildRequires: python3-devel python3-setuptools python3-pytest
|
BuildRequires: python3-devel python3-setuptools python3-pytest
|
||||||
@ -38,24 +28,15 @@ python3 binds of python-%{_name}.
|
|||||||
%autosetup -n %{_name}-%{version} -p1
|
%autosetup -n %{_name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
||||||
%{__python2} tests/test_requests_file.py
|
|
||||||
%{__python3} tests/test_requests_file.py
|
%{__python3} tests/test_requests_file.py
|
||||||
|
|
||||||
%files -n python2-%{_name}
|
|
||||||
%doc README.rst
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/*.py*
|
|
||||||
%{python2_sitelib}/*info*
|
|
||||||
|
|
||||||
%files -n python3-%{_name}
|
%files -n python3-%{_name}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -64,6 +45,9 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|||||||
%{python3_sitelib}/*info*
|
%{python3_sitelib}/*info*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 tianwei <tianwei12@huawei.com> - 1.5.1-3
|
||||||
|
- remove python2
|
||||||
|
|
||||||
* Tue Sep 8 2020 shixuantong <shixuantong@huawei.com> - 1.5.1-2
|
* Tue Sep 8 2020 shixuantong <shixuantong@huawei.com> - 1.5.1-2
|
||||||
- update Source0
|
- update Source0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user