rq/setup.py

90 lines
3.0 KiB
Python
Raw Normal View History

"""
rq is a simple, lightweight, library for creating background jobs, and
processing them.
"""
import os
2012-05-15 06:37:10 +00:00
from setuptools import setup, find_packages
2012-03-28 20:15:51 +00:00
def get_version():
basedir = os.path.dirname(__file__)
2017-08-31 08:45:26 +00:00
try:
with open(os.path.join(basedir, 'rq/version.py')) as f:
locals = {}
exec(f.read(), locals)
return locals['VERSION']
except FileNotFoundError:
raise RuntimeError('No version info found.')
2012-03-28 20:15:51 +00:00
def get_requirements():
basedir = os.path.dirname(__file__)
try:
with open(os.path.join(basedir, 'requirements.txt')) as f:
return f.readlines()
except FileNotFoundError:
raise RuntimeError('No requirements info found.')
setup(
name='rq',
version=get_version(),
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 '
'jobs, and processing them.',
long_description=__doc__,
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=get_requirements(),
python_requires='>=3.6',
entry_points={
'console_scripts': [
'rq = rq.cli:main',
# NOTE: rqworker/rqinfo are kept for backward-compatibility,
# remove eventually (TODO)
'rqinfo = rq.cli:info',
'rqworker = rq.cli:worker',
],
},
classifiers=[
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
2017-08-31 08:45:26 +00:00
# 'Development Status :: 1 - Planning',
# 'Development Status :: 2 - Pre-Alpha',
# 'Development Status :: 3 - Alpha',
# 'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
2017-08-31 08:45:26 +00:00
# 'Development Status :: 6 - Mature',
# 'Development Status :: 7 - Inactive',
'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',
'License :: OSI Approved :: BSD License',
2011-11-28 11:09:36 +00:00
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
2017-07-31 06:48:38 +00:00
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
2020-01-04 03:17:34 +00:00
'Programming Language :: Python :: 3.8',
2021-05-17 07:00:00 +00:00
'Programming Language :: Python :: 3.9',
2023-01-30 04:49:40 +00:00
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
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',
]
)