forked from pricingassistant/mrq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (58 loc) · 2.36 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from setuptools import setup # , find_packages
import os
def get_requirements():
reqs = []
for filename in ["requirements-base.txt", "requirements-dashboard.txt", "requirements-setuptools.txt"]:
with open(filename, "r") as f:
reqs += [x.strip() for x in f.readlines() if x.strip() and not x.strip().startswith("#")]
return reqs
def get_version():
basedir = os.path.dirname(__file__)
with open(os.path.join(basedir, 'mrq/version.py')) as f:
locals = {}
exec(f.read(), locals)
return locals['VERSION']
raise RuntimeError('No version info found.')
setup(
name="mrq",
include_package_data=True,
packages=['mrq', 'mrq.basetasks', 'mrq.bin', 'mrq.dashboard'], # find_packages(exclude=['tests', 'tests.tasks']),
version=get_version(),
description="A simple yet powerful distributed worker task queue in Python",
author="Pricing Assistant",
license='MIT',
author_email="[email protected]",
url="http://github.com/pricingassistant/mrq",
# download_url="http://chardet.feedparser.org/download/python3-chardet-1.0.1.tgz",
keywords=["worker", "task", "distributed", "queue", "asynchronous", "redis", "mongodb", "job", "processing"],
platforms='any',
entry_points={
'console_scripts': [
'mrq-worker = mrq.bin.mrq_worker:main',
'mrq-run = mrq.bin.mrq_run:main',
'mrq-dashboard = mrq.dashboard.app:main'
]
},
# dependency_links=[
# "http://github.com/mongodb/mongo-python-driver/archive/cb4adb2193a83413bc5545d89b7bbde4d6087761.zip#egg=pymongo-2.7rc1"
# ],
zip_safe=False,
install_requires=get_requirements(),
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
#'Development Status :: 1 - Planning',
#'Development Status :: 2 - Pre-Alpha',
#'Development Status :: 3 - Alpha',
'Development Status :: 4 - Beta',
#'Development Status :: 5 - Production/Stable',
#'Development Status :: 6 - Mature',
#'Development Status :: 7 - Inactive',
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Utilities"
],
long_description=open("README.md").read()
)