1
|
|
|
#!/usr/bin/env python2.7 |
2
|
|
|
# Licensed to the StackStorm, Inc ('StackStorm') under one or more |
3
|
|
|
# contributor license agreements. See the NOTICE file distributed with |
4
|
|
|
# this work for additional information regarding copyright ownership. |
5
|
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0 |
6
|
|
|
# (the "License"); you may not use this file except in compliance with |
7
|
|
|
# the License. You may obtain a copy of the License at |
8
|
|
|
# |
9
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0 |
10
|
|
|
# |
11
|
|
|
# Unless required by applicable law or agreed to in writing, software |
12
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, |
13
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14
|
|
|
# See the License for the specific language governing permissions and |
15
|
|
|
# limitations under the License. |
16
|
|
|
|
17
|
|
|
import os.path |
18
|
|
|
|
19
|
|
|
from setuptools import setup, find_packages |
20
|
|
|
|
21
|
|
|
from dist_utils import fetch_requirements |
22
|
|
|
from dist_utils import apply_vagrant_workaround |
23
|
|
|
from st2client import __version__ |
24
|
|
|
|
25
|
|
|
ST2_COMPONENT = 'st2client' |
26
|
|
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) |
27
|
|
|
REQUIREMENTS_FILE = os.path.join(BASE_DIR, 'requirements.txt') |
28
|
|
|
|
29
|
|
|
install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE) |
30
|
|
|
|
31
|
|
|
apply_vagrant_workaround() |
32
|
|
|
setup( |
33
|
|
|
name=ST2_COMPONENT, |
34
|
|
|
version=__version__, |
35
|
|
|
description=('Python client library and CLI for the StackStorm (st2) event-driven ' |
36
|
|
|
'automation platform.'), |
37
|
|
|
author='StackStorm', |
38
|
|
|
author_email='[email protected]', |
39
|
|
|
license='Apache License (2.0)', |
40
|
|
|
classifiers=[ |
41
|
|
|
'Development Status :: 5 - Production/Stable', |
42
|
|
|
'Intended Audience :: Information Technology', |
43
|
|
|
'Intended Audience :: Developers', |
44
|
|
|
'Intended Audience :: System Administrators', |
45
|
|
|
'License :: OSI Approved :: Apache Software License', |
46
|
|
|
'Operating System :: POSIX :: Linux', |
47
|
|
|
'Programming Language :: Python', |
48
|
|
|
'Programming Language :: Python :: 2', |
49
|
|
|
'Programming Language :: Python :: 2.7' |
50
|
|
|
], |
51
|
|
|
install_requires=install_reqs, |
52
|
|
|
dependency_links=dep_links, |
53
|
|
|
test_suite=ST2_COMPONENT, |
54
|
|
|
zip_safe=False, |
55
|
|
|
include_package_data=True, |
56
|
|
|
packages=find_packages(exclude=['setuptools', 'tests']), |
57
|
|
|
entry_points={ |
58
|
|
|
'console_scripts': [ |
59
|
|
|
'st2 = st2client.shell:main' |
60
|
|
|
] |
61
|
|
|
} |
62
|
|
|
) |
63
|
|
|
|