summaryrefslogtreecommitdiff
path: root/databases/py-redis-py
diff options
context:
space:
mode:
authorrodent <rodent>2014-06-08 15:56:39 +0000
committerrodent <rodent>2014-06-08 15:56:39 +0000
commit8d80dd46ef86ad17ed9f3e500d6e9a964e6f448c (patch)
tree4d0047e18b1ab3e5a2538f792c0aa237a2492b4f /databases/py-redis-py
parentdffeacf1806b34cb41010175c0079486b81bb9f4 (diff)
downloadpkgsrc-8d80dd46ef86ad17ed9f3e500d6e9a964e6f448c.tar.gz
Updated to latest release, 2.10.1. From CHANGES:
* 2.10.1 * Fixed a bug where Sentinel connections to a server that's no longer a master and receives a READONLY error will disconnect and reconnect to the master. * 2.10.0 * Discontinuted support for Python 2.5. Upgrade. You'll be happier. * The HiRedis parser will now properly raise ConnectionErrors. * Completely refactored PubSub support. Fixes all known PubSub bugs and adds a bunch of new features. Docs can be found in the README under the new "Publish / Subscribe" section. * Added the new HyperLogLog commanads (PFADD, PFCOUNT, PFMERGE). Thanks Pepijn de Vos and Vincent Ohprecio. * Updated TTL and PTTL commands with Redis 2.8+ semantics. Thanks Markus Kaiserswerth. * *SCAN commands now return a long (int on Python3) cursor value rather than the string representation. This might be slightly backwards incompatible in code using *SCAN commands loops such as "while cursor != '0':". * Added extra *SCAN commands that return iterators instead of the normal [cursor, data] type. Use scan_iter, hscan_iter, sscan_iter, and zscan_iter for iterators. Thanks Mathieu Longtin. * Added support for SLOWLOG commands. Thanks Rick van Hattem. * Added lexicographical commands ZRANGEBYLEX, ZREMRANGEBYLEX, and ZLEXCOUNT for sorted sets. * Connection objects now support an optional argument, socket_read_size, indicating how much data to read during each socket.recv() call. After benchmarking, increased the default size to 64k, which dramatically improves performance when fetching large values, such as many results in a pipeline or a large (>1MB) string value. * Improved the pack_command and send_packed_command functions to increase performance when sending large (>1MB) values. * Sentinel Connections to master servers now detect when a READONLY error is encountered and disconnect themselves and all other active connections to the same master so that the new master can be discovered. * Fixed Sentinel state parsing on Python 3. * Added support for SENTINEL MONITOR, SENTINEL REMOVE, and SENTINEL SET commands. Thanks Greg Murphy. * INFO ouput that doesn't follow the "key:value" format will now be appended to a key named "__raw__" in the INFO dictionary. Thanks Pedro Larroy. * The "vagrant" directory contains a complete vagrant environment for redis-py developers. The environment runs a Redis master, a Redis slave, and 3 Sentinels. Future iterations of the test sutie will incorporate more integration style tests, ensuring things like failover happen correctly. * It's now possible to create connection pool instances from a URL. StrictRedis.from_url() now uses this feature to create a connection pool instance and use that when creating a new client instance. Thanks https://github.com/chillipino * When creating client instances or connection pool instances from an URL, it's now possible to pass additional options to the connection pool with querystring arguments. * Fixed a bug where some encodings (like utf-16) were unusable on Python 3 as command names and literals would get encoded. * Added an SSLConnection class that allows for secure connections through stunnel or other means. Construct and SSL connection with the sll=True option on client classes, using the rediss:// scheme from an URL, or by passing the SSLConnection class to a connection pool's connection_class argument. Thanks https://github.com/oranagra. * Added a socket_connect_timeout option to control how long to wait while establishing a TCP connection before timing out. This lets the client fail fast when attempting to connect to a downed server while keeping a more lenient timeout for all other socket operations. * Added TCP Keep-alive support by passing use the socket_keepalive=True option. Finer grain control can be achieved using the socket_keepalive_options option which expects a dictionary with any of the keys (socket.TCP_KEEPIDLE, socket.TCP_KEEPCNT, socket.TCP_KEEPINTVL) and integers for values. Thanks Yossi Gottlieb. * Added a `retry_on_timeout` option that controls how socket.timeout errors are handled. By default it is set to False and will cause the client to raise a TimeoutError anytime a socket.timeout is encountered. If `retry_on_timeout` is set to True, the client will retry a command that timed out once like other `socket.error`s. * Completely refactored the Lock system. There is now a LuaLock class that's used when the Redis server is capable of running Lua scripts along with a fallback class for Redis servers < 2.6. The new locks fix several subtle race consider that the old lock could face. In additional, a new method, "extend" is available on lock instances that all a lock owner to extend the amount of time they have the lock for. Thanks to Eli Finkelshteyn and https://github.com/chillipino for contributions.
Diffstat (limited to 'databases/py-redis-py')
-rw-r--r--databases/py-redis-py/Makefile4
-rw-r--r--databases/py-redis-py/PLIST5
-rw-r--r--databases/py-redis-py/distinfo8
3 files changed, 10 insertions, 7 deletions
diff --git a/databases/py-redis-py/Makefile b/databases/py-redis-py/Makefile
index c27de0986f8..63c02b54859 100644
--- a/databases/py-redis-py/Makefile
+++ b/databases/py-redis-py/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2014/02/17 00:39:26 rodent Exp $
+# $NetBSD: Makefile,v 1.2 2014/06/08 15:56:39 rodent Exp $
-DISTNAME= redis-2.9.1
+DISTNAME= redis-2.10.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/-/-py-/1}
CATEGORIES= databases python
MASTER_SITES= https://pypi.python.org/packages/source/r/redis/
diff --git a/databases/py-redis-py/PLIST b/databases/py-redis-py/PLIST
index ff5d5356b54..c2ef43ca132 100644
--- a/databases/py-redis-py/PLIST
+++ b/databases/py-redis-py/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2014/02/17 00:39:26 rodent Exp $
+@comment $NetBSD: PLIST,v 1.2 2014/06/08 15:56:39 rodent Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -18,6 +18,9 @@ ${PYSITELIB}/redis/connection.pyo
${PYSITELIB}/redis/exceptions.py
${PYSITELIB}/redis/exceptions.pyc
${PYSITELIB}/redis/exceptions.pyo
+${PYSITELIB}/redis/lock.py
+${PYSITELIB}/redis/lock.pyc
+${PYSITELIB}/redis/lock.pyo
${PYSITELIB}/redis/sentinel.py
${PYSITELIB}/redis/sentinel.pyc
${PYSITELIB}/redis/sentinel.pyo
diff --git a/databases/py-redis-py/distinfo b/databases/py-redis-py/distinfo
index 1c48b994335..d30e2aaea27 100644
--- a/databases/py-redis-py/distinfo
+++ b/databases/py-redis-py/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2014/02/17 00:39:26 rodent Exp $
+$NetBSD: distinfo,v 1.2 2014/06/08 15:56:39 rodent Exp $
-SHA1 (redis-2.9.1.tar.gz) = 10ecaca32dc83c275d70b3dcf9685a7c2291fb2a
-RMD160 (redis-2.9.1.tar.gz) = 54ae1e52cd6b1b9d829738970137562b38027c69
-Size (redis-2.9.1.tar.gz) = 62204 bytes
+SHA1 (redis-2.10.1.tar.gz) = ecc037c17e651dfa634f78b765a0157b5c2da097
+RMD160 (redis-2.10.1.tar.gz) = 3f5a3db2955578c7b59fdb42a6a33043f38f1609
+Size (redis-2.10.1.tar.gz) = 84143 bytes