!4 update to 1.5.1

Merge pull request !4 from pengyq/openEuler-20.03-LTS
This commit is contained in:
openeuler-ci-bot 2020-08-04 21:13:38 +08:00 committed by Gitee
commit 2e2baa1b4c
3 changed files with 12 additions and 7 deletions

View File

@ -1,12 +1,12 @@
%global _name requests-file %global _name requests-file
Name: python-%{_name} Name: python-%{_name}
Version: 1.4.3 Version: 1.5.1
Release: 9 Release: 1
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
Source0: https://github.com/dashea/%{_name}/archive/%{version}.tar.gz#/%{_name}-%{version}.tar.gz Source0: https://github.com/dashea/%{_name}/archive/%{_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
@ -16,7 +16,7 @@ to allow local filesystem access via file:// URLs.
%package -n python2-%{_name} %package -n python2-%{_name}
Summary: python2 version of %{summary} Summary: python2 version of %{summary}
BuildRequires: python2-devel python2-setuptools BuildRequires: python2-devel python2-setuptools python2-pytest
BuildRequires: python2-requests python2-six BuildRequires: python2-requests python2-six
Requires: python2-requests python2-six Requires: python2-requests python2-six
%{?python_provide:%python_provide python2-%{_name}} %{?python_provide:%python_provide python2-%{_name}}
@ -26,7 +26,7 @@ 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 BuildRequires: python3-devel python3-setuptools python3-pytest
BuildRequires: python3-requests python3-six BuildRequires: python3-requests python3-six
Requires: python3-requests python3-six Requires: python3-requests python3-six
%{?python_provide:%python_provide python3-%{_name}} %{?python_provide:%python_provide python3-%{_name}}
@ -46,8 +46,10 @@ python3 binds of python-%{_name}.
%py3_install %py3_install
%check %check
%{__python2} setup.py test export PYTHONPATH=%{buildroot}%{python2_sitelib}
%{__python3} setup.py test %{__python2} tests/test_requests_file.py
export PYTHONPATH=%{buildroot}%{python3_sitelib}
%{__python3} tests/test_requests_file.py
%files -n python2-%{_name} %files -n python2-%{_name}
%doc README.rst %doc README.rst
@ -63,5 +65,8 @@ python3 binds of python-%{_name}.
%{python3_sitelib}/*info* %{python3_sitelib}/*info*
%changelog %changelog
* Tue Aug 04 2020 Yeqing Peng <pengyeqing@huawei.com> - 1.5.1-1
- update to 1.5.1
* Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.4.3-9 * Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.4.3-9
- Package init - Package init

Binary file not shown.

BIN
requests-file-1.5.1.tar.gz Normal file

Binary file not shown.