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