-
Notifications
You must be signed in to change notification settings - Fork 37
/
setup.py
95 lines (80 loc) · 2.52 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import multiprocessing # To make python setup.py test happy
import os
import shutil
import subprocess
from distutils.command.clean import clean
from setuptools import setup
multiprocessing
PACKAGE = 'ndkale'
__version__ = None
with open(os.path.join('kale', 'version.py')) as f:
source = f.read()
code = compile(source, os.path.join('kale', 'version.py'), 'exec')
exec(code) # set __version__
# -*- Hooks -*-
class CleanHook(clean):
def run(self):
clean.run(self)
def maybe_rm(path):
if os.path.exists(path):
shutil.rmtree(path)
if self.all:
maybe_rm('ndkale.egg-info')
maybe_rm('build')
maybe_rm('dist')
subprocess.call('rm -rf *.egg', shell=True)
subprocess.call('find . -name "*.pyc" -exec rm -rf {} \;',
shell=True)
# -*- Classifiers -*-
classes = """
Development Status :: 5 - Production/Stable
License :: OSI Approved :: BSD License
Topic :: System :: Distributed Computing
Topic :: Software Development :: Object Brokering
Programming Language :: Python
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: Implementation :: CPython
Operating System :: OS Independent
"""
classifiers = [s.strip() for s in classes.split('\n') if s]
# -*- %%% -*-
setup(
name=PACKAGE,
version=__version__,
description='Kale: A Task Worker Library from Nextdoor',
long_description=open('README.md').read(),
author='Nextdoor',
author_email='[email protected]',
url='https://github.com/Nextdoor/ndkale',
download_url='http://pypi.python.org/pypi/ndkale#downloads',
license='Apache License, Version 2',
keywords='kale nextdoor taskworker sqs python',
packages=['kale'],
tests_require=[
'mock==2.0.0',
'nose==1.3.7',
'moto==1.3.15.dev122',
'MarkupSafe==1.1.1',
'Jinja2==2.10.3',
'zipp==0.6.0',
'ecdsa==0.14.1',
],
test_suite='nose.collector',
install_requires=[
'boto3>=1.10.36,<1.15',
'pycryptodome>=3.6.6,<4.0',
'pyyaml>=5.2,<6.0',
'setuptools>=41.0.1,<50',
'six>=1.11.0,<2.0',
'future>=0.18.2,<1.0',
],
classifiers=classifiers,
cmdclass={'clean': CleanHook},
)