17
0

- Update to 2.32.0:

* Features
    + add support for nx/xx/gt/lt options for expireat/pexpire/pexpireat
  * Bug Fixes
    + fix:removing use of self.protocol to support redis-py < 5
    + fix:race condition due to closing socket in
      TCPFakeRequestHandler:finish

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=64
This commit is contained in:
2025-11-03 04:59:16 +00:00
committed by Git OBS Bridge
parent ed061e5858
commit 00ebbcd9db
4 changed files with 24 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d3ffa0216f047d5f71b9d9a67d803c05576b01d9a21b2750ac8ae207e1954840
size 295019

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e53f9f622399e951bd2504215321e0c246aeb74108b2ae955ac156f57353e6db
size 307159

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Nov 3 04:58:17 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.32.0:
* Features
+ add support for nx/xx/gt/lt options for expireat/pexpire/pexpireat
* Bug Fixes
+ fix:removing use of self.protocol to support redis-py < 5
+ fix:race condition due to closing socket in
TCPFakeRequestHandler:finish
-------------------------------------------------------------------
Mon Sep 15 08:12:28 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-fakeredis
Version: 2.31.2
Version: 2.32.0
Release: 0
Summary: Fake implementation of redis API for testing purposes
License: BSD-3-Clause AND MIT
@@ -41,6 +41,7 @@ BuildRequires: %{python_module pytest-asyncio >= 0.19.0}
BuildRequires: %{python_module pytest-mock >= 3.7.0}
BuildRequires: %{python_module redis >= 4}
BuildRequires: %{python_module sortedcontainers >= 2.4.0}
BuildRequires: %{python_module valkey >= 6}
BuildRequires: redis
# /SECTION
%python_subpackages
@@ -61,14 +62,18 @@ Fake implementation of redis API for testing purposes.
%check
export LANG="en_US.UTF8"
%{_sbindir}/redis-server --port 6390 --save &
# needs python-valkey, which is not in the distribution and is hard to package
rm -r test/test_valkey
%pytest -m "not slow"
# Lag is not -1
donttest="test_zrank_redis7_2 or test_zrevrank_redis7_2"
donttest+=" or test_xgroup_setid_redis7"
# Raises unknown command errors
donttest+=" or (test_save and (StrictRedis2 or StrictRedis3))"
donttest+=" or (test_raises_valkey_response_error and FakeStrictRedis)"
%pytest -m "not slow" -k "not ($donttest)"
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/fakeredis
%{python_sitelib}/fakeredis-%{version}*-info
%{python_sitelib}/fakeredis-%{version}.dist-info
%changelog