-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·54 lines (48 loc) · 2.42 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
#!/usr/bin/env python
import os
import uuid
from setuptools import setup, find_packages
from pip.req import parse_requirements
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
def read_version():
rec = read('hadoopinspector/_version.py')
fields = rec.split('=')
version = fields[1].strip()[1:-1]
assert version.count('.') == 2
return version
version = read_version()
DESCRIPTION = 'A measurement and inspection tool to manage Hadoop data quality, manageability and health'
REQUIREMENTS = [str(ir.req) for ir in parse_requirements('requirements.txt', session=uuid.uuid1())]
setup(name = 'hadoop-inspector',
version = version ,
description = DESCRIPTION ,
long_description=(read('README.rst') + '\n\n' +
read('CHANGELOG.rst')),
keywords = "data quality management health",
author = 'Will Farmer, Ken Farmer' ,
author_email = '[email protected], [email protected]',
url = 'http://github.com/willzfarmer/HadoopInspector',
license = 'BSD' ,
classifiers = [
'Development Status :: 4 - Beta' ,
'Environment :: Console' ,
'Intended Audience :: Information Technology' ,
'Intended Audience :: Science/Research' ,
'License :: OSI Approved :: BSD License' ,
'Programming Language :: Python :: 2' ,
'Operating System :: POSIX' ,
'Topic :: Database' ,
'Topic :: Scientific/Engineering :: Information Analysis',
],
scripts = ['scripts/hadoopinspector_demogen.py',
'scripts/hadoopinspector_runner.py' ],
install_requires = REQUIREMENTS,
packages = find_packages(),
include_package_data = True,
entry_points = { 'console_scripts': [ 'hadoopinspector_server = hadoopinspector.scripts.hadoopinspector_server:run' ] },
package_data = { 'static': 'HadoopInspector/server/static',
'templates': 'HadoopInspector/server/templates' }
)