| garciadeblas | cd520d3 | 2017-03-09 16:28:59 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| garciadeblas | e5ef517 | 2017-04-20 14:46:29 +0200 | [diff] [blame] | 3 | #from distutils.core import setup |
| 4 | #from distutils.command.install_data import install_data |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 5 | from setuptools import setup |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 6 | from os import system |
| garciadeblas | cd520d3 | 2017-03-09 16:28:59 +0100 | [diff] [blame] | 7 | #import glob |
| 8 | |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 9 | _name = 'osm_ro' |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 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 = [ |
| Anderson Bravalheri | 0446cd5 | 2018-08-17 15:26:19 +0100 | [diff] [blame] | 18 | "six", # python 2 x 3 compatibility |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 19 | "PyYAML", |
| 20 | "bottle", |
| garciadeblas | cf92004 | 2017-09-14 16:17:39 +0200 | [diff] [blame] | 21 | #"mysqlclient", |
| 22 | #"MySQLdb", |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 23 | "jsonschema", |
| 24 | "paramiko", |
| 25 | "argcomplete", |
| 26 | "requests", |
| 27 | "logutils", |
| tierno | b4c2239 | 2017-06-14 12:55:38 +0200 | [diff] [blame] | 28 | "python-openstackclient", |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 29 | "python-novaclient", |
| 30 | "python-keystoneclient", |
| 31 | "python-glanceclient", |
| 32 | "python-neutronclient", |
| 33 | "python-cinderclient", |
| garciadeblas | cf92004 | 2017-09-14 16:17:39 +0200 | [diff] [blame] | 34 | #"pyvcloud", |
| 35 | #"progressbar", |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 36 | "prettytable", |
| garciadeblas | cf92004 | 2017-09-14 16:17:39 +0200 | [diff] [blame] | 37 | #"pyvmomi", |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 38 | "boto", |
| garciadeblas | cf92004 | 2017-09-14 16:17:39 +0200 | [diff] [blame] | 39 | #"lib_osm_openvim", |
| 40 | #"osm_im", |
| Igor D.C | bcb6787 | 2017-10-12 10:54:21 +0000 | [diff] [blame] | 41 | "pycrypto", |
| tierno | 9202102 | 2018-09-12 16:29:23 +0200 | [diff] [blame] | 42 | "netaddr", |
| garciadeblas | 06e6c39 | 2017-03-28 15:42:20 +0200 | [diff] [blame] | 43 | ] |
| 44 | |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 45 | setup(name=_name, |
| tierno | 1f7d9d8 | 2018-10-01 15:43:57 +0200 | [diff] [blame] | 46 | version_command=('git describe --match v*', 'pep440-git-full'), |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 47 | description = _description, |
| 48 | long_description = open('README.rst').read(), |
| 49 | author = _author, |
| 50 | author_email = _author_email, |
| 51 | maintainer = _maintainer, |
| 52 | maintainer_email = _maintainer_email, |
| 53 | url = _url, |
| 54 | license = _license, |
| 55 | packages = [_name], |
| 56 | #packages = ['osm_ro', 'osm_roclient'], |
| 57 | package_dir = {_name: _name}, |
| 58 | package_data = {_name: ['vnfs/*.yaml', 'vnfs/examples/*.yaml', |
| 59 | 'scenarios/*.yaml', 'scenarios/examples/*.yaml', |
| 60 | 'instance-scenarios/examples/*.yaml', 'database_utils/*', |
| garciadeblas | e5ef517 | 2017-04-20 14:46:29 +0200 | [diff] [blame] | 61 | 'scripts/*']}, |
| 62 | data_files = [('/etc/osm/', ['osm_ro/openmanod.cfg']), |
| 63 | ('/etc/systemd/system/', ['osm_ro/osm-ro.service']), |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 64 | ], |
| tierno | af0017f | 2018-09-12 16:25:42 +0200 | [diff] [blame] | 65 | scripts=['openmanod', 'openmano', 'osm_ro/scripts/service-openmano', 'osm_ro/scripts/openmano-report', |
| 66 | 'osm_ro/scripts/RO-start.sh'], |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 67 | install_requires=_requirements, |
| 68 | include_package_data=True, |
| garciadeblas | cf92004 | 2017-09-14 16:17:39 +0200 | [diff] [blame] | 69 | setup_requires=['setuptools-version-command'], |
| 70 | #test_suite='nose.collector', |
| garciadeblas | 2c290ca | 2017-04-06 03:12:51 +0200 | [diff] [blame] | 71 | ) |
| garciadeblas | cd520d3 | 2017-03-09 16:28:59 +0100 | [diff] [blame] | 72 | |