14
0

15 Commits

Author SHA256 Message Date
13ae4bce40 Accepting request 1317844 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1317844
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fakeredis?expand=0&rev=32
2025-11-17 11:08:40 +00:00
2a5571fa50 - Update to 2.32.1
* fix:support for py3.7 #423
  * fix:`xpending_range` to return all 4 required fields
    per Redis spec @zzstoatzz #427
  * fix[TcpFakeServer]: add exception prefix #432
  * Update tests to support redis-py 7.0.1
  * Update tests to support valkey 9.0.0
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=66
2025-11-14 16:12:20 +00:00
d8b933df5c Accepting request 1315309 from devel:languages:python
Resubmit

- 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
- Update to 2.31.2
  * Add native cjson support for lua redis scripts
  * version init argument typing
  * include lib_name and lib_version in FakeBaseConnectionMixin
  * when using FakeValkey, raise valkey.ResponseError instead of
    redis.ResponseError
  * fix issue with pytest-asyncio
  * Sending lib_name and lib_version only when relevant
  * many fixes in TcpFakeServer

OBS-URL: https://build.opensuse.org/request/show/1315309
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fakeredis?expand=0&rev=31
2025-11-05 15:17:43 +00:00
f32a8e7f0c - 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
2025-11-03 04:59:16 +00:00
9656a20338 Accepting request 1304767 from home:mcalabkova:branches:devel:languages:python:pytest
- Update to 2.31.2
  * Add native cjson support for lua redis scripts
  * version init argument typing
  * include lib_name and lib_version in FakeBaseConnectionMixin
  * when using FakeValkey, raise valkey.ResponseError instead of
    redis.ResponseError
  * fix issue with pytest-asyncio
  * Sending lib_name and lib_version only when relevant
  * many fixes in TcpFakeServer

OBS-URL: https://build.opensuse.org/request/show/1304767
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=63
2025-09-15 14:02:22 +00:00
77f556a653 Accepting request 1288470 from devel:languages:python
Forwarded request #1288237 from mcalabkova

- Update to 2.30.1
    * Move LICENSE file to fakeredis/ on build
    * Show warning for deprecated parameter only if parameter is included
      in instantiation
    * Replace deprecated event_loop fixture

OBS-URL: https://build.opensuse.org/request/show/1288470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fakeredis?expand=0&rev=30
2025-06-26 09:34:30 +00:00
317a8e9bfb - Update to 2.30.1
* Move LICENSE file to fakeredis/ on build
  * Show warning for deprecated parameter only if parameter is included
    in instantiation
  * Replace deprecated event_loop fixture

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=61
2025-06-25 08:57:22 +00:00
dc55c7d42e Accepting request 1287164 from devel:languages:python
Forwarded request #1286988 from mcalabkova

- Update to 2.30.0
    * Support for RESP3
    * Implement support for COPY

OBS-URL: https://build.opensuse.org/request/show/1287164
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fakeredis?expand=0&rev=29
2025-06-24 18:45:39 +00:00
547520e680 Accepting request 1286988 from home:mcalabkova:branches:devel:languages:python
- Update to 2.30.0
  * Support for RESP3
  * Implement support for COPY

OBS-URL: https://build.opensuse.org/request/show/1286988
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=59
2025-06-20 09:33:16 +00:00
6e8bddf0de Accepting request 1285183 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1285183
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fakeredis?expand=0&rev=28
2025-06-13 16:42:25 +00:00
da8e461338 Needed for SR# 1285097
- Update to 2.29.0:
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.29.0
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.28.1
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.28.0
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.27.0
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.26.2
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.26.1
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.26.0
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.25.1
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.25.0
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.24.1
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.24.0
  * https://github.com/cunla/fakeredis-py/releases/tag/v2.23.5
- Add redis build requirement and run redis server for test suite
- Drop fix-tests.patch
  * Included in upstream release

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=57
2025-06-12 14:35:41 +00:00
79f241e038 Accepting request 1206350 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1206350
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fakeredis?expand=0&rev=27
2024-10-09 20:03:09 +00:00
0aae007ffc - Add upstream fix-tests.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=55
2024-10-08 16:18:45 +00:00
20d0b3caa7 Accepting request 1190659 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1190659
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fakeredis?expand=0&rev=26
2024-08-01 20:03:51 +00:00
2ebeddf372 Accepting request 1190553 from home:mschreiner:branches:devel:languages:python
- Update to 2.23.4. 
- Changes from v2.23.4
  * fix:move random seed to HeavyKeeper to avoid issues.
  * Documented how to use fakeredis with FastAPI.
  * Using black for linting python code.
- Changes from v2.23.3
  * docs: Full code for FastAPI integration
  * Fix ttl for empty stream
- Changes from v2.23.2
  * Fix reading multiple streams with blocking
- Changes from v2.23.1
  * Fix `XREAD` behavior when `COUNT` is not provided but `BLOCKING`
    is provided
- Changes from v2.23.0
  * Support for TDigest commands:
    `TDIGEST.ADD`,`TDIGEST.BYRANK`,`TDIGEST.BYREVRANK`,`TDIGEST.CDF`,
    `TDIGEST.CREATE`, `TDIGEST.INFO`, `TDIGEST.MAX`, `TDIGEST.MERGE`,
    `TDIGEST.MIN`, `TDIGEST.QUANTILE`, `TDIGEST.RANK`,
    `TDIGEST.RESET`, `TDIGEST.REVRANK`, `TDIGEST.TRIMMED_MEAN`.
  * Import `Self` from typing vs. typing_extension
  * Update dependencies
  * Add redis-py 5.0.4 to tests
  * Update lupa version constraint
- Changes from v2.22.0
  * Support for setting LUA version from environment variable
  `FAKEREDIS_LUA_VERSION`
  * Support for loading LUA binary modules in fakeredis
  * Fix the type hint for the version parameter in the async client
  * Using LUA 5.1 like real redis
  * fix: FakeRedisMixin.from_url() return type is really Self.

OBS-URL: https://build.opensuse.org/request/show/1190553
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=53
2024-07-31 12:37:43 +00:00
4 changed files with 146 additions and 13 deletions

View File

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

View File

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

View File

@@ -1,3 +1,129 @@
-------------------------------------------------------------------
Fri Nov 14 13:57:32 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.32.1
* fix:support for py3.7 #423
* fix:`xpending_range` to return all 4 required fields
per Redis spec @zzstoatzz #427
* fix[TcpFakeServer]: add exception prefix #432
* Update tests to support redis-py 7.0.1
* Update tests to support valkey 9.0.0
- Update BuildRequires from pyproject.toml
-------------------------------------------------------------------
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>
- Update to 2.31.2
* Add native cjson support for lua redis scripts
* version init argument typing
* include lib_name and lib_version in FakeBaseConnectionMixin
* when using FakeValkey, raise valkey.ResponseError instead of
redis.ResponseError
* fix issue with pytest-asyncio
* Sending lib_name and lib_version only when relevant
* many fixes in TcpFakeServer
-------------------------------------------------------------------
Tue Jun 24 11:41:38 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 2.30.1
* Move LICENSE file to fakeredis/ on build
* Show warning for deprecated parameter only if parameter is included
in instantiation
* Replace deprecated event_loop fixture
-------------------------------------------------------------------
Thu Jun 19 12:42:15 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 2.30.0
* Support for RESP3
* Implement support for COPY
-------------------------------------------------------------------
Thu Jun 12 12:23:04 UTC 2025 - Antonio Teixeira <antonio.teixeira@suse.com>
- Update to 2.29.0:
* https://github.com/cunla/fakeredis-py/releases/tag/v2.29.0
* https://github.com/cunla/fakeredis-py/releases/tag/v2.28.1
* https://github.com/cunla/fakeredis-py/releases/tag/v2.28.0
* https://github.com/cunla/fakeredis-py/releases/tag/v2.27.0
* https://github.com/cunla/fakeredis-py/releases/tag/v2.26.2
* https://github.com/cunla/fakeredis-py/releases/tag/v2.26.1
* https://github.com/cunla/fakeredis-py/releases/tag/v2.26.0
* https://github.com/cunla/fakeredis-py/releases/tag/v2.25.1
* https://github.com/cunla/fakeredis-py/releases/tag/v2.25.0
* https://github.com/cunla/fakeredis-py/releases/tag/v2.24.1
* https://github.com/cunla/fakeredis-py/releases/tag/v2.24.0
* https://github.com/cunla/fakeredis-py/releases/tag/v2.23.5
- Add redis build requirement and run redis server for test suite
- Drop fix-tests.patch
* Included in upstream release
-------------------------------------------------------------------
Tue Oct 8 16:14:14 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Add upstream fix-tests.patch
-------------------------------------------------------------------
Wed Jul 31 02:16:56 UTC 2024 - Martin Schreiner <martin.schreiner@suse.com>
- Update to 2.23.4.
- Changes from v2.23.4
* fix:move random seed to HeavyKeeper to avoid issues.
* Documented how to use fakeredis with FastAPI.
* Using black for linting python code.
- Changes from v2.23.3
* docs: Full code for FastAPI integration
* Fix ttl for empty stream
- Changes from v2.23.2
* Fix reading multiple streams with blocking
- Changes from v2.23.1
* Fix `XREAD` behavior when `COUNT` is not provided but `BLOCKING`
is provided
- Changes from v2.23.0
* Support for TDigest commands:
`TDIGEST.ADD`,`TDIGEST.BYRANK`,`TDIGEST.BYREVRANK`,`TDIGEST.CDF`,
`TDIGEST.CREATE`, `TDIGEST.INFO`, `TDIGEST.MAX`, `TDIGEST.MERGE`,
`TDIGEST.MIN`, `TDIGEST.QUANTILE`, `TDIGEST.RANK`,
`TDIGEST.RESET`, `TDIGEST.REVRANK`, `TDIGEST.TRIMMED_MEAN`.
* Import `Self` from typing vs. typing_extension
* Update dependencies
* Add redis-py 5.0.4 to tests
* Update lupa version constraint
- Changes from v2.22.0
* Support for setting LUA version from environment variable
`FAKEREDIS_LUA_VERSION`
* Support for loading LUA binary modules in fakeredis
* Fix the type hint for the version parameter in the async client
* Using LUA 5.1 like real redis
* fix: FakeRedisMixin.from_url() return type is really Self.
- Changes from v2.21.3
* Revert behavior of defaulting to share the same server data
structure between connections
* Fix type hint for version
- Changes from v2.21.2
* Connection params are defaulted to be the same between async and
sync connections
* `xinfo_stream` raises exception when stream does not exist
- Changes from v2.21.1
* Support for float timeout values
* Fix django cache documentation
- Remove leftover dependency on python-packaging (solves rpmlint
warnings, too).
- Add new test and runtime dependency on 'typing_extensions' >= 4.7.
- No longer remove test file 'test/test_redis_asyncio.py'.
-------------------------------------------------------------------
Sun Feb 4 10:08:59 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-fakeredis
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,30 +18,31 @@
%{?sle15_python_module_pythons}
Name: python-fakeredis
Version: 2.21.0
Version: 2.32.1
Release: 0
Summary: Fake implementation of redis API for testing purposes
License: BSD-3-Clause AND MIT
URL: https://github.com/cunla/fakeredis-py
Source: https://github.com/cunla/fakeredis-py/archive/refs/tags/v%{version}.tar.gz#/fakeredis-%{version}-gh.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-packaging >= 23.1
Requires: python-redis >= 4
Requires: python-sortedcontainers >= 2.4.0
Suggests: python-lupa >= 1.14
Suggests: python-lupa >= 2.1
BuildArch: noarch
# SECTION test requirements
# technically requires hypothesis >= 6.56, but we don't have it yet
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module hypothesis >= 6.56}
BuildRequires: %{python_module pytest >= 7.1.2}
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
@@ -60,13 +61,19 @@ Fake implementation of redis API for testing purposes.
%check
export LANG="en_US.UTF8"
rm -v test/test_redis_asyncio.py
%pytest -m "not slow"
%{_sbindir}/redis-server --port 6390 --save &
# 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