!5 upgrade to fix build error

From: @jackie_wu123
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
This commit is contained in:
openeuler-ci-bot 2021-01-12 15:16:47 +08:00 committed by Gitee
commit ebd73b6f46
3 changed files with 8 additions and 6 deletions

Binary file not shown.

BIN
3.4.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
Name: python-redis
Version: 2.10.6
Release: 7
Version: 3.4.1
Release: 1
Summary: The Python interface to the Redis key-value store
License: MIT
URL: https://github.com/andymccurdy/redis-py
@ -20,17 +20,16 @@ The Python3 interface to the Redis key-value store.
%prep
%autosetup -n redis-py-%{version} -p1
rm tests/test_commands.py*
%build
%{__python3} setup.py build
%py3_build
%install
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
%py3_install
%check
redis-server &
%{__python3} setup.py test
%{__python3} -m pytest
kill %1
%files -n python3-redis
@ -39,6 +38,9 @@ kill %1
%{python3_sitelib}/redis-%{version}-py%{python3_version}.egg-info
%changelog
* Tue Jan 12 2021 wutao <wutao61@huawei.com> - 3.4.1-1
- upgrade to 3.4.1 adapting to pytest
* Wed Aug 05 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 2.10.6-7
- Remove python2