-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
78 lines (58 loc) · 1.32 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
"""
Setup script.
:author: xarbulu
:organization: SUSE LLC
:contact: [email protected]
:since: 2018-11-15
"""
import os
from setuptools import find_packages
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import shaptools
def read(fname):
"""
Utility function to read the README file. README file is used to create
the long description.
"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
VERSION = shaptools.__version__
NAME = "shaptools"
DESCRIPTION = "API to expose SAP HANA functionalities"
AUTHOR = "xarbulu"
AUTHOR_EMAIL = "[email protected]"
URL = ""
LICENSE = "Apache-2.0"
CLASSIFIERS = [
]
SCRIPTS = ['bin/shapcli']
DEPENDENCIES = read('requirements.txt').split()
PACKAGE_DATA = {
'shaptools': ['support/ssh_askpass']
}
DATA_FILES = []
SETUP_PARAMS = dict(
name=NAME,
version=VERSION,
description=DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
long_description=read('README.md'),
packages=find_packages(),
package_data=PACKAGE_DATA,
license=LICENSE,
scripts=SCRIPTS,
data_files=DATA_FILES,
install_requires=DEPENDENCIES,
classifiers=CLASSIFIERS,
)
def main():
"""
Setup.py main.
"""
setup(**SETUP_PARAMS)
if __name__ == "__main__":
main()