Commit Graph

35 Commits

Author SHA256 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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