forked from cameronmaske/celery-once
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·52 lines (45 loc) · 1.43 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
with open('README.rst') as f:
readme = f.read()
requirements = [
"celery",
"redis>=2.10.2"
]
__version__ = ''
with open('celery_once/__init__.py', 'r') as fd:
reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
for line in fd:
m = reg.match(line)
if m:
__version__ = m.group(1)
break
if not __version__:
raise RuntimeError('Cannot find version information')
setup(
name='celery_once',
version=__version__,
description='Allows you to prevent multiple execution and queuing of celery tasks.',
long_description=readme,
author='Cameron Maske',
author_email='[email protected]',
url='https://github.com/cameronmaske/celery-once',
packages=find_packages(),
install_requires=requirements,
license="BSD",
keywords='celery, mutex, once, lock, redis',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: System :: Distributed Computing'
],
)