SHELL := /bin/bash
-all: connectors build package
+all: pypackage debpackage
prepare:
mkdir -p build
#cd build; mv openmanod.py openmanod
cp openmano build/
cp openmanod.cfg build/
+ cp requirements.txt build/
+ cp README.rst build/
cp openmano.service build/
cp -r vnfs build/
cp -r scenarios build/
cd build/scripts; mv service-openmano.sh service-openmano; mv openmano-report.sh openmano-report
cp -r database_utils build/
-connectors:
+connectors: prepare
+ # python-novaclient is required for that
rm -f build/openmanolinkervimconn.py
cd build; for i in `ls vimconn_*.py |sed "s/\.py//"` ; do echo "import $$i" >> openmanolinkervimconn.py; done
python build/openmanolinkervimconn.py
rm -f build/openmanolinkervimconn.py
-build: prepare connectors
+build: prepare
python -m py_compile build/*.py
-clean:
- rm -rf build
- #find build -name '*.pyc' -delete
- #find build -name '*.pyo' -delete
-
-pip:
+pypackage: build
cd build; ./setup.py sdist
- #cp dist/* /root/artifacts/...
+ #cp build/dist/* /root/artifacts/...
+
+debpackage: build
+ echo "Nothing to be done yet"
#fpm -s python -t deb build/setup.py
+snappackage:
+ echo "Nothing to be done yet"
+
test:
./test/basictest.sh --force --insert-bashrc --install-openvim --init-openvim
+clean:
+ rm -rf build
+ #find build -name '*.pyc' -delete
+ #find build -name '*.pyo' -delete
--- /dev/null
+===========
+osm-ro
+===========
+
+osm-ro is the Resource Orchestrator for OSM, dealing with resource operations
+against different VIMs such as Openstack, VMware's vCloud Director, openvim
+and AWS.
+
--- /dev/null
+--index-url https://pypi.python.org/simple/
+
+PyYAML==3.10
+bottle==0.12.7
+PyMySQL==0.7.2
+jsonschema==2.5.1
+paramiko==1.16.0
+argcomplete==0.8.1
+requests==2.13.0
+logutils==0.3.3
+python-cinderclient==1.6.0
+python-glanceclient==2.0.0
+python-keystoneclient==2.3.1
+python-neutronclient==4.1.1
+python-novaclient==3.3.1
+pyvcloud==16
+pyvmomi==6.5
+progressbar==2.3
+prettytable==0.7.2
+boto==2.38.0
+
#!/usr/bin/env python
-from distutils.core import setup
+from setuptools import setup
#import glob
+requirements = [
+ "PyYAML",
+ "bottle",
+ "mysqldb",
+ "jsonschema",
+ "paramiko",
+ "argcomplete",
+ "requests",
+ "logutils",
+ "pip",
+ "novaclient",
+ "keystoneclient",
+ "glanceclient",
+ "neutronclient",
+ "cinderclient",
+ "boto",
+ "pyvcloud",
+ "progressbar",
+ "prettytable",
+ "pyvmomi",
+]
+
setup(name='osm-ro',
version='1.0',
description='OSM Resource Orchestrator',
+ long_description=open('README.rst').read(),
author='ETSI OSM',
author_email='alfonso.tiernosepulveda@telefonica.com',
maintainer='garciadeblas',
'vmwarecli',
'vmwarerecli',
],
+ install_requires=requirements,
#package_data={'': ['vnfs', 'scenarios', 'instance-scenarios', 'database_utils/mano_db_structure.sql']}
data_files=[('/etc/osm/', ['openmanod.cfg']),
('/etc/systemd/system/', ['openmano.service']),