diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..f087b429e2f81a9f37b28a8308e2210f84df6c9b --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..7dbe789b3337dc17d5dbf734a9a6f808651baa41 --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/python-redis diff --git a/python-redis.spec b/python-redis.spec index a1660a93f251f29e7a1d9f35d38f1180aaeb36d5..2e56bad77cf82f7f0b90fe0d1848cab6349cf203 100644 --- a/python-redis.spec +++ b/python-redis.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-redis -Version: 5.2.0 -Release: 2 +Version: 6.2.0 +Release: 1 Summary: Python client for Redis key-value store License: MIT URL: https://github.com/redis/redis-py @@ -23,6 +23,10 @@ BuildRequires: python3-pytest-asyncio BuildRequires: python3-mock BuildRequires: redis5 BuildRequires: python3-numpy +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-coverage Requires: python3-async-timeout Requires: python3-importlib-metadata Requires: python3-typing-extensions @@ -36,19 +40,17 @@ Provides: python3-redis-doc The Python interface to the Redis key-value store. %prep -%autosetup -n redis-%{version} +%autosetup -n redis-%{version} -p1 rm tests/test_commands.py -rm tests/test_bloom.py -rm tests/test_graph.py -rm tests/test_timeseries.py +rm tests/test_command_parser.py %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -90,7 +92,7 @@ PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_ PYTHONDONTWRITEBYTECODE=1 \ %{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \ PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} \ -/usr/bin/pytest -m 'onlynoncluster and not ssl and not redismod' \ +/usr/bin/pytest -m 'not (onlycluster or redismod or ssl or graph)' \ --ignore "tests/test_credentials.py" \ --ignore "tests/test_asyncio/test_credentials.py" \ --ignore "tests/test_asyncio/test_cwe_404.py" \ @@ -99,13 +101,21 @@ PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} \ kill %1 %files -n python3-redis -f filelist.lst -%dir %{python3_sitelib}/* +%{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog +* Thu Jul 10 2025 yaoxin <1024769339@qq.com> - 6.2.0-1 +- Update to 6.2.0: + * Add dynamic_startup_nodes parameter to async RedisCluster + * Support RESP3 with hiredis-py parser + * [Async] Support for transactions in async RedisCluster client + * Revert wrongly changed default value for check_hostname when instantiating RedisSSLContext + * Fixed potential deadlock from unexpected __del__ call + * Thu Mar 13 2025 yaoxin <1024769339@qq.com> - 5.2.0-2 - Switch buildrequire redis to redis5 diff --git a/redis-5.2.0.tar.gz b/redis-5.2.0.tar.gz deleted file mode 100644 index b6faee611fb9c1d2dcdfbb3efef0b54429db18d3..0000000000000000000000000000000000000000 Binary files a/redis-5.2.0.tar.gz and /dev/null differ diff --git a/redis-6.2.0.tar.gz b/redis-6.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..63463b79910c074673ca1378cefe472946fb175c --- /dev/null +++ b/redis-6.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e821f129b75dde6cb99dd35e5c76e8c49512a5a0d8dfdc560b2fbd44b85ca977 +size 4639129