From e1b764fbb4926b267a5ef63bf2d5bff2c40a3d3a9acf5337054edf45fca24e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 20:37:54 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-fakeredis revision 80dc9764f1c41122743214cd3c83b369 --- .gitattributes | 23 +++ fakeredis-2.19.0-gh.tar.gz | 3 + python-fakeredis.changes | 283 +++++++++++++++++++++++++++++++++++++ python-fakeredis.spec | 72 ++++++++++ 4 files changed, 381 insertions(+) create mode 100644 .gitattributes create mode 100644 fakeredis-2.19.0-gh.tar.gz create mode 100644 python-fakeredis.changes create mode 100644 python-fakeredis.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/fakeredis-2.19.0-gh.tar.gz b/fakeredis-2.19.0-gh.tar.gz new file mode 100644 index 0000000..98f7bb6 --- /dev/null +++ b/fakeredis-2.19.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:429d27678bc70642c8d0428bf9a7651922e0edfda1b7e57bb6cd7a00135d3c96 +size 203837 diff --git a/python-fakeredis.changes b/python-fakeredis.changes new file mode 100644 index 0000000..50ae49f --- /dev/null +++ b/python-fakeredis.changes @@ -0,0 +1,283 @@ +------------------------------------------------------------------- +Thu Oct 19 10:04:58 UTC 2023 - Matej Cepl + +- Remove unnecessary BR on python-lupa + +------------------------------------------------------------------- +Tue Sep 26 13:23:51 UTC 2023 - Dirk Müller + +- update to 2.19.0: + * Implement Bloom filters commands #239 + * Fix error on blocking XREADGROUP #237 + +------------------------------------------------------------------- +Mon Sep 11 20:38:28 UTC 2023 - Dirk Müller + +- update to 2.18.1: + * Fix stream type issue #233 + +------------------------------------------------------------------- +Mon Sep 4 15:53:28 UTC 2023 - Dirk Müller + +- update to 2.18.0: + * Implement `PUBSUB NUMPAT` #195, `SSUBSCRIBE` #199, `SPUBLISH` + #198, `SUNSUBSCRIBE` #200, `PUBSUB SHARDCHANNELS` #196, `PUBSUB + SHARDNUMSUB` #197 + * Fix All aio.FakeRedis instances share the same server #218 + +------------------------------------------------------------------- +Tue Jul 18 14:41:04 UTC 2023 - Dirk Müller + +- update to 2.17.0: + * Implement `LPOS` #207, `LMPOP` #184, and `BLMPOP` #183 + * Implement `ZMPOP` #191, `BZMPOP` #186 + * Fix incorrect error msg for group not found #210 + * fix: use same server_key within pipeline when issued watch + issue with ZRANGE and ZRANGESTORE with BYLEX #214 + * Implemented support for `JSON.MSET` #174, `JSON.MERGE` #181 + * Add support for version for async FakeRedis #205 + * Updated how to test django_rq #204 + +------------------------------------------------------------------- +Sat Jul 1 20:33:29 UTC 2023 - Dirk Müller + +- update to 2.15.0: + * Implemented support for various stream groups commands: + * `XGROUP CREATE` #161, `XGROUP DESTROY` #164, `XGROUP SETID` + #165, `XGROUP DELCONSUMER` #162, + * `XGROUP CREATECONSUMER` #163, `XINFO GROUPS` #168, `XINFO + CONSUMERS` #168, `XINFO STREAM` #169, `XREADGROUP` #171, + * `XACK` #157, `XPENDING` #170, `XCLAIM` #159, `XAUTOCLAIM` + * Implemented sorted set commands: + * `ZRANDMEMBER` #192, `ZDIFF` #187, `ZINTER` #189, `ZUNION` + #194, `ZDIFFSTORE` #188, + * `ZINTERCARD` #190, `ZRANGESTORE` #193 + * Implemented list commands: + * `BLMOVE` #182, + * Improved documentation. + * Fix documentation link + * Fix requirement for packaging.Version #177 + * Implement `HRANDFIELD` #156 + * Implement `JSON.MSET` + * Improve streams code + +------------------------------------------------------------------- +Mon May 29 13:33:12 UTC 2023 - Dirk Müller + +- update to 2.13.0: + * Fixed xadd timestamp (fixes #151) (#152) + * Implement XDEL #153 + * Improve test code + * Fix reported security issue + * Add support for `Connection.read_response` arguments used in + redis-py 4.5.5 and 5.0.0 + * Adding state for scan commands (#99) + * Improved documentation (added async sample, etc.) + +------------------------------------------------------------------- +Mon May 8 18:09:08 UTC 2023 - Dirk Müller + +- update to 2.12.0: + * Implement `XREAD` #147 + * Unique FakeServer when no connection params are provided + * Minor fixes supporting multiple connections + * Update documentation + * connection parameters awareness: + * Creating multiple clients with the same connection parameters + will result in the same server data structure. + * Fix creating fakeredis.aioredis using url with user/password + +------------------------------------------------------------------- +Mon May 8 07:09:16 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Wed Apr 19 07:46:41 UTC 2023 - Steve Kowalik + +- Update to 2.10.3: + * Support for redis-py 5.0.0b1 + * Include tests in sdist (#133) + * Fix import used in GenericCommandsMixin.randomkey (#135) + * Fix async_timeout usage on py3.11 (#132) + * Enable testing django-cache using FakeConnection. + * All geo commands implemented + * Fix bug for xrange + * Fix bug for xrevrange + * Implement XTRIM + * Add support for MAXLEN, MAXID, LIMIT arguments for XADD command + * Add support for ZRANGE arguments for ZRANGE command #127 + * Relax python version requirement #128 + * Support for redis-py 4.5.0 #125 + +------------------------------------------------------------------- +Fri Feb 10 10:40:09 UTC 2023 - Dirk Müller + +- update to 2.7.1: + * Fix import error for NoneType (#120) + * Implement + - JSON.ARRINDEX + - JSON.OBJLEN + - JSON.OBJKEYS + - JSON.ARRPOP + - JSON.ARRTRIM + - JSON.NUMINCRBY + - JSON.NUMMULTBY + - XADD + - XLEN + - XRANGE + - XREVRANGE + * Implement `JSON.TYPE`, `JSON.ARRLEN` and `JSON.ARRAPPEND` + * Fix encoding of None (#118) + +------------------------------------------------------------------- +Mon Jan 23 09:19:15 UTC 2023 - Dirk Müller + +- update to v2.5.0: + * Implement support for BITPOS (bitmap command) (#112) + * Fix json mget when dict is returned (#114) + * fix: properly export (#116) + * Extract param handling (#113) + +------------------------------------------------------------------- +Fri Jan 6 11:11:54 UTC 2023 - Dirk Müller + +- update to v2.4.0: + * Implement LCS (#111), BITOP (#110) + * Fix bug checking type in scan_iter (#109) + * Implement GETEX (#102) + * Implement support for JSON.STRAPPEND (json command) (#98) + * Implement JSON.STRLEN, JSON.TOGGLE and fix bugs with JSON.DEL (#96) + * Implement PUBSUB CHANNELS, PUBSUB NUMSUB + * Implement JSON.CLEAR (#87) + * Support for redis-py v4.4.0 + * Implement json.mget (#85) + * Initial json module support - JSON.GET, JSON.SET and JSON.DEL (#80) + * fix: add nowait for asyncio disconnect (#76) + * Refactor how commands are registered (#79) + * Refactor tests from redispy4_plus (#77) + * Remove support for aioredis separate from redis-py (redis-py versions + 4.1.2 and below). (#65) + * Add support for redis-py v4.4rc4 (#73) + * Add mypy support (#74) + * Implement support for zmscore by @the-wondersmith in #67 + * What's Changed + * implement GETDEL and SINTERCARD support by @cunla in #57 + * Test get float-type behavior by @cunla in #59 + * Implement BZPOPMIN/BZPOPMAX support by @cunla in #60 +- drop fakeredis-pr54-fix-ensure_str.patch (upstream) + +------------------------------------------------------------------- +Sun Oct 9 19:22:51 UTC 2022 - Ben Greiner + +- Update to 1.9.3 + * Removed python-six dependency + * zadd support for GT/LT by @cunla in #49 + * Remove six dependency by @cunla in #51 + * Add host to conn_pool_args by @cunla in #51 +- Drop python-fakeredis-no-six.patch which was incomplete + * all commits, including the missing ones in release now +- Add fakeredis-pr54-fix-ensure_str.patch + +------------------------------------------------------------------- +Tue Sep 27 10:49:56 UTC 2022 - pgajdos@suse.com + +- use upstream + https://github.com/cunla/fakeredis-py/pull/51/ +- modified patches + % python-fakeredis-no-six.patch (refreshed) + +------------------------------------------------------------------- +Fri Sep 23 13:27:54 UTC 2022 - pgajdos@suse.com + +- version update to 1.9.1 + * Zrange byscore by @cunla in #44 + * Expire options by @cunla in #46 + * Enable redis7 support by @cunla in #42 +- added patches + fix https://github.com/cunla/fakeredis-py/issues/50 + + python-fakeredis-no-six.patch + +------------------------------------------------------------------- +Sat Jun 11 11:17:33 UTC 2022 - Ben Greiner + +- Update to 1.8.1 + * fix: allow redis 4.3.* by @terencehonles in #30 +- Release 1.8 + * Fix handling url with username and password by @cunla in #27 + * Refactor tests by @cunla in #28 +- Release 1.7.6 + * add IMOVE operation by @BGroever in #11 + * Add SMISMEMBER command by @OlegZv in #20 + * fix: work with redis.asyncio by @zhongkechen in #10 + * Migrate to poetry by @cunla in #12 + * Create annotation for redis4+ tests by @cunla in #14 + * Make aioredis and lupa optional dependencies by @cunla in #16 + * Remove aioredis requirement if redis-py 4.2+ by @ikornaselur in + #19 + +------------------------------------------------------------------- +Sun Jan 23 20:36:18 UTC 2022 - Dirk Müller + +- update to 1.7.0 + * Change a number of corner-case behaviours to match Redis 6.2.6. + * Fix DeprecationWarning for sampling from a set + * Improved support for constructor arguments + * Support redis-py 4 + * Add support for GET option to SET + * PERSIST and EXPIRE should invalidate watches + +------------------------------------------------------------------- +Sun Oct 17 13:22:19 UTC 2021 - Ben Greiner + +- Update to 1.6.1 + * #305 Some packaging modernisation + * #306 Fix FakeRedisMixin.from_url for unix sockets + * #308 Remove use of async_generator from tests +- Release 1.6.0 + * #304 Support aioredis 2 + * #302 Switch CI from Travis CI to Github Actions + +------------------------------------------------------------------- +Tue Jun 29 10:49:15 UTC 2021 - Ondřej Súkup + +- update to 1.5.2 + * support python 3.9 + * support aioredis + +------------------------------------------------------------------- +Fri Mar 20 12:31:00 UTC 2020 - Tomáš Chvátal + +- Disable py2 as upstream actually disabled python2 support competely + * The syntax simply is not compatible + +------------------------------------------------------------------- +Thu Mar 19 22:43:55 UTC 2020 - Hans-Peter Jansen + +- Update to 1.3.0: + * No upstream changelog +- python2 tests are dysfunctional, test with python3 only + +------------------------------------------------------------------- +Fri Sep 13 07:55:04 UTC 2019 - Tomáš Chvátal + +- Update to 1.0.5: + * No upstream changelog + +------------------------------------------------------------------- +Wed Aug 21 14:33:39 UTC 2019 - Tomáš Chvátal + +- Update to 1.0.4: + * various bugfixes all around + +------------------------------------------------------------------- +Sun Mar 31 08:58:42 UTC 2019 - John Vandenberg + +- Update to v1.0.3 + * Support for redis 3.2 + (no effective changes in v1.0.2) + +------------------------------------------------------------------- +Sat Feb 16 16:32:39 UTC 2019 - John Vandenberg + +- Initial spec for v1.0.1 diff --git a/python-fakeredis.spec b/python-fakeredis.spec new file mode 100644 index 0000000..d57ea52 --- /dev/null +++ b/python-fakeredis.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-fakeredis +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-fakeredis +Version: 2.19.0 +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 pip} +BuildRequires: %{python_module poetry-core} +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 +BuildArch: noarch +# SECTION test requirements +# technically requires hypothesis >= 6.56, but we don't have it yet +BuildRequires: %{python_module hypothesis} +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} +# /SECTION +%python_subpackages + +%description +Fake implementation of redis API for testing purposes. + +%prep +%autosetup -p1 -n fakeredis-py-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG="en_US.UTF8" +rm -v test/test_redis_asyncio.py +%pytest -m "not slow" + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/fakeredis +%{python_sitelib}/fakeredis-%{version}*-info + +%changelog