pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/py-redis py-redis: updated to 3.0.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30ff99ef192f
branches:  trunk
changeset: 316475:30ff99ef192f
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Dec 13 19:37:48 2018 +0000

description:
py-redis: updated to 3.0.1

* 3.0.1
    * Fixed regression with UnixDomainSocketConnection caused by 3.0.0.
    * Fixed an issue with the new asynchronous flag on flushdb and flushall.
    * 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.
* 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.
  OTHER CHANGES
    * Added missing DECRBY command.
    * 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.
    * Added support for the 'asynchronous' argument to FLUSHDB and FLUSHALL
      commands.
    * Added support for the BITFIELD command.
    * Improved performance on pipeline requests with large chunks of data.
    * Fixed test suite to not fail if another client is connected to the
      server the tests are running against.
    * Added support for SWAPDB.
    * Added support for all STREAM commands.
    * SHUTDOWN now accepts the 'save' and 'nosave' arguments.
    * Added support for ZPOPMAX, ZPOPMIN, BZPOPMAX, BZPOPMIN.
    * Added support for the 'type' argument in CLIENT LIST.
    * Added support for CLIENT PAUSE.
    * Added support for CLIENT ID and CLIENT UNBLOCK.
    * GEODIST now returns a None value when referencing a place that does
      not exist.
    * Added a ping() method to pubsub objects.
    * Fixed a bug with keys in the INFO dict that contained ':' symbols.
    * 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.
    * Fixed the select system call retry compatibility with Python 2.x.
    * max_connections is now a valid querystring argument for creating
      connection pools from URLs.
    * Added the UNLINK command.
    * Added socket_type option to Connection for configurability.
    * Lock.do_acquire now atomically sets acquires the lock and sets the
      expire value via set(nx=True, px=timeout).
    * Added 'count' argument to SPOP.
    * Fixed an issue parsing client_list respones that contained an '='.

diffstat:

 databases/py-redis/Makefile |  10 +++++-----
 databases/py-redis/PLIST    |   3 ++-
 databases/py-redis/distinfo |  10 +++++-----
 3 files changed, 12 insertions(+), 11 deletions(-)

diffs (54 lines):

diff -r a9368c02f607 -r 30ff99ef192f databases/py-redis/Makefile
--- a/databases/py-redis/Makefile       Thu Dec 13 19:35:12 2018 +0000
+++ b/databases/py-redis/Makefile       Thu Dec 13 19:37:48 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2017/09/16 19:26:44 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2018/12/13 19:37:48 adam Exp $
 
-DISTNAME=      redis-2.10.6
+DISTNAME=      redis-3.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/redis/}
@@ -10,10 +10,10 @@
 COMMENT=       Redis Python client
 LICENSE=       mit
 
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-test>=2.5.0:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=2.5.0:../../devel/py-test
 
-USE_LANGUAGES=         # none
+USE_LANGUAGES= # none
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r a9368c02f607 -r 30ff99ef192f databases/py-redis/PLIST
--- a/databases/py-redis/PLIST  Thu Dec 13 19:35:12 2018 +0000
+++ b/databases/py-redis/PLIST  Thu Dec 13 19:37:48 2018 +0000
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1 2017/07/14 11:36:27 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2018/12/13 19:37:48 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/redis/__init__.py
 ${PYSITELIB}/redis/__init__.pyc
diff -r a9368c02f607 -r 30ff99ef192f databases/py-redis/distinfo
--- a/databases/py-redis/distinfo       Thu Dec 13 19:35:12 2018 +0000
+++ b/databases/py-redis/distinfo       Thu Dec 13 19:37:48 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2017/08/17 13:15:50 adam Exp $
+$NetBSD: distinfo,v 1.3 2018/12/13 19:37:48 adam Exp $
 
-SHA1 (redis-2.10.6.tar.gz) = 35af44d888316e19ce12caedb759adea9e1018ee
-RMD160 (redis-2.10.6.tar.gz) = 83f8e43ad63dca7985591ba60527c24c72be999b
-SHA512 (redis-2.10.6.tar.gz) = e7df464bc3b26e23f6a0d2d2896306c1e4792b9a2a4ecaea6dd8690ffa17853cc85345f063307295dd3c2da399f7f203f4b21d785f7e073c0501732257419dad
-Size (redis-2.10.6.tar.gz) = 97299 bytes
+SHA1 (redis-3.0.1.tar.gz) = 0c71aee1395ab3e535ad7e5070b09e9a6814c67f
+RMD160 (redis-3.0.1.tar.gz) = b490c4e670f7a45344fcf6ef586ed10467e9b9e0
+SHA512 (redis-3.0.1.tar.gz) = 6f65c179f5423a25b00b01181670a3b34b80ae5114e5f3e614535ee142ce257b1afdcd5a9c277c61ac951101f5109f9e4c78831fe5266b1b18ed8ba77b0b77ba
+Size (redis-3.0.1.tar.gz) = 115949 bytes



Home | Main Index | Thread Index | Old Index