mirror of https://github.com/rq/rq.git
Use `redis.from_url()` for greater compatibility.
This lets us keep the redis-py version requirement back at 2.4.13.
This commit is contained in:
parent
eb00f69ced
commit
e90efc254b
|
@ -47,7 +47,7 @@ def setup_default_arguments(args, settings):
|
||||||
|
|
||||||
def setup_redis(args):
|
def setup_redis(args):
|
||||||
if args.url is not None:
|
if args.url is not None:
|
||||||
redis_conn = redis.Redis.from_url(args.url, db=args.db)
|
redis_conn = redis.from_url(args.url, db=args.db)
|
||||||
else:
|
else:
|
||||||
redis_conn = redis.Redis(host=args.host, port=args.port, db=args.db,
|
redis_conn = redis.Redis(host=args.host, port=args.port, db=args.db,
|
||||||
password=args.password)
|
password=args.password)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -17,7 +17,7 @@ def get_version():
|
||||||
|
|
||||||
|
|
||||||
def get_dependencies():
|
def get_dependencies():
|
||||||
deps = ['redis >= 2.6.2', 'times']
|
deps = ['redis >= 2.4.13', 'times']
|
||||||
deps += ['logbook'] # should be soft dependency?
|
deps += ['logbook'] # should be soft dependency?
|
||||||
if sys.version_info < (2, 7) or \
|
if sys.version_info < (2, 7) or \
|
||||||
(sys.version_info >= (3, 0) and sys.version_info < (3, 1)):
|
(sys.version_info >= (3, 0) and sys.version_info < (3, 1)):
|
||||||
|
|
Loading…
Reference in New Issue