-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·29 lines (24 loc) · 848 Bytes
/
setup.py
File metadata and controls
executable file
·29 lines (24 loc) · 848 Bytes
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
#!/usr/bin/env python
import re
from setuptools import setup, find_packages
module_name = 'celery_tasks_ctl'
VERSIONFILE = "%s/_version.py" % module_name
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
matches = re.search(VSRE, verstrline, re.M)
if matches:
version = matches.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setup(
name=module_name,
version=version,
packages=find_packages(),
install_requires=['pika==0.9.13', 'celery==3.0.23', 'docopt==0.6.1',
'requests==1.1.0'],
author='Brendan Maguire',
author_email='maguire.brendan@gmail.com',
description='Celery Tasks Controller to list and revoke tasks',
long_description=open('README.rst').read(),
scripts=['bin/celery_tasks_ctl'],
)