Update dependencies accordingly

main
Vincent Driessen 13 years ago
parent 1dba21f176
commit 2300338893

@ -2,6 +2,7 @@
rq is a simple, lightweight, library for creating background jobs, and rq is a simple, lightweight, library for creating background jobs, and
processing them. processing them.
""" """
import sys
import os import os
from setuptools import setup from setuptools import setup
@ -13,6 +14,14 @@ def get_version():
return VERSION return VERSION
raise RuntimeError('No version info found.') raise RuntimeError('No version info found.')
def get_dependencies():
deps = ['redis']
deps += ['logbook', 'procname'] # should be soft dependencies
if sys.version_info < (2, 7) or \
sys.version_info >= (3, 0) and sys.version_info < (3, 2):
deps += ['argparse']
return deps
setup( setup(
name='rq', name='rq',
version=get_version(), version=get_version(),
@ -27,7 +36,7 @@ setup(
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False,
platforms='any', platforms='any',
install_requires=['redis', 'logbook', 'procname'], install_requires=get_dependencies(),
scripts=['bin/rqinfo', 'bin/rqworker'], scripts=['bin/rqinfo', 'bin/rqworker'],
classifiers=[ classifiers=[
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers # As from http://pypi.python.org/pypi?%3Aaction=list_classifiers

Loading…
Cancel
Save