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