From 901058bff2a30ef72597dd3262695ba5fbba025b777a2af72d778545e67e515b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 16 Nov 2018 10:20:02 +0000 Subject: [PATCH 1/2] 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 --- python-redis.changes | 97 ++++++++++++++++++++++++++++++++++++++++++++ python-redis.spec | 2 +- redis-2.10.6.tar.gz | 3 -- redis-3.0.1.tar.gz | 3 ++ 4 files changed, 101 insertions(+), 4 deletions(-) delete mode 100644 redis-2.10.6.tar.gz create mode 100644 redis-3.0.1.tar.gz diff --git a/python-redis.changes b/python-redis.changes index 364407c..2b6855b 100644 --- a/python-redis.changes +++ b/python-redis.changes @@ -1,3 +1,100 @@ +------------------------------------------------------------------- +Fri Nov 16 08:48:26 UTC 2018 - sebix+novell.com@sebix.at + +- update to version 3.0.1: + * Fixed regression with UnixDomainSocketConnection caused by 3.0.0. + Thanks Jyrki Muukkonen + * Fixed an issue with the new asynchronous flag on flushdb and flushall. + Thanks rogeryen + * Updated Lock.locked() method to indicate whether *any* process has + acquired the lock, not just the current one. This is in line with + the behavior of threading.Lock. Thanks Alan Justino da Silva +- update to version 3.0.0: + BACKWARDS INCOMPATIBLE CHANGES + * When using a Lock as a context manager and the lock fails to be acquired + a LockError is now raised. This prevents the code block inside the + context manager from being executed if the lock could not be acquired. + * Renamed LuaLock to Lock. + * Removed the pipeline based Lock implementation in favor of the LuaLock + implementation. + * Only bytes, strings and numbers (ints, longs and floats) are acceptable + for keys and values. Previously redis-py attempted to cast other types + to str() and store the result. This caused must confusion and frustration + when passing boolean values (cast to 'True' and 'False') or None values + (cast to 'None'). It is now the user's responsibility to cast all + key names and values to bytes, strings or numbers before passing the + value to redis-py. + * The StrictRedis class has been renamed to Redis. StrictRedis will + continue to exist as an alias of Redis for the forseeable future. + * The legacy Redis client class has been removed. It caused much confusion + to users. + * ZINCRBY arguments 'value' and 'amount' have swapped order to match the + the Redis server. The new argument order is: keyname, amount, value. + * MGET no longer raises an error if zero keys are passed in. Instead an + empty list is returned. + * MSET and MSETNX now require all keys/values to be specified in a single + dictionary argument named mapping. This was changed to allow for future + options to these commands in the future. + * ZADD now requires all element names/scores be specified in a single + dictionary argument named mapping. This was required to allow the NX, + XX, CH and INCR options to be specified. + * Removed support for EOL Python 2.6 and 3.3. Thanks jdufresne + OTHER CHANGES + * Added missing DECRBY command. Thanks derek-dchu + * CLUSTER INFO and CLUSTER NODES respones are now properly decoded to + strings. + * Added a 'locked()' method to Lock objects. This method returns True + if the lock has been acquired and owned by the current process, + otherwise False. + * EXISTS now supports multiple keys. It's return value is now the number + of keys in the list that exist. + * Ensure all commands can accept key names as bytes. This fixes issues + with BLPOP, BRPOP and SORT. + * All errors resulting from bad user input are raised as DataError + exceptions. DataError is a subclass of RedisError so this should be + transparent to anyone previously catching these. + * Added support for NX, XX, CH and INCR options to ZADD + * Added support for the MIGRATE command + * Added support for the MEMORY USAGE and MEMORY PURGE commands. Thanks + Itamar Haber + * Added support for the 'asynchronous' argument to FLUSHDB and FLUSHALL + commands. Thanks Itamar Haber + * Added support for the BITFIELD command. Thanks Charles Leifer and + Itamar Haber + * Improved performance on pipeline requests with large chunks of data. + Thanks tzickel + * Fixed test suite to not fail if another client is connected to the + server the tests are running against. + * Added support for SWAPDB. Thanks Itamar Haber + * Added support for all STREAM commands. Thanks Roey Prat and Itamar Haber + * SHUTDOWN now accepts the 'save' and 'nosave' arguments. Thanks + dwilliams-kenzan + * Added support for ZPOPMAX, ZPOPMIN, BZPOPMAX, BZPOPMIN. Thanks + Itamar Haber + * Added support for the 'type' argument in CLIENT LIST. Thanks Roey Prat + * Added support for CLIENT PAUSE. Thanks Roey Prat + * Added support for CLIENT ID and CLIENT UNBLOCK. Thanks Itamar Haber + * GEODIST now returns a None value when referencing a place that does + not exist. Thanks qingping209 + * Added a ping() method to pubsub objects. Thanks krishan-carbon + * Fixed a bug with keys in the INFO dict that contained ':' symbols. + Thanks mzalimeni + * ssl_cert_reqs now has a default value of 'required' by default. This + should make connecting to a remote Redis server over SSL more secure. + Thanks u2mejc + * Fixed the select system call retry compatibility with Python 2.x. + Thanks lddubeau + * max_connections is now a valid querystring argument for creating + connection pools from URLs. Thanks mmaslowskicc + * Added the UNLINK command. Thanks yozel + * Added socket_type option to Connection for configurability. + Thanks garlicnation + * Lock.do_acquire now atomically sets acquires the lock and sets the + expire value via set(nx=True, px=timeout). Thanks 23doors + * Added 'count' argument to SPOP. Thanks AlirezaSadeghi + * Fixed an issue parsing client_list respones that contained an '='. + Thanks swilly22 + ------------------------------------------------------------------- Thu Sep 13 07:54:09 UTC 2018 - Tomáš Chvátal diff --git a/python-redis.spec b/python-redis.spec index f416e0a..a90c074 100644 --- a/python-redis.spec +++ b/python-redis.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-redis -Version: 2.10.6 +Version: 3.0.1 Release: 0 Summary: Python client for Redis key-value store License: MIT diff --git a/redis-2.10.6.tar.gz b/redis-2.10.6.tar.gz deleted file mode 100644 index 72c1b2f..0000000 --- a/redis-2.10.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a22ca993cea2962dbb588f9f30d0015ac4afcc45bee27d3978c0dbe9e97c6c0f -size 97299 diff --git a/redis-3.0.1.tar.gz b/redis-3.0.1.tar.gz new file mode 100644 index 0000000..9f33dbd --- /dev/null +++ b/redis-3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2100750629beff143b6a200a2ea8e719fcf26420adabb81402895e144c5083cf +size 115949 From f62398c5be0bf4a7c1305d072d901b8ea2f89fcaafbd7ccb52ab8e4d8e3fe9b2 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 16 Nov 2018 15:02:25 +0000 Subject: [PATCH 2/2] 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 --- python-redis.changes | 5 +++++ python-redis.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/python-redis.changes b/python-redis.changes index 2b6855b..b633794 100644 --- a/python-redis.changes +++ b/python-redis.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 16 11:29:31 UTC 2018 - sebix+novell.com@sebix.at + +- add recommendation for python-hiredis as requested by @mimi_vx in Request#649524 + ------------------------------------------------------------------- Fri Nov 16 08:48:26 UTC 2018 - sebix+novell.com@sebix.at diff --git a/python-redis.spec b/python-redis.spec index a90c074..16b2856 100644 --- a/python-redis.spec +++ b/python-redis.spec @@ -33,6 +33,7 @@ BuildRequires: fdupes BuildRequires: psmisc BuildRequires: python-rpm-macros BuildRequires: redis +Recommends: python-hiredis Requires: python-py Requires: redis BuildArch: noarch