Compare commits

105 Commits

Author SHA256 Message Date
ddd5a43f6b Accepting request 1289331 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1289331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=46
2025-07-02 10:07:16 +00:00
7437248b67 Accepting request 1285097 from devel:languages:python
- Remove not needed pytest.ini source file.

- Update to 6.2.0:
  * https://github.com/redis/redis-py/releases/tag/v6.2.0
  * https://github.com/redis/redis-py/releases/tag/v6.1.0
  * https://github.com/redis/redis-py/releases/tag/v6.0.0
  * https://github.com/redis/redis-py/releases/tag/v5.3.0
- Drop pytest-asyncio-045.patch
  * Fixed upstream
- Add remove-mock.patch
  * Use built-in unittest.mock
- Don't remove test_graph.py
  * The test was dropped upstream
- Add new python-redis-entraid and pytest-mock dependencies for tests
- Add new hatchling build requirement
  * Remove setuptools which is no longer needed
- Move test suite to separate flavor to avoid dependency cycle with
  python-redis-entraid
  * Add _multibuild
  * Move some dependencies that were only needed for tests to the new
    flavor
- Update skipped test list due to gh#python/cpython#70654
  * Skip test_re_auth_pub_sub_in_resp3
  * Skip test_do_not_re_auth_pub_sub_in_resp2

OBS-URL: https://build.opensuse.org/request/show/1285097
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=45
2025-06-13 16:42:23 +00:00
956291d98c - Remove not needed pytest.ini source file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=102
2025-06-12 10:31:30 +00:00
1e31050b26 Tests depend on https://build.opensuse.org/request/show/1284860
- Update to 6.2.0:
  * https://github.com/redis/redis-py/releases/tag/v6.2.0
  * https://github.com/redis/redis-py/releases/tag/v6.1.0
  * https://github.com/redis/redis-py/releases/tag/v6.0.0
  * https://github.com/redis/redis-py/releases/tag/v5.3.0
- Drop pytest-asyncio-045.patch
  * Fixed upstream
- Add remove-mock.patch
  * Use built-in unittest.mock
- Don't remove test_graph.py
  * The test was dropped upstream
- Add new python-redis-entraid and pytest-mock dependencies for tests
- Add new hatchling build requirement
  * Remove setuptools and wheel which is longer needed
- Move test suite to separate flavor to avoid dependency cycle with
  python-redis-entraid
  * Add _multibuild
  * Move some dependencies that were only needed for tests to the new
    flavor
- Update skipped test list due to gh#python/cpython#70654
  * Skip test_re_auth_pub_sub_in_resp3
  * Skip test_do_not_re_auth_pub_sub_in_resp2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=101
2025-06-12 08:01:07 +00:00
227526a1e2 Accepting request 1245617 from devel:languages:python
- Add pytest-asyncio-045.patch to make tests compatible with latest
  python-pytest-asyncio
- Update to 5.2.1:
  * Fixed unsecured tempfile.mktemp() command usage (#3446)
  * Fixed bug with SLOWLOG GET response parsing on Redis Software (#3441)
  * Fixed issue with invoking _close() on closed event loop (#3438)
  * Migrate test infrastructure to new custom docker images (#3415)
  * Fixed flacky test with HEXPIREAT command (#3437)

OBS-URL: https://build.opensuse.org/request/show/1245617
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=44
2025-02-14 18:19:23 +00:00
6a2af8ebb7 - Add pytest-asyncio-045.patch to make tests compatible with latest
python-pytest-asyncio

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=99
2025-02-13 11:52:23 +00:00
2c3fb9a318 - Update to 5.2.1:
* Fixed unsecured tempfile.mktemp() command usage (#3446)
  * Fixed bug with SLOWLOG GET response parsing on Redis Software (#3441)
  * Fixed issue with invoking _close() on closed event loop (#3438)
  * Migrate test infrastructure to new custom docker images (#3415)
  * Fixed flacky test with HEXPIREAT command (#3437)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=98
2025-02-13 11:00:13 +00:00
509395d6b0 Accepting request 1227113 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1227113
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=43
2024-11-28 23:08:46 +00:00
307a5bd9d1 - Pin tests to pytest-asyncio < 0.24
- Only require async-timeout for older pythons

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=96
2024-11-28 11:37:49 +00:00
1b7e8b8a28 Accepting request 1225386 from devel:languages:python
- update to 5.2.0:
  * Extend AggregateRequest with scorer argument

OBS-URL: https://build.opensuse.org/request/show/1225386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=42
2024-11-21 14:13:30 +00:00
ac0cdf7a12 - update to 5.2.0:
* Extend AggregateRequest with scorer argument

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=94
2024-11-20 17:54:33 +00:00
d7a0465d3a Accepting request 1206271 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1206271
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=41
2024-10-09 20:03:06 +00:00
140ec5d80b - Update to 5.1.1
https://github.com/redis/redis-py/releases/tag/v5.1.1
  https://github.com/redis/redis-py/releases/tag/v5.1.0
  https://github.com/redis/redis-py/releases/tag/v5.0.9
- Skip test_asyncio/test_commands.py, fails in OBS but passes locally
- Use --enable-debug-command and --enable-module-command for valkey 8.x.x

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=92
2024-10-08 09:01:51 +00:00
cbe88a520e Accepting request 1190532 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1190532
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=40
2024-08-01 20:03:19 +00:00
270fc7d402 Accepting request 1190500 from home:darix:apps
- replace with pypi tarball again

- Fix filelist

- Update to 5.0.8
  Required update to support Redis 7.4.0
  https://github.com/redis/redis-py/releases/tag/v5.0.8
  https://github.com/redis/redis-py/releases/tag/v5.0.7
  https://github.com/redis/redis-py/releases/tag/v5.0.6
  https://github.com/redis/redis-py/releases/tag/v5.0.5
  https://github.com/redis/redis-py/releases/tag/v5.0.4
  https://github.com/redis/redis-py/releases/tag/v5.0.3
  https://github.com/redis/redis-py/releases/tag/v5.0.2
- drop Close-various-objects-created-during-asyncio-tests.patch
  included in update
- New BR numpy for the testsuite

OBS-URL: https://build.opensuse.org/request/show/1190500
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=90
2024-07-30 20:08:36 +00:00
fac67c4e78 Accepting request 1162314 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1162314
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=39
2024-03-27 19:41:47 +00:00
2d0859fe95 Accepting request 1162291 from home:glaubitz:branches:devel:languages:python
- Switch build system from setuptools to pyproject.toml
  + Add python-pip and python-wheel to BuildRequires
  + Replace %python_build with %pyproject_wheel
  + Replace %python_install with %pyproject_install

OBS-URL: https://build.opensuse.org/request/show/1162291
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=88
2024-03-26 15:50:57 +00:00
de9943fd2e Accepting request 1139023 from devel:languages:python
- add https://github.com/redis/redis-py/pull/3005 as
  Close-various-objects-created-during-asyncio-tests.patch
  to fix tests for python 3.12

      potential data leak in specific cases. (CVE-2023-28858, bsc#1209811)
  * Better error handling

OBS-URL: https://build.opensuse.org/request/show/1139023
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=38
2024-01-17 21:14:40 +00:00
0f0cfe95a3 - add https://github.com/redis/redis-py/pull/3005 as
Close-various-objects-created-during-asyncio-tests.patch
  to fix tests for python 3.12
      potential data leak in specific cases. (CVE-2023-28858, bsc#1209811)
  * Better error handling

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=86
2024-01-15 20:20:19 +00:00
bdeeb6a122 Accepting request 1136240 from devel:languages:python
- Add patch to increase timeouts in s390x where tests take longer
  to run:
  * increase-test-timeout.patch

OBS-URL: https://build.opensuse.org/request/show/1136240
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=37
2024-01-05 21:58:46 +00:00
9a6fdc230d workaround obsolete notation
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=84
2024-01-02 15:58:48 +00:00
b8b623114d Accepting request 1136213 from home:alarrosa:branches:devel:languages:python
- Add patch to increase timeouts in s390x where tests take longer
  to run:
  * increase-test-timeout.patch

OBS-URL: https://build.opensuse.org/request/show/1136213
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=83
2024-01-02 15:52:55 +00:00
c59339c353 Accepting request 1124036 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1124036
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=36
2023-11-08 21:16:54 +00:00
9cebbddd64 drop the now-redundant dummyprefix
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=81
2023-10-31 14:10:08 +00:00
b5d57eaade - fix test running
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=80
2023-10-30 16:36:31 +00:00
62082908f4 Accepting request 1121196 from home:dgarcia:branches:devel:languages:python
- Disable broken tests for ppc64le, bsc#1216606

OBS-URL: https://build.opensuse.org/request/show/1121196
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=79
2023-10-30 16:28:01 +00:00
49aaaad2c8 Accepting request 1119872 from devel:languages:python
- Add pytest.ini source needed to run tests
- Remove/disable broken tests because of suse environment
- drop tox.ini. seems it does no longer exist in 5.0.1
- add support to easily disable the testsuite at build time
- update to 5.0.1
  - 🚀 New Features
    - Provide aclose() / close() for classes requiring lifetime
      management (#2898)
    - Add support for ModuleCommands in cluster (#2951)
    - Add support for multiple values in RPUSHX (#2949)
    - Add Redis.from_pool() class method, for explicitly owning and
      closing a ConnectionPool (#2913)
  - 🐛 Bug Fixes
    - Fixing monitor parsing for messages containing specific
      substrings (#2950)
    - Cluster determine slot command name need to be upper (#2919)
    - Support timeout = 0 in search query (#2934)
    - Fix async sentinel: add push_request keyword argument to
      read_response (#2922)
    - Fix protocol checking for search commands (#2923)
    - Fix: SentinelManagedConnection.read_response() got an
      unexpected keyword argument 'push_request' (#2894)
    - Fix: automatically close connection pool for async Sentinel
      (#2900)
    - Save a reference to created async tasks, to avoid tasks
      potentially disappearing (#2816)
    - Avoid reference cycling by the garbage collector during
      response reading (#2932)
  - 🧰 Maintenance
    - Type hint improvements (#2952)
    - Replace clear_connect_callbacks with
      _deregister_connect_callback (#2955)
    - Async fixes, remove del and other things (#2870)
    - Add pagination, sorting and grouping examples to search json
      example (#2890)
    - Remove process-id checks from asyncio. Asyncio and fork()
      does not mix. (#2911)
    - Fix resource usage and cleanup Mocks in the unit tests
      (#2936)
    - Remove mentions of tox (#2929)
    - Add 7.2 to supported Redis versions (#2896)
    - Fix resource warnings in unit tests (#2899)
    - Fix typo in redis-stream-example.ipynb (#2918)
    - Deprecate RedisGraph (#2927)
    - Fix redis 7.2.0 tests (#2902)
    - Fix test_scorer (search) (#2920)
- changes from 5.0.0
  - What's new?
    - Triggers and Functions support Triggers and Functions allow
      you to execute server-side functions triggered when key
      values are modified or created in Redis, a stream entry
      arrival, or explicitly calling them. Simply put, you can
      replace Lua scripts with easy-to-develop JavaScript or
      TypeScript code. Move your business logic closer to the data
      to ensure a lower latency, and forget about updating
      dependent key values manually in your code. Try it for
      yourself with Quick start
    - Full Redis 7.2 and RESP3 support
    - Python 3.7 End-of-Life
      - Python 3.7 has reached its end-of-life (EOL) as of June
        2023. This means that starting from this date, Python 3.7
        will no longer receive any updates, including security
        patches, bug fixes, or improvements. If you continue to use
        Python 3.7 post-EOL, you may expose your projects and
        systems to potential security vulnerabilities. We ended its
        support in this version and strongly recommend migrating to
        Python 3.10.
  - 🐛 Bug Fixes
    - Fix timeout retrying on pipeline execution (#2812)
    - Fix socket garbage collection (#2859)
  - 🧰 Maintenance
    - Updating client license to clear, MIT (#2884)
    - Add py.typed in accordance with PEP-561 (#2738)
    - Dependabot label change (#2880)
    - Fix type hints in SearchCommands (#2817)
    - Add sync modules (except search) tests to cluster CI (#2850)
    - Fix a duplicate word in CONTRIBUTING.md (#2848)
    - Fixing doc builds (#2869)
    - Change cluster docker to edge and enable debug command
      (#2853)

OBS-URL: https://build.opensuse.org/request/show/1119872
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=35
2023-10-24 18:07:42 +00:00
70420d4dd9 - Disable more tests that are broken on ALP build OBS
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=77
2023-10-24 07:17:39 +00:00
d21e817fae Accepting request 1119606 from home:dgarcia:branches:devel:languages:python
- Add pytest.ini source needed to run tests
- Remove/disable broken tests because of suse environment

- drop tox.ini. seems it does no longer exist in 5.0.1
- add support to easily disable the testsuite at build time

- update to 5.0.1
  - 🚀 New Features
    - Provide aclose() / close() for classes requiring lifetime
      management (#2898)
    - Add support for ModuleCommands in cluster (#2951)
    - Add support for multiple values in RPUSHX (#2949)
    - Add Redis.from_pool() class method, for explicitly owning and
      closing a ConnectionPool (#2913)
  - 🐛 Bug Fixes
    - Fixing monitor parsing for messages containing specific
      substrings (#2950)
    - Cluster determine slot command name need to be upper (#2919)
    - Support timeout = 0 in search query (#2934)
    - Fix async sentinel: add push_request keyword argument to
      read_response (#2922)
    - Fix protocol checking for search commands (#2923)
    - Fix: SentinelManagedConnection.read_response() got an
      unexpected keyword argument 'push_request' (#2894)
    - Fix: automatically close connection pool for async Sentinel
      (#2900)
    - Save a reference to created async tasks, to avoid tasks
      potentially disappearing (#2816)
    - Avoid reference cycling by the garbage collector during
      response reading (#2932)

OBS-URL: https://build.opensuse.org/request/show/1119606
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=76
2023-10-24 06:29:34 +00:00
e02d989c64 Accepting request 1102123 from home:mcalabkova:branches:devel:languages:python
revert previous WIP changes

OBS-URL: https://build.opensuse.org/request/show/1102123
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=75
2023-08-03 08:01:06 +00:00
c0dbe5ea8c WIP DO NOT SUBMIT YET (gh#redis/redis-py#2679)
- Update to 5.0.0rc2:
    - RESP3 response-callbacks cleanup (#2841)
    - Change SISMEMBER return type to int by (#2813)
  - rocket New Features
    - RESP3 modules support (#2803)
  - bug Bug Fixes
    - Fixing asyncio import (#2759)
    - Fix sharded pubsub threads issue (#2799)
  - toolbox Maintenance
    - RESP3 tests (#2780) (#2806)
    - RESP3 response callbacks (#2798)
    - Adding RESP3 tests support (#2793)
- Update to 4.6.0:
    - Support JSON.MERGE command (#2761)
    - Support JSON.MSET command (#2766)
  - rocket New Features
    - Extract abstract async connection class (#2734)
    - Add support for WAITAOF (#2760)
    - Introduce OutOfMemoryError exception for Redis write
      command rejections due to OOM errors (#2778)
    - Add WITHSCORE argument to ZRANK (#2758)
  - bug Bug Fixes
    - Fix dead weakref in sentinel connection causing
      ReferenceError (#2767) (#2771)
    - Fix Key Error in parse_xinfo_stream (#2788)
    - Remove unnecessary __del__ handlers (#2755)
    - Added support for missing argument to
      SentinelManagedConnection.read_response() (#2756)
  - toolbox Maintenance
    - Fix type hint for retry_on_error in async cluster (#2804)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=74
2023-07-18 15:32:54 +00:00
fe8b50ab1b Accepting request 1088081 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1088081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=34
2023-05-30 20:02:00 +00:00
96483c6333 Accepting request 1088046 from home:AndreasStieger:branches:devel:languages:python
python-redis 4.5.5

OBS-URL: https://build.opensuse.org/request/show/1088046
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=72
2023-05-20 21:52:35 +00:00
43960ccb1d Accepting request 1085447 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1085447
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=33
2023-05-09 11:07:43 +00:00
389e533630 Accepting request 1085420 from home:ojkastl_buildservice:Branch_devel_languages_python
add sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1085420
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=70
2023-05-08 08:19:35 +00:00
a5d3339759 Accepting request 1080032 from devel:languages:python
- Update to 4.5.4:
  * Security
    + Cancelling an async future does not, properly trigger, leading to a
      potential data leak in specific cases. (CVE-2023-28858, bsc#1209811) 
    + Cancelling an async future does not, properly trigger, leading to a
      potential data leak in specific cases. (CVE-2023-28859, bsc#1209812)
  * New Features
    + Introduce AbstractConnection so that UnixDomainSocketConnection can
      call super().init (#2588)
    + Added queue_class to REDIS_ALLOWED_KEYS (#2577)
    + Made search document subscriptable (#2615)
    + Sped up the protocol parsing (#2596)
    + Use hiredis::pack_command to serialized the commands. (#2570)
    + Add support for unlink in cluster pipeline (#2562)
  * Bug Fixes
    + Fixing cancelled async futures (#2666)
    + Fix: do not use asyncio's timeout lib before 3.11.2 (#2659)
    + Fix UDS in v4.5.2: UnixDomainSocketConnection missing constructor
      argument (#2630)
    + CWE-404 AsyncIO Race Condition Fix (#2624, #2579)
    + Fix behaviour of async PythonParser to match RedisParser as for
      issue #2349 (#2582)
    + Replace async_timeout by asyncio.timeout (#2602)
    + Update json().arrindex() default values (#2611)
    + Fix #2581 UnixDomainSocketConnection object has no attribute
      _command_packer (#2583)
    + Fix issue with pack_commands returning an empty byte sequence (#2416)
    + Async HiredisParser should finish parsing after a
      Connection.disconnect() (#2557)
    + Check for none, prior to raising exception (#2569)

OBS-URL: https://build.opensuse.org/request/show/1080032
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=32
2023-04-20 13:13:27 +00:00
3c4e486ff3 Fix accidental donttest overwrite
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=68
2023-04-18 03:37:41 +00:00
5884f3b76f - Update to 4.5.4:
* Security
    + Cancelling an async future does not, properly trigger, leading to a
      potential data leak in specific cases. (CVE-2023-28858, bsc#1209811) 
    + Cancelling an async future does not, properly trigger, leading to a
      potential data leak in specific cases. (CVE-2023-28859, bsc#1209812)
  * New Features
    + Introduce AbstractConnection so that UnixDomainSocketConnection can
      call super().init (#2588)
    + Added queue_class to REDIS_ALLOWED_KEYS (#2577)
    + Made search document subscriptable (#2615)
    + Sped up the protocol parsing (#2596)
    + Use hiredis::pack_command to serialized the commands. (#2570)
    + Add support for unlink in cluster pipeline (#2562)
  * Bug Fixes
    + Fixing cancelled async futures (#2666)
    + Fix: do not use asyncio's timeout lib before 3.11.2 (#2659)
    + Fix UDS in v4.5.2: UnixDomainSocketConnection missing constructor
      argument (#2630)
    + CWE-404 AsyncIO Race Condition Fix (#2624, #2579)
    + Fix behaviour of async PythonParser to match RedisParser as for
      issue #2349 (#2582)
    + Replace async_timeout by asyncio.timeout (#2602)
    + Update json().arrindex() default values (#2611)
    + Fix #2581 UnixDomainSocketConnection object has no attribute
      _command_packer (#2583)
    + Fix issue with pack_commands returning an empty byte sequence (#2416)
    + Async HiredisParser should finish parsing after a
      Connection.disconnect() (#2557)
    + Check for none, prior to raising exception (#2569)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=67
2023-04-18 03:13:49 +00:00
bf1ee5d359 Accepting request 1076597 from devel:languages:python
revert

OBS-URL: https://build.opensuse.org/request/show/1076597
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=66
2023-04-01 08:13:48 +00:00
6bf3e78d6d - Upgrade to 4.4.4 (also bsc#1209811, CVE-2023-28858 &
bsc#1209812, CVE-2023-28859) to fix possible async command
  information disclosure.
- Upgrade to 4.4.3:
  Update urgency: HIGH: There is a critical bug that may affect a
  subset of users. Upgrade!
  - CWE-404 AsyncIO Race Condition Fix
- Upgrade to 4.4.2:
  - Add support for BF.CARD
  - Add support for custom connection pool class in NodesManager
    Allow replica to master promotion in nodes_cache
    Security Fix: Updating graph parser for potential injection cases
- Upgrade to 4.4.0:
  - Async clusters: Support creating locks inside async functions
  - Async: added 'blocking' argument to call lock method
  - Added a replacement for the default cluster node in the event
    of failure.
  - Fixed geosearch: Wrong number of arguments for geosearch
    command
  - Updating dev dependencies
  - Removing deprecated LGTM
  - Added an explicit index name in RediSearch example
  - Adding connection step to bloom filter examples
- Skip test_acl_list test (gh#redis/redis-py#2679)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=65
2023-04-01 02:45:41 +00:00
4274d7b8f5 - Disable broken test test_xautoclaim gh#redis/redis-py#2554
- udpate to 4.3.5:
  * Add support for TIMESERIES 1.8 (#2296)
  * Graph - add counters for removed labels and properties (#2292)
  * Add support for TDIGEST.QUANTILE extensions (#2317)
  * Add TDIGEST.TRIMMED_MEAN (#2300)
  * Add support for async GRAPH module (#2273)
  * Support TDIGEST.MERGESTORE and make compression optional on TDIGEST.CREATE
    (#2319)
  * Adding reserve as an alias for create, so that we have BF.RESERVE and
    CF.RESERVE accuratenly supported (#2331)
  * Fix async connection.is_connected to return a boolean value (#2278)
  * Fix: workaround asyncio bug on connection reset by peer (#2259)
  * Fix crash: key expire while search (#2270)
  * Async cluster: fix concurrent pipeline (#2280)
  * Fix async SEARCH pipeline (#2316)
  * Fix KeyError in async cluster - initialize before execute multi key
    commands (#2439)
  * Supply chain risk reduction: remove dependency on library named deprecated
    (#2386)
  * Search test - Ignore order of the items in the response (#2322)
  * Fix GRAPH.LIST & TDIGEST.QUANTILE tests (#2335)
  * Fix TimeSeries range aggregation (twa) tests (#2358)
  * Mark TOPK.COUNT as deprecated (#2363)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=64
2023-01-18 13:10:50 +00:00
8ed8f54ea4 - update to 4.3.4:
* Fix backward compatibility from 4.3.2 in Lock.acquire()
  * Fix XAUTOCLAIM to return the full response, instead of only keys 2+
  * Added dynamic_startup_nodes configuration to RedisCluster.
  * Fix retries in async mode
  * Async cluster: fix simultaneous initialize
  * Uppercased commands in CommandsParser.get_keys
  * Late eval of the skip condition in async tests
  * Reuse the old nodes' connections when a cluster topology refresh is being done
  * Docs: add pipeline examples
  * Correct retention_msecs value
  * Cluster: use pipeline to execute split commands
  * Docs: Add a note about client_setname and client_name difference

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=63
2022-10-01 17:23:23 +00:00
d313db8f3b Accepting request 982470 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/982470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=31
2022-06-17 19:20:26 +00:00
c16bda0221 Accepting request 982432 from home:bnavigator:branches:devel:languages:python
- Delete unused redismod.conf, remove duplicate Source entry for
  tox.ini

OBS-URL: https://build.opensuse.org/request/show/982432
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=61
2022-06-13 13:49:13 +00:00
fcf76796ee - Add redismod.conf and tox.ini as Sources to SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=60
2022-06-13 07:29:34 +00:00
d3a53b0bd3 Accepting request 982133 from home:bnavigator:branches:devel:languages:python
- Update to version 4.3.3
  * Fix Lock crash, and versioning 4.3.3 (#2210)
  * Async cluster: improve docs (#2208)
- Release 4.3.2
  * SHUTDOWN - add support for the new NOW, FORCE and ABORT modifiers (#2150)
  * Adding pipeline support for async cluster (#2199)
  * Support CF.MEXISTS + Clean bf/commands.py (#2184)
  * Extending query_params for FT.PROFILE (#2198)
  * Implementing ClusterPipeline Lock (#2190)
  * Set default response_callbacks to redis.asyncio.cluster.ClusterNode (#2201)
  * Add default None for maxlen at xtrim command (#2188)
  * Async cluster: add/update typing (#2195)
  * Changed list type to single element type (#2203)
  * Made sync lock consistent and added types to it (#2137)
  * Async cluster: optimisations (#2205)
  * Fix typos in README (#2206)
  * Fix modules links to https://redis.io/commands/ (#2185)

- Update to version 4.3.1
    * Allow negative `retries` for `Retry` class to retry forever
    * Add `items` parameter to `hset` signature
    * Create codeql-analysis.yml (#1988). Thanks @chayim
    * Add limited support for Lua scripting with RedisCluster
    * Implement `.lock()` method on RedisCluster
    * Fix cursor returned by SCAN for RedisCluster & change default
      target to PRIMARIES
    * Fix scan_iter for RedisCluster
    * Remove verbose logging when initializing ClusterPubSub,
      ClusterPipeline or RedisCluster
    * Fix broken connection writer lock-up for asyncio (#2065)

OBS-URL: https://build.opensuse.org/request/show/982133
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=59
2022-06-13 06:36:30 +00:00
82b2960908 Accepting request 906638 from devel:languages:python
- Add account-defaults-redis.patch which fixes failing tests by
  taking into consideration redis defaults, not overwriting them
  (gh#andymccurdy/redis-py#1499).

OBS-URL: https://build.opensuse.org/request/show/906638
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=30
2021-07-18 21:44:49 +00:00
8d1c0f81d0 - Add account-defaults-redis.patch which fixes failing tests by
taking into consideration redis defaults, not overwriting them
  (gh#andymccurdy/redis-py#1499).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=58
2021-07-16 09:17:26 +00:00
a4d1d21383 Accepting request 878169 from devel:languages:python
- Skipp two tests because of gh#andymccurdy/redis-py#1459.

OBS-URL: https://build.opensuse.org/request/show/878169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=29
2021-03-11 19:08:22 +00:00
23791a97f7 - Skipp two tests because of gh#andymccurdy/redis-py#1459.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=56
2021-03-10 12:41:41 +00:00
b44324c9c5 Accepting request 824196 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/824196
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=28
2020-08-06 15:31:28 +00:00
f7f9310cbe Accepting request 824116 from home:mcalabkova:branches:devel:languages:python
- update to 3.5.3
  * Restore try/except clauses to __del__ methods. These will be removed
    in 4.0 when more explicit resource management if enforced. #1339
  * Update the master_address when Sentinels promote a new master. #847
  * Update SentinelConnectionPool to not forcefully disconnect other in-use
    connections which can negatively affect threaded applications. #1345
  3.5.2
  * Tune the locking in ConnectionPool.get_connection so that the lock is
    not held while waiting for the socket to establish and validate the
    TCP connection.
  3.5.1
  * Fix for HSET argument validation to allow any non-None key. Thanks
    @AleksMat, #1337, #1341
  3.5.0
  * Removed exception trapping from __del__ methods. redis-py objects that
    hold various resources implement __del__ cleanup methods to release
    those resources when the object goes out of scope. This provides a
    fallback for when these objects aren't explicitly closed by user code.
    Prior to this change any errors encountered in closing these resources
    would be hidden from the user. Thanks @jdufresne. #1281
  * Expanded support for connection strings specifying a username connecting
    to pre-v6 servers. #1274
  * Optimized Lock's blocking_timeout and sleep. If the lock cannot be
    acquired and the sleep value would cause the loop to sleep beyond
    blocking_timeout, fail immediately. Thanks @clslgrnc. #1263
  * Added support for passing Python memoryviews to Redis command args that
    expect strings or bytes. The memoryview instance is sent directly to
    the socket such that there are zero copies made of the underlying data
    during command packing. Thanks @Cody-G. #1265, #1285
  * HSET command now can accept multiple pairs. HMSET has been marked as

OBS-URL: https://build.opensuse.org/request/show/824116
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=54
2020-08-03 16:17:31 +00:00
a57f319083 Accepting request 786460 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/786460
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=27
2020-04-19 19:42:26 +00:00
Tomáš Chvátal
f9b4e360ab Accepting request 786458 from home:pgajdos:python
- version update to 3.4.1
  * 3.4.1
    * Move the username argument in the Redis and Connection classes to the
      end of the argument list. This helps those poor souls that specify all
      their connection options as non-keyword arguments. #1276
    * Prior to ACL support, redis-py ignored the username component of
      Connection URLs. With ACL support, usernames are no longer ignored and
      are used to authenticate against an ACL rule. Some cloud vendors with
      managed Redis instances (like Heroku) provide connection URLs with a
      username component pre-ACL that is not intended to be used. Sending that
      username to Redis servers < 6.0.0 results in an error. Attempt to detect
      this condition and retry the AUTH command with only the password such
      that authentication continues to work for these users. #1274
    * Removed the __eq__ hooks to Redis and ConnectionPool that were added
      in 3.4.0. This ended up being a bad idea as two separate connection
      pools be considered equal yet manage a completely separate set of
      connections.
  * 3.4.0
    * Allow empty pipelines to be executed if there are WATCHed keys.
      This is a convenient way to test if any of the watched keys changed
      without actually running any other commands. Thanks @brianmaissy.
      #1233, #1234
    * Removed support for end of life Python 3.4.
    * Added support for all ACL commands in Redis 6. Thanks @IAmATeaPot418
      for helping.
    * Pipeline instances now always evaluate to True. Prior to this change,
      pipeline instances relied on __len__ for boolean evaluation which
      meant that pipelines with no commands on the stack would be considered
      False. #994
    * Client instances and Connection pools now support a 'client_name'

OBS-URL: https://build.opensuse.org/request/show/786458
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=52
2020-03-19 12:27:46 +00:00
5db7336bc7 Accepting request 757265 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/757265
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=26
2019-12-23 21:40:25 +00:00
Tomáš Chvátal
bf0bba0abf Accepting request 756890 from home:buschmann23:branches:devel:languages:python
- Fix tests with redis pre 5.0.0:
  * 0001-fix-tests-with-redis-pre-5.0.0.patch

OBS-URL: https://build.opensuse.org/request/show/756890
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=50
2019-12-16 08:02:58 +00:00
a470530172 Accepting request 751836 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/751836
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=25
2019-12-07 14:19:20 +00:00
Tomáš Chvátal
2da24d42c3 Accepting request 750899 from home:apersaud:branches:devel:languages:python
Added changes as requested in SR#750614. Hope I understood the comments there correctly.

- specfile:
  * be more specifc in %files section
- update to version 3.3.11:
  * Further fix for the SSLError -> TimeoutError mapping to work on
    obscure releases of Python 2.7.
- changes from version 3.3.10:
  * Fixed a potential error handling bug for the SSLError ->
    TimeoutError mapping introduced in 3.3.9. hanks @zbristow. #1224
- changes from version 3.3.9:
  * Mapped Python 2.7 SSLError to TimeoutError where
    appropriate. Timeouts should now consistently raise TimeoutErrors
    on Python 2.7 for both unsecured and secured connections. Thanks
    @zbristow. #1222

OBS-URL: https://build.opensuse.org/request/show/750899
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=48
2019-11-29 09:45:14 +00:00
181bbbd515 Accepting request 729802 from devel:languages:python
- Update to 3.3.8:
  * Fixed MONITOR parsing to properly parse IPv6 client addresses
  * Fixed a regression introduced in 3.3.0

OBS-URL: https://build.opensuse.org/request/show/729802
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=24
2019-09-23 10:04:38 +00:00
Tomáš Chvátal
1da35b2ecd - Update to 3.3.8:
* Fixed MONITOR parsing to properly parse IPv6 client addresses
  * Fixed a regression introduced in 3.3.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=46
2019-09-10 10:56:52 +00:00
c3a82728cb Accepting request 722638 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/722638
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=23
2019-08-14 09:36:44 +00:00
Tomáš Chvátal
bda3abda55 Accepting request 722636 from home:mcalabkova:branches:devel:languages:python
- Update to v3.3.6
  * Resolve a race condition with the PubSubWorkerThread. #1150
  * Response callbacks are now case insensitive.
  * Added support for hiredis-py 1.0.0 encoding error support.
  * Add READONLY and READWRITE commands.
  * Added extensive health checks that keep the connections lively.
  * Many more changes, see upstream changelog.

OBS-URL: https://build.opensuse.org/request/show/722636
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=44
2019-08-12 10:15:23 +00:00
6df822ed3f Accepting request 694225 from devel:languages:python
- Update to 3.2.0 bsc#1131555:

OBS-URL: https://build.opensuse.org/request/show/694225
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=22
2019-04-19 16:37:12 +00:00
Tomáš Chvátal
d46cedc7b6 - Update to 3.2.0 bsc#1131555:
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=42
2019-04-15 10:12:22 +00:00
b0631d4be4 Accepting request 690298 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/690298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=21
2019-04-04 10:01:17 +00:00
Tomáš Chvátal
1e04efcf63 Accepting request 690168 from home:jayvdb:django
- Add missing build dependency setuptools

OBS-URL: https://build.opensuse.org/request/show/690168
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=40
2019-04-01 09:04:18 +00:00
6374af49a2 Accepting request 688630 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/688630
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=20
2019-03-28 21:48:18 +00:00
Tomáš Chvátal
392532f780 Accepting request 688628 from home:jayvdb:django
- Update to v3.2.1
  * Fix SentinelConnectionPool to work in multiprocess/forked
    environments

OBS-URL: https://build.opensuse.org/request/show/688628
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=38
2019-03-26 09:41:16 +00:00
86cf3a1c1c Accepting request 676986 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/676986
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=19
2019-02-19 11:00:38 +00:00
Thomas Bechtold
2df149d0c1 Accepting request 676978 from home:sebix:branches:devel:languages:python
- Update to 3.2.0:
    * Added support for `select.poll` to test whether data can be read
      on a socket. This should allow for significantly more connections to
      be used with pubsub. Fixes #486/#1115
    * Attempt to guarentee that the ConnectionPool hands out healthy
      connections. Healthy connections are those that have an established
      socket connection to the Redis server, are ready to accept a command
      and have no data available to read. Fixes #1127/#886
    * Use the socket.IPPROTO_TCP constant instead of socket.SOL_TCP.
      IPPROTO_TCP is available on more interpreters (Jython for instance).
      Thanks @Junnplus. #1130
    * Fixed a regression introduced in 3.0 that mishandles exceptions not
      derived from the base Exception class. KeyboardInterrupt and
      gevent.timeout notable. Thanks Christian Fersch. #1128/#1129
    * Significant improvements to handing connections with forked processes.
      Parent and child processes no longer trample on each others' connections.
      Thanks to Jay Rolette for the patch and highlighting this issue.
      #504/#732/#784/#863
    * PythonParser no longer closes the associated connection's socket. The
      connection itself will close the socket. #1108/#1085

OBS-URL: https://build.opensuse.org/request/show/676978
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=36
2019-02-18 09:39:32 +00:00
Tomáš Chvátal
a7a56ab3ae - Update to 3.1.0:
* Connection URLs must have one of the following schemes:
      redis://, rediss://, unix://. Thanks @jdupl123. #961/#969
    * Fixed an issue with retry_on_timeout logic that caused some TimeoutErrors
      to be retried. Thanks Aaron Yang. #1022/#1023
    * Added support for SNI for SSL. Thanks @oridistor and Roey Prat. #1087
    * Fixed ConnectionPool repr for pools with no connections. Thanks
      Cody Scott. #1043/#995
    * Fixed GEOHASH to return a None value when specifying a place that
      doesn't exist on the server. Thanks @guybe7. #1126
    * Fixed XREADGROUP to return an empty dictionary for messages that
      have been deleted but still exist in the unacknowledged queue. Thanks
      @xeizmendi. #1116
    * Added an owned method to Lock objects. owned returns a boolean
      indicating whether the current lock instance still owns the lock.
      Thanks Dave Johansen. #1112
    * Allow lock.acquire() to accept an optional token argument. If
      provided, the token argument is used as the unique value used to claim
      the lock. Thankd Dave Johansen. #1112
    * Added a reacquire method to Lock objects. reaquire attempts to renew
      the lock such that the timeout is extended to the same value that the
      lock was initially acquired with. Thanks Ihor Kalnytskyi. #1014
    * Stream names found within XREAD and XREADGROUP responses now properly
      respect the decode_responses flag.
    * XPENDING_RANGE now requires the user the specify the min, max and
      count arguments. Newer versions of Redis prevent ount from being
      infinite so it's left to the user to specify these values explicitly.
    * ZADD now returns None when xx=True and incr=True and an element
      is specified that doesn't exist in the sorted set. This matches
      what the server returns in this case. #1084

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=35
2019-02-15 11:46:31 +00:00
a80a8d0650 Accepting request 649608 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/649608
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=18
2018-11-26 09:22:25 +00:00
Todd R
f62398c5be Accepting request 649543 from home:sebix:branches:devel:languages:python
- add recommendation for python-hiredis as requested by @mimi_vx in Request#649524

OBS-URL: https://build.opensuse.org/request/show/649543
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=33
2018-11-16 15:02:25 +00:00
Tomáš Chvátal
901058bff2 Accepting request 649524 from home:sebix:branches:devel:languages:python
- update to version 3.0.1:
- update to version 3.0.0:

OBS-URL: https://build.opensuse.org/request/show/649524
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=32
2018-11-16 10:20:02 +00:00
38b1bbe888 Accepting request 635475 from devel:languages:python
- Add patch redis-skip-rounding.patch to fix rounding issues with
  geolocation, it is not stable enought o produce pinpoint equal
  results among 32bit platforms

OBS-URL: https://build.opensuse.org/request/show/635475
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=17
2018-09-13 22:01:36 +00:00
Tomáš Chvátal
b5f7a3b1e7 - Add patch redis-skip-rounding.patch to fix rounding issues with
geolocation, it is not stable enought o produce pinpoint equal
  results among 32bit platforms

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=30
2018-09-13 07:54:53 +00:00
eaf5c3d575 Accepting request 631998 from devel:languages:python
- Run tests by launching redis server
- Require redis on runtime

OBS-URL: https://build.opensuse.org/request/show/631998
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=16
2018-08-29 10:26:51 +00:00
Tomáš Chvátal
b4b0ff3dc1 - Run tests by launching redis server
- Require redis on runtime

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=28
2018-08-28 14:25:43 +00:00
a4d887c569 Accepting request 530853 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/530853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=15
2017-10-05 09:58:13 +00:00
Jan Matejek
61b20cdbcc Accepting request 530625 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/530625
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=26
2017-10-03 11:54:57 +00:00
90aedef6d8 Accepting request 507111 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/507111
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=14
2017-07-05 22:01:26 +00:00
Jan Matejek
6985d50ffe Accepting request 506890 from home:benoit_monin:branches:devel:languages:python
convert the package to singlespec

OBS-URL: https://build.opensuse.org/request/show/506890
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=24
2017-06-29 15:29:54 +00:00
89a24cc35d Accepting request 441394 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/441394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=13
2016-12-07 23:30:19 +00:00
d13562cd38 - update to 2.10.5:
* Allow URL encoded parameters in Redis URLs. Characters like a "/" can
    now be URL encoded and redis-py will correctly decode them. Thanks
  * Added support for the WAIT command. Thanks https://github.com/eshizhan
  * Better shutdown support for the PubSub Worker Thread. It now properly
    cleans up the connection, unsubscribes from any channels and patterns
    previously subscribed to and consumes any waiting messages on the socket.
  * Added the ability to sleep for a brief period in the event of a
    WatchError occuring. Thanks Joshua Harlow.
  * Fixed a bug with pipeline error reporting when dealing with characters
    in error messages that could not be encoded to the connection's
    character set. Thanks Hendrik Muhs.
  * Fixed a bug in Sentinel connections that would inadvertantly connect
    to the master when the connection pool resets. Thanks
    https://github.com/df3n5
  * Better timeout support in Pubsub get_message. Thanks Andy Isaacson.
  * Fixed a bug with the HiredisParser that would cause the parser to
     get stuck in an endless loop if a specific number of bytes were
    delivered from the socket. This fix also increases performance of
     parsing large responses from the Redis server.
   * Added support for ZREVRANGEBYLEX.
   * ConnectionErrors are now raised if Redis refuses a connection due to
     the maxclients limit being exceeded. Thanks Roman Karpovich.
   * max_connections can now be set when instantiating client instances.
     Thanks Ohad Perry.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=22
2016-11-15 12:37:13 +00:00
Stephan Kulow
e97c29c8f3 Accepting request 247253 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/247253
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=12
2014-09-03 06:30:19 +00:00
Todd R
2788fb2d31 Accepting request 247252 from home:TheBlackCat:branches:devel:languages:python
Update to version 2.10.3

OBS-URL: https://build.opensuse.org/request/show/247252
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=20
2014-09-02 16:38:54 +00:00
Stephan Kulow
ac5671162c Accepting request 208186 from devel:languages:python
- Update to version 2.8
  + redis-py should play better with gevent when a gevent Timeout is raised.
  + Added SENTINEL command
  + Fixed a bug where pipelines could potentially correct a connection
    if the MULTI command generated a ResponseError.
  + Connections now call socket.shutdown() prior to socket.close() to
    ensure communication ends immediately per the note at
    http://docs.python.org/2/library/socket.html#socket.socket.close
  + Lock checks are now based on floats rather than ints. (forwarded request 208185 from posophe)

OBS-URL: https://build.opensuse.org/request/show/208186
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=10
2013-11-25 15:03:31 +00:00
Denisart Benjamin
8ea62ebe80 Accepting request 208185 from home:posophe:branches:devel:languages:python
- Update to version 2.8
  + redis-py should play better with gevent when a gevent Timeout is raised.
  + Added SENTINEL command
  + Fixed a bug where pipelines could potentially correct a connection
    if the MULTI command generated a ResponseError.
  + Connections now call socket.shutdown() prior to socket.close() to
    ensure communication ends immediately per the note at
    http://docs.python.org/2/library/socket.html#socket.socket.close
  + Lock checks are now based on floats rather than ints.

OBS-URL: https://build.opensuse.org/request/show/208185
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=18
2013-11-24 19:05:59 +00:00
Stephan Kulow
b927205009 Accepting request 186099 from devel:languages:python
- Use upstream source URL

- added requirement python-py
- Update to 2.7.6:
  * Added CONFIG RESETSTAT command. Thanks Yossi Gottlieb.
  * Fixed a bug introduced in 2.7.3 that caused issues with script objects
    and pipelines. Thanks Carpentier Pierre-Francois.
  * Converted redis-py's test suite to use the awesome py.test library.
  * Fixed a bug introduced in 2.7.5 that prevented a ConnectionError from
    being raised when the Redis server is LOADING data.
  * Added a BusyLoadingError exception that's raised when the Redis server
    is starting up and not accepting commands yet. BusyLoadingError
    subclasses ConnectionError, which this state previously returned.
    Thanks Yossi Gottlieb.
- Changes in 2.7.5:
  * DEL, HDEL and ZREM commands now return the numbers of keys deleted
    instead of just True/False.
  * from_url now supports URIs with a port number. Thanks Aaron Westendorf.
- Changes in 2.7.4:
  * Added missing INCRBY method. Thanks Krzysztof Dorosz.
  * SET now accepts the EX, PX, NX and XX options from Redis 2.6.12. These
    options will generate errors if these options are used when connected
    to a Redis server < 2.6.12. Thanks George Yoshida.
- Changes in 2.7.3:
  * Fixed a bug with BRPOPLPUSH and lists with empty strings.
  * All empty except: clauses have been replaced to only catch Exception
    subclasses. This prevents a KeyboardInterrupt from triggering exception
    handlers. Thanks Lucian Branescu Mihaila.
  * All exceptions that are the result of redis server errors now share a
    command Exception subclass, ServerError. Thanks Matt Robenolt.

OBS-URL: https://build.opensuse.org/request/show/186099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=8
2013-08-07 18:53:11 +00:00
Sascha Peilicke
a1fa41d610 - Use upstream source URL
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=16
2013-08-06 12:36:23 +00:00
Sascha Peilicke
fa4355b4f4 Accepting request 185593 from home:cberendt:branches:devel:languages:python
updated to latest available version and added missing requirement

OBS-URL: https://build.opensuse.org/request/show/185593
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=15
2013-08-05 09:30:25 +00:00
Stephan Kulow
7e9b94deb5 Accepting request 132594 from devel:languages:python
Update to 2.6.2.  Note: python3 now supported, should we do anything with that? (forwarded request 132435 from poorboywilly)

OBS-URL: https://build.opensuse.org/request/show/132594
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=6
2012-09-06 07:02:03 +00:00
Todd R
6a38f13732 Accepting request 132435 from home:poorboywilly:branches:devel:languages:python
Update to 2.6.2.  Note: python3 now supported, should we do anything with that?

OBS-URL: https://build.opensuse.org/request/show/132435
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=13
2012-09-05 07:51:37 +00:00
Stephan Kulow
fc87e0da70 Accepting request 123374 from devel:languages:python
Updated to version 2.4.13 (forwarded request 123315 from poorboywilly)

OBS-URL: https://build.opensuse.org/request/show/123374
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=4
2012-06-05 13:34:55 +00:00
Todd R
5abcd06fb5 Accepting request 123315 from home:poorboywilly:branches:devel:languages:python
Updated to version 2.4.13

OBS-URL: https://build.opensuse.org/request/show/123315
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=11
2012-06-03 15:03:52 +00:00
Stephan Kulow
d922addafa Accepting request 102985 from devel:languages:python
Update to 2.4.11. (forwarded request 102956 from aledr)

OBS-URL: https://build.opensuse.org/request/show/102985
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=3
2012-02-14 10:26:39 +00:00
Sascha Peilicke
de9d4b6eb7 Accepting request 102956 from home:aledr:branches
Update to 2.4.11.

OBS-URL: https://build.opensuse.org/request/show/102956
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=9
2012-02-07 08:59:29 +00:00
Pascal Bleser
3afb975b0f remove %debug_package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=8
2011-12-12 09:06:34 +00:00
Stephan Kulow
5193e22ec0 Accepting request 93475 from devel:languages:python
Dependency for OpenStack packages.

OBS-URL: https://build.opensuse.org/request/show/93475
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-redis?expand=0&rev=1
2011-11-28 17:27:13 +00:00
Sascha Peilicke
effae7ad7b - Update to version 2.4.9:
* Removed socket retry logic in Connection. This is the responsbility of
    the caller to determine if the command is safe and can be retried. Thanks
    David Wolver.
  * Added some extra guards around various types of exceptions being raised
    when sending or parsing data. Thanks David Wolver and Denis Bilenko.
- See file CHANGES for previous versions...
- Update to version 2.2.4:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=6
2011-09-23 12:14:33 +00:00
Alexandre Rogoski
b36c4ca773 Accepting request 69954 from home:saschpe:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/69954
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=5
2011-05-11 00:12:49 +00:00
Pavol Rusnak
6f633441cb add docs
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=4
2010-03-09 13:59:48 +00:00
Pavol Rusnak
1d68b7ad56 url
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=3
2010-03-09 13:42:14 +00:00
Pavol Rusnak
69a8b70908 fix
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=2
2010-03-07 22:31:52 +00:00
Pavol Rusnak
d56c30fba0 init
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redis?expand=0&rev=1
2010-03-07 22:28:01 +00:00
7 changed files with 0 additions and 238 deletions

View File

@@ -1,149 +0,0 @@
From 29d867899ab7abfb0ec2ef73d5bd3a810f8ab432 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= <sweskman@gmail.com>
Date: Fri, 13 Oct 2023 15:54:23 +0000
Subject: [PATCH] Close various objects created during asyncio tests
---
tests/test_asyncio/test_commands.py | 2 ++
tests/test_asyncio/test_connect.py | 2 ++
tests/test_asyncio/test_connection.py | 4 ++++
tests/test_asyncio/test_retry.py | 3 +++
tests/test_asyncio/test_sentinel.py | 22 +++++++++----------
.../test_sentinel_managed_connection.py | 1 +
6 files changed, 23 insertions(+), 11 deletions(-)
diff --git a/tests/test_asyncio/test_commands.py b/tests/test_asyncio/test_commands.py
index 9b9852e9ef..35b9f2a29f 100644
--- a/tests/test_asyncio/test_commands.py
+++ b/tests/test_asyncio/test_commands.py
@@ -370,10 +370,12 @@ async def test_client_setinfo(self, r: redis.Redis):
info = await r2.client_info()
assert info["lib-name"] == "test2"
assert info["lib-ver"] == "1234"
+ await r2.aclose()
r3 = redis.asyncio.Redis(lib_name=None, lib_version=None)
info = await r3.client_info()
assert info["lib-name"] == ""
assert info["lib-ver"] == ""
+ await r3.aclose()
@skip_if_server_version_lt("2.6.9")
@pytest.mark.onlynoncluster
diff --git a/tests/test_asyncio/test_connect.py b/tests/test_asyncio/test_connect.py
index 0b2d7c2afa..5e6b120fb3 100644
--- a/tests/test_asyncio/test_connect.py
+++ b/tests/test_asyncio/test_connect.py
@@ -73,6 +73,8 @@ async def _handler(reader, writer):
try:
return await _redis_request_handler(reader, writer, stop_event)
finally:
+ writer.close()
+ await writer.wait_closed()
finished.set()
if isinstance(server_address, str):
diff --git a/tests/test_asyncio/test_connection.py b/tests/test_asyncio/test_connection.py
index 28e6b0d9c3..9c7f25bf87 100644
--- a/tests/test_asyncio/test_connection.py
+++ b/tests/test_asyncio/test_connection.py
@@ -85,6 +85,8 @@ async def get_conn(_):
assert init_call_count == 1
assert command_call_count == 2
+ r.connection = None # it was a Mock
+ await r.aclose()
@skip_if_server_version_lt("4.0.0")
@@ -143,6 +145,7 @@ async def mock_connect():
conn._connect.side_effect = mock_connect
await conn.connect()
assert conn._connect.call_count == 3
+ await conn.disconnect()
async def test_connect_without_retry_on_os_error():
@@ -194,6 +197,7 @@ async def test_connection_parse_response_resume(r: redis.Redis):
pytest.fail("didn't receive a response")
assert response
assert i > 0
+ await conn.disconnect()
@pytest.mark.onlynoncluster
diff --git a/tests/test_asyncio/test_retry.py b/tests/test_asyncio/test_retry.py
index 2912ca786c..8bc71c1479 100644
--- a/tests/test_asyncio/test_retry.py
+++ b/tests/test_asyncio/test_retry.py
@@ -131,5 +131,8 @@ async def test_get_set_retry_object(self, request):
assert r.get_retry()._retries == new_retry_policy._retries
assert isinstance(r.get_retry()._backoff, ExponentialBackoff)
assert exiting_conn.retry._retries == new_retry_policy._retries
+ await r.connection_pool.release(exiting_conn)
new_conn = await r.connection_pool.get_connection("_")
assert new_conn.retry._retries == new_retry_policy._retries
+ await r.connection_pool.release(new_conn)
+ await r.aclose()
diff --git a/tests/test_asyncio/test_sentinel.py b/tests/test_asyncio/test_sentinel.py
index 25bd7730da..51e59d69d0 100644
--- a/tests/test_asyncio/test_sentinel.py
+++ b/tests/test_asyncio/test_sentinel.py
@@ -183,13 +183,13 @@ async def test_discover_slaves(cluster, sentinel):
@pytest.mark.onlynoncluster
async def test_master_for(cluster, sentinel, master_ip):
- master = sentinel.master_for("mymaster", db=9)
- assert await master.ping()
- assert master.connection_pool.master_address == (master_ip, 6379)
+ async with sentinel.master_for("mymaster", db=9) as master:
+ assert await master.ping()
+ assert master.connection_pool.master_address == (master_ip, 6379)
# Use internal connection check
- master = sentinel.master_for("mymaster", db=9, check_connection=True)
- assert await master.ping()
+ async with sentinel.master_for("mymaster", db=9, check_connection=True) as master:
+ assert await master.ping()
@pytest.mark.onlynoncluster
@@ -197,16 +197,16 @@ async def test_slave_for(cluster, sentinel):
cluster.slaves = [
{"ip": "127.0.0.1", "port": 6379, "is_odown": False, "is_sdown": False}
]
- slave = sentinel.slave_for("mymaster", db=9)
- assert await slave.ping()
+ async with sentinel.slave_for("mymaster", db=9) as slave:
+ assert await slave.ping()
@pytest.mark.onlynoncluster
async def test_slave_for_slave_not_found_error(cluster, sentinel):
cluster.master["is_odown"] = True
- slave = sentinel.slave_for("mymaster", db=9)
- with pytest.raises(SlaveNotFoundError):
- await slave.ping()
+ async with sentinel.slave_for("mymaster", db=9) as slave:
+ with pytest.raises(SlaveNotFoundError):
+ await slave.ping()
@pytest.mark.onlynoncluster
@@ -260,7 +260,7 @@ async def mock_disconnect():
calls += 1
with mock.patch.object(pool, "disconnect", mock_disconnect):
- await client.close()
+ await client.aclose()
assert calls == 1
await pool.disconnect()
diff --git a/tests/test_asyncio/test_sentinel_managed_connection.py b/tests/test_asyncio/test_sentinel_managed_connection.py
index 711b3ee733..cae4b9581f 100644
--- a/tests/test_asyncio/test_sentinel_managed_connection.py
+++ b/tests/test_asyncio/test_sentinel_managed_connection.py
@@ -34,3 +34,4 @@ async def mock_connect():
conn._connect.side_effect = mock_connect
await conn.connect()
assert conn._connect.call_count == 3
+ await conn.disconnect()

View File

@@ -1,74 +0,0 @@
Index: python-redis/redis-5.2.1/tests/test_asyncio/test_scripting.py
===================================================================
--- python-redis.orig/redis-5.2.1/tests/test_asyncio/test_scripting.py
+++ python-redis/redis-5.2.1/tests/test_asyncio/test_scripting.py
@@ -28,14 +28,14 @@ class TestScripting:
yield redis
await redis.script_flush()
- @pytest.mark.asyncio(forbid_global_loop=True)
+ @pytest.mark.asyncio()
async def test_eval(self, r):
await r.flushdb()
await r.set("a", 2)
# 2 * 3 == 6
assert await r.eval(multiply_script, 1, "a", 3) == 6
- @pytest.mark.asyncio(forbid_global_loop=True)
+ @pytest.mark.asyncio()
@skip_if_server_version_lt("6.2.0")
async def test_script_flush(self, r):
await r.set("a", 2)
@@ -55,14 +55,14 @@ class TestScripting:
await r.script_load(multiply_script)
await r.script_flush("NOTREAL")
- @pytest.mark.asyncio(forbid_global_loop=True)
+ @pytest.mark.asyncio()
async def test_evalsha(self, r):
await r.set("a", 2)
sha = await r.script_load(multiply_script)
# 2 * 3 == 6
assert await r.evalsha(sha, 1, "a", 3) == 6
- @pytest.mark.asyncio(forbid_global_loop=True)
+ @pytest.mark.asyncio()
async def test_evalsha_script_not_loaded(self, r):
await r.set("a", 2)
sha = await r.script_load(multiply_script)
@@ -71,7 +71,7 @@ class TestScripting:
with pytest.raises(exceptions.NoScriptError):
await r.evalsha(sha, 1, "a", 3)
- @pytest.mark.asyncio(forbid_global_loop=True)
+ @pytest.mark.asyncio()
async def test_script_loading(self, r):
# get the sha, then clear the cache
sha = await r.script_load(multiply_script)
@@ -80,7 +80,7 @@ class TestScripting:
await r.script_load(multiply_script)
assert await r.script_exists(sha) == [True]
- @pytest.mark.asyncio(forbid_global_loop=True)
+ @pytest.mark.asyncio()
async def test_script_object(self, r):
await r.script_flush()
await r.set("a", 2)
@@ -97,7 +97,7 @@ class TestScripting:
# Test first evalsha block
assert await multiply(keys=["a"], args=[3]) == 6
- @pytest.mark.asyncio(forbid_global_loop=True)
+ @pytest.mark.asyncio()
async def test_script_object_in_pipeline(self, r):
await r.script_flush()
multiply = r.register_script(multiply_script)
@@ -127,7 +127,7 @@ class TestScripting:
assert await pipe.execute() == [True, b"2", 6]
assert await r.script_exists(multiply.sha) == [True]
- @pytest.mark.asyncio(forbid_global_loop=True)
+ @pytest.mark.asyncio()
async def test_eval_msgpack_pipeline_error_in_lua(self, r):
msgpack_hello = r.register_script(msgpack_hello_script)
assert msgpack_hello.sha

BIN
redis-5.0.1.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

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

BIN
redis-5.1.1.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

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

BIN
redis-5.2.1.tar.gz (Stored with Git LFS)

Binary file not shown.