Update package to version 4.6.0

This commit is contained in:
lingjuer 2023-07-13 09:20:08 +08:00
parent 7cd43b8b12
commit 13c74b037c
2 changed files with 15 additions and 4 deletions

View File

@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-redis
Version: 4.5.5
Version: 4.6.0
Release: 1
Summary: Python client for Redis key-value store
License: MIT
URL: https://github.com/redis/redis-py
Source0: https://github.com/redis/redis-py/archive/v%{version}/redis-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/73/88/63d802c2b18dd9eaa5b846cbf18917c6b2882f20efda398cc16a7500b02c/redis-4.6.0.tar.gz
Source1: redis.conf
BuildArch: noarch
%description
@ -22,6 +22,9 @@ BuildRequires: python3-pytest
BuildRequires: python3-pytest-asyncio
BuildRequires: python3-mock
BuildRequires: redis
Requires: python3-async-timeout
Requires: python3-importlib-metadata
Requires: python3-typing-extensions
%description -n python3-redis
The Python interface to the Redis key-value store.
@ -32,7 +35,7 @@ Provides: python3-redis-doc
The Python interface to the Redis key-value store.
%prep
%autosetup -n redis-py-%{version}
%autosetup -n redis-%{version}
%build
%py3_build
@ -45,6 +48,9 @@ if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
@ -81,7 +87,9 @@ PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} \
/usr/bin/pytest -m 'onlynoncluster and not ssl and not redismod' \
--ignore "tests/test_credentials.py" \
--ignore "tests/test_asyncio/test_credentials.py" \
--ignore "tests/test_asyncio/test_cwe_404.py"
--ignore "tests/test_asyncio/test_cwe_404.py" \
--ignore "tests/test_asyncio/test_cluster.py" \
--ignore "tests/test_ssl.py"
kill %1
%files -n python3-redis -f filelist.lst
@ -92,6 +100,9 @@ kill %1
%{_docdir}/*
%changelog
* Thu Jul 13 2023 zhangchenglin <zhangchenglin@kylinos.cn> - 4.6.0-1
- Update package to version 4.6.0
* Thu Apr 6 2023 Dongxing Wang <dxwangk@isoftstone.com> - 4.5.5-1
- upgrade version to 4.5.5