1
|
|
|
# -*- coding: utf-8 -*- |
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 st2reactor import __version__ |
24
|
|
|
|
25
|
|
|
ST2_COMPONENT = 'st2reactor' |
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='{} component'.format(ST2_COMPONENT), |
36
|
|
|
author='StackStorm', |
37
|
|
|
author_email='[email protected]', |
38
|
|
|
install_requires=install_reqs, |
39
|
|
|
dependency_links=dep_links, |
40
|
|
|
test_suite=ST2_COMPONENT, |
41
|
|
|
zip_safe=False, |
42
|
|
|
include_package_data=True, |
43
|
|
|
packages=find_packages(exclude=['setuptools', 'tests']), |
44
|
|
|
scripts=[ |
45
|
|
|
'bin/st2-rule-tester', |
46
|
|
|
'bin/st2-trigger-refire', |
47
|
|
|
'bin/st2rulesengine', |
48
|
|
|
'bin/st2sensorcontainer' |
49
|
|
|
] |
50
|
|
|
) |
51
|
|
|
|