5cb1fe901121a27094cf8476518abc7388e89a98
[osm/RO.git] / RO / setup.py
1 #!/usr/bin/env python3
2
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 # implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 # from distutils.core import setup
17 # from distutils.command.install_data import install_data
18 from setuptools import setup
19 from os import system
20 # import glob
21
22 _name = 'osm_ro'
23 _description = 'OSM Resource Orchestrator'
24 _author = 'ETSI OSM'
25 _author_email = 'alfonso.tiernosepulveda@telefonica.com'
26 _maintainer = 'garciadeblas'
27 _maintainer_email = 'gerardo.garciadeblas@telefonica.com'
28 _license = 'Apache 2.0'
29 _url = 'https://osm.etsi.org/gitweb/?p=osm/RO.git;a=summary'
30 _requirements = [
31 # TODO py3 revise
32 "osm-im",
33 "PyYAML",
34 "bottle",
35 "logutils",
36 "jsonschema",
37 "paramiko",
38 "mysqlclient",
39 #"MySQLdb",
40
41 # common to VIMS
42 "requests",
43 "netaddr", # openstack, aws, vmware
44 ]
45
46 setup(
47 name=_name,
48 version_command=('git -C .. describe --match v* --tags --long --dirty', 'pep440-git-full'),
49 description = _description,
50 long_description = open('README.rst').read(),
51 author = _author,
52 author_email = _author_email,
53 maintainer = _maintainer,
54 maintainer_email = _maintainer_email,
55 url = _url,
56 license = _license,
57 packages = [_name],
58 #packages = ['osm_ro', 'osm_roclient'],
59 package_dir = {_name: _name},
60 # package_data = {_name: ['vnfs/*.yaml', 'vnfs/examples/*.yaml',
61 # 'scenarios/*.yaml', 'scenarios/examples/*.yaml',
62 # 'instance-scenarios/examples/*.yaml', 'database_utils/*',
63 # 'scripts/*']},
64 # data_files = [('/etc/osm/', ['osm_ro/openmanod.cfg']),
65 # ('/etc/systemd/system/', ['osm_ro/osm-ro.service']),
66 # ],
67 scripts=['osm_ro/scripts/RO-start.sh'
68 #'openmanod', 'openmano', 'osm_ro/scripts/service-openmano', 'osm_ro/scripts/openmano-report',
69 ],
70 dependency_links=["git+https://osm.etsi.org/gerrit/osm/IM.git#egg=osm-im"],
71 install_requires=_requirements,
72 include_package_data=True,
73 setup_requires=['setuptools-version-command'],
74 #test_suite='nose.collector',
75 )
76