2011-11-14 11:16:28 +00:00
|
|
|
"""
|
|
|
|
rq is a simple, lightweight, library for creating background jobs, and
|
|
|
|
processing them.
|
|
|
|
"""
|
2011-11-28 13:06:51 +00:00
|
|
|
import sys
|
2011-11-28 11:10:15 +00:00
|
|
|
import os
|
2012-05-15 06:37:10 +00:00
|
|
|
from setuptools import setup, find_packages
|
2011-11-28 11:10:15 +00:00
|
|
|
|
2012-03-28 20:15:51 +00:00
|
|
|
|
2011-11-28 11:10:15 +00:00
|
|
|
def get_version():
|
|
|
|
basedir = os.path.dirname(__file__)
|
|
|
|
with open(os.path.join(basedir, 'rq/version.py')) as f:
|
2013-08-20 10:01:10 +00:00
|
|
|
locals = {}
|
|
|
|
exec(f.read(), locals)
|
|
|
|
return locals['VERSION']
|
2011-11-28 11:10:15 +00:00
|
|
|
raise RuntimeError('No version info found.')
|
2011-11-14 11:16:28 +00:00
|
|
|
|
2012-03-28 20:15:51 +00:00
|
|
|
|
2011-11-28 13:06:51 +00:00
|
|
|
def get_dependencies():
|
2014-05-07 17:35:46 +00:00
|
|
|
deps = ['redis >= 2.7.0']
|
2011-11-28 13:06:51 +00:00
|
|
|
if sys.version_info < (2, 7) or \
|
2012-03-22 13:51:27 +00:00
|
|
|
(sys.version_info >= (3, 0) and sys.version_info < (3, 1)):
|
|
|
|
deps += ['importlib']
|
|
|
|
if sys.version_info < (2, 7) or \
|
|
|
|
(sys.version_info >= (3, 0) and sys.version_info < (3, 2)):
|
2011-11-28 13:06:51 +00:00
|
|
|
deps += ['argparse']
|
|
|
|
return deps
|
|
|
|
|
2011-11-14 11:16:28 +00:00
|
|
|
setup(
|
|
|
|
name='rq',
|
2011-11-28 11:10:15 +00:00
|
|
|
version=get_version(),
|
2011-11-14 11:16:28 +00:00
|
|
|
url='https://github.com/nvie/rq/',
|
|
|
|
license='BSD',
|
|
|
|
author='Vincent Driessen',
|
|
|
|
author_email='vincent@3rdcloud.com',
|
2011-11-28 13:07:12 +00:00
|
|
|
description='RQ is a simple, lightweight, library for creating background '
|
2011-11-14 11:16:28 +00:00
|
|
|
'jobs, and processing them.',
|
|
|
|
long_description=__doc__,
|
2013-10-29 10:10:39 +00:00
|
|
|
packages=find_packages(exclude=['tests']),
|
2011-11-14 11:16:28 +00:00
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
platforms='any',
|
2011-11-28 13:06:51 +00:00
|
|
|
install_requires=get_dependencies(),
|
2012-05-04 07:49:18 +00:00
|
|
|
entry_points='''\
|
|
|
|
[console_scripts]
|
|
|
|
rqworker = rq.scripts.rqworker:main
|
|
|
|
rqinfo = rq.scripts.rqinfo:main
|
|
|
|
''',
|
2011-11-14 11:16:28 +00:00
|
|
|
classifiers=[
|
|
|
|
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
|
2011-11-28 11:09:36 +00:00
|
|
|
#'Development Status :: 1 - Planning',
|
2011-11-28 11:11:09 +00:00
|
|
|
#'Development Status :: 2 - Pre-Alpha',
|
2013-01-23 19:49:14 +00:00
|
|
|
#'Development Status :: 3 - Alpha',
|
|
|
|
'Development Status :: 4 - Beta',
|
2011-11-28 11:09:36 +00:00
|
|
|
#'Development Status :: 5 - Production/Stable',
|
|
|
|
#'Development Status :: 6 - Mature',
|
|
|
|
#'Development Status :: 7 - Inactive',
|
2011-11-14 11:16:28 +00:00
|
|
|
'Intended Audience :: Developers',
|
2011-11-28 11:09:36 +00:00
|
|
|
'Intended Audience :: End Users/Desktop',
|
|
|
|
'Intended Audience :: Information Technology',
|
|
|
|
'Intended Audience :: Science/Research',
|
|
|
|
'Intended Audience :: System Administrators',
|
2011-11-14 11:16:28 +00:00
|
|
|
'License :: OSI Approved :: BSD License',
|
2011-11-28 11:09:36 +00:00
|
|
|
'Operating System :: POSIX',
|
|
|
|
'Operating System :: MacOS',
|
|
|
|
'Operating System :: Unix',
|
2011-11-14 11:16:28 +00:00
|
|
|
'Programming Language :: Python',
|
2014-03-10 22:16:43 +00:00
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 3',
|
2012-03-28 20:15:51 +00:00
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
2011-11-28 11:09:36 +00:00
|
|
|
'Topic :: Internet',
|
|
|
|
'Topic :: Scientific/Engineering',
|
|
|
|
'Topic :: System :: Distributed Computing',
|
|
|
|
'Topic :: System :: Systems Administration',
|
|
|
|
'Topic :: System :: Monitoring',
|
|
|
|
|
2011-11-14 11:16:28 +00:00
|
|
|
]
|
|
|
|
)
|