[MOD/onboarding] Switch to v3 component spec
[dcaegen2/platform.git] / mod / onboardingapi / setup.py
1 # ============LICENSE_START=======================================================
2 # org.onap.dcae
3 # ================================================================================
4 # Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
5 # Copyright 2020 Deutsche Telekom. All rights reserved.
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #      http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END=========================================================
19 #
20 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
21
22 # -*- coding: utf-8 -*-
23 import os
24 from setuptools import setup, find_packages
25
26
27 # extract __version__ from version file. importing dcae_cli will lead to install failures
28 setup_dir = os.path.dirname(__file__)
29 with open(os.path.join(setup_dir, 'dcae_cli', '_version.py')) as file:
30     globals_dict = dict()
31     exec(file.read(), globals_dict)
32     __version__ = globals_dict['__version__']
33
34
35 setup(
36     name = "onap-dcae-cli",
37     version = __version__,
38     packages = find_packages(),
39     author = "Michael Hwang, Paul Triantafyllou, Tommy Carpenter",
40     description = ("DCAE component on-boarding utility"),
41     entry_points="""
42     [console_scripts]
43     dcae_cli=dcae_cli.cli:cli
44     """,
45     setup_requires=['pytest-runner'],
46     install_requires=[
47                       'Werkzeug==0.16.1',
48                       'python-consul<1.0.0',
49                       'six',
50                       'sqlalchemy==1.3.23',
51                       'SQLAlchemy-Utils',
52                       'click>=6.0,<7.0',
53                       'jsonschema',
54                       'terminaltables',
55                       'psycopg2-binary==2.8.5',
56                       'genson',
57                       'flask-restplus',
58                       'onap-dcae-discovery-client>=2.0.0',
59                       'onap-dcae-dockering>=1.4.1,<2.0.0'
60                       ],
61     tests_require=['pytest',
62                    'mock'],
63     )