Permalink
Browse files

Prepare 0.6.0 release.

  • Loading branch information...
1 parent fcedd61 commit f3b07dff148d01002d7c06b3c9f5251872470c71 @tnm committed May 28, 2012
Showing with 9 additions and 7 deletions.
  1. +6 −4 qr.py
  2. +3 −3 setup.py
View
10 qr.py
@@ -3,7 +3,7 @@
"""
__author__ = 'Ted Nyman'
-__version__ = '0.5.0'
+__version__ = '0.6.0'
__license__ = 'MIT'
import redis
@@ -37,11 +37,13 @@ def emit(self, record):
connectionPools = {}
def getRedis(**kwargs):
- """Match up the provided kwargs with an existing connection pool.
+ """
+ Match up the provided kwargs with an existing connection pool.
In cases where you may want a lot of queues, the redis library will
by default open at least one connection for each. This uses redis'
connection pool mechanism to keep the number of open file descriptors
- tractable."""
+ tractable.
+ """
key = ':'.join((repr(key) + '=>' + repr(value)) for key, value in kwargs.items())
try:
return redis.Redis(connection_pool=connectionPools[key])
@@ -291,7 +293,7 @@ def elements(self):
return [self._unpack(o) for o in self.redis.zrange(self.key, 0, -1)]
def pop(self, withscores=False):
- '''Get the element with the lowest score, and pop it off'''
+ """Get the element with the lowest score, and pop it off"""
with self.redis.pipeline() as pipe:
o = pipe.zrange(self.key, 0, 0, withscores=True)
o = pipe.zremrangebyrank(self.key, 0, 0)
View
@@ -4,7 +4,7 @@
import unittest
from setuptools import setup, find_packages
-version = '0.5.0'
+version = '0.6.0'
LONG_DESCRIPTION = '''
@@ -31,11 +31,11 @@
setup(
ifduyue
ifduyue Jul 5, 2012

maybe put install_requires=['redis'] here?

name = 'qr',
version = version,
- description = 'Create and work with Redis-powered queues, capped collections, deques, and stacks',
+ description = 'Redis-powered queues, capped collections, deques, and stacks',
long_description = LONG_DESCRIPTION,
url = 'http://github.com/tnm/qr',
author = 'Ted Nyman',
- author_email = 'tnm800@gmail.com',
+ author_email = 'ted@ted.io',
keywords = 'Redis, queue, data structures',
license = 'MIT',
packages = find_packages(),

0 comments on commit f3b07df

Please sign in to comment.