-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
34 lines (28 loc) · 1.02 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
#!/usr/bin/env python
import os
import re
from setuptools import setup
def read(file_name):
with open(os.path.join(os.path.dirname(__file__), file_name)) as f:
return f.read()
def get_required_modules(file_name):
module_list = read(file_name).split()
return map(lambda x: re.split('==|>=|>|<', x)[0], module_list)
setup(
name="saltnanny",
version="0.2.3",
author="Dun and Bradstreet Inc.",
author_email="[email protected]",
description='Python Module that parses salt returns stored in an external job cache and logs output',
license="GPLv3",
keywords="Salt SaltStack Redis redis_return parse cache external",
url="https://github.com/dandb/salt-nanny",
packages=['saltnanny'],
scripts=['salt-nanny'],
include_package_data=True,
cmdclass={},
install_requires=get_required_modules('requirements.txt'),
tests_require=get_required_modules('tests/requirements.txt'),
test_suite="nose.collector",
long_description=read('README.rst') + '\n\n' + read('CHANGES')
)