Restructuring code in osm_ro folder, and setup based on MANIFEST
[osm/RO.git] / setup.py
1 #!/usr/bin/env python
2
3 from setuptools import setup
4 from setuptools.command.install import install
5 from os import system
6 #import glob
7
8 _name = 'osm_ro'
9 _version = '1.0.0'
10 _description = 'OSM Resource Orchestrator'
11 _author = 'ETSI OSM'
12 _author_email = 'alfonso.tiernosepulveda@telefonica.com'
13 _maintainer = 'garciadeblas'
14 _maintainer_email = 'gerardo.garciadeblas@telefonica.com'
15 _license = 'Apache 2.0'
16 _url = 'https://osm.etsi.org/gitweb/?p=osm/RO.git;a=summary'
17 _requirements = [
18 "PyYAML",
19 "bottle",
20 "MySQL-python",
21 "jsonschema",
22 "paramiko",
23 "argcomplete",
24 "requests",
25 "logutils",
26 "python-novaclient",
27 "python-keystoneclient",
28 "python-glanceclient",
29 "python-neutronclient",
30 "python-cinderclient",
31 "pyvcloud",
32 "progressbar",
33 "prettytable",
34 "pyvmomi",
35 "boto",
36 ]
37
38 class ROInstaller(install):
39 def run(self):
40 cmd = 'echo "Running install script"'
41 system(cmd)
42 install.run(self)
43
44 setup(name=_name,
45 version = _version,
46 description = _description,
47 long_description = open('README.rst').read(),
48 author = _author,
49 author_email = _author_email,
50 maintainer = _maintainer,
51 maintainer_email = _maintainer_email,
52 url = _url,
53 license = _license,
54 packages = [_name],
55 #packages = ['osm_ro', 'osm_roclient'],
56 package_dir = {_name: _name},
57 package_data = {_name: ['vnfs/*.yaml', 'vnfs/examples/*.yaml',
58 'scenarios/*.yaml', 'scenarios/examples/*.yaml',
59 'instance-scenarios/examples/*.yaml', 'database_utils/*',
60 'scripts/install-openmano*.sh']},
61 data_files = [('/etc/osm/', ['openmanod.cfg']),
62 ('/etc/systemd/system/', ['osm-ro.service']),
63 ],
64 scripts=['openmanod.py', 'openmano', 'osm_ro/scripts/service-openmano.sh', 'osm_ro/scripts/openmano-report.sh',],
65 install_requires=_requirements,
66 include_package_data=True,
67 cmdclass = {'install': ROInstaller},
68 )
69