Skip to content
Snippets Groups Projects
Commit 6bc347af authored by Silvia Almagia's avatar Silvia Almagia
Browse files

Revert "Revert "Removing OpenNebula code""

This reverts commit 6bbe485f.


Requested by TSC

Change-Id: I8bf7f51859a472ff47f27c1d3a67dbcb3ca930ec
parent 6bbe485f
No related branches found
Tags v11.0.0
No related merge requests found
#!/usr/bin/env python3
# Copyright ETSI Contributors and Others.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
#######################################################################################
# Copyright ETSI Contributors and Others.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#######################################################################################
This diff is collapsed.
# Copyright ETSI Contributors and Others.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
PyYAML
requests
netaddr
# untangle
pyone
oca
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
##
# Copyright 2017 Telefonica Digital Spain S.L.U.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
from setuptools import setup
_name = "osm_rovim_opennebula"
_version_command = ("git describe --match v* --tags --long --dirty", "pep440-git-full")
_description = "OSM ro vim plugin for opennebula"
_author = "OSM Support"
_author_email = "osmsupport@etsi.org"
_maintainer = "OSM Support"
_maintainer_email = "osmsupport@etsi.org"
_license = "Apache 2.0"
_url = "https://osm.etsi.org/gitweb/?p=osm/RO.git;a=summary"
_readme = """
===========
osm-rovim_opennebula
===========
osm-ro pluging for opennebula VIM
"""
setup(
name=_name,
description=_description,
long_description=_readme,
version_command=_version_command,
author=_author,
author_email=_author_email,
maintainer=_maintainer,
maintainer_email=_maintainer_email,
url=_url,
license=_license,
packages=[_name],
include_package_data=True,
setup_requires=["setuptools-version-command"],
entry_points={
"osm_rovim.plugins": [
"rovim_opennebula = osm_rovim_opennebula.vimconn_opennebula:vimconnector"
],
},
)
#
# Copyright 2017 Telefonica Digital Spain S.L.U.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
[DEFAULT]
X-Python3-Version : >= 3.5
......@@ -32,7 +32,6 @@ tox -e dist_ro_sdn_onos_vpls &
tox -e dist_ro_vim_aws &
tox -e dist_ro_vim_azure &
tox -e dist_ro_vim_fos &
#tox -e dist_ro_vim_opennebula &
tox -e dist_ro_vim_openstack &
tox -e dist_ro_vim_openvim &
tox -e dist_ro_vim_vmware &
......@@ -52,12 +51,10 @@ cp RO-plugin/deb_dist/python3-osm-ro-plugin_*.deb deb_dist/
# NG-RO
cp NG-RO/deb_dist/python3-osm-ng-ro_*.deb deb_dist/
# VIM plugins: vmware, openstack, AWS, fos, azure, Opennebula, GCP
# VIM plugins: vmware, openstack, AWS, fos, azure, GCP
for vim_plugin in RO-VIM-*
do
if [ "$vim_plugin" != "RO-VIM-opennebula" ]; then
cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/
fi
cp ${vim_plugin}/deb_dist/python3-osm-rovim*.deb deb_dist/
done
# SDN plugins: DynPac, Ietfl2vpn, Onosof Floodlightof
......
......@@ -28,7 +28,6 @@
-r RO-VIM-aws/requirements.in
-r RO-VIM-azure/requirements.in
-r RO-VIM-fos/requirements.in
#-r RO-VIM-opennebula/requirements.in
-r RO-VIM-openstack/requirements.in
-r RO-VIM-openvim/requirements.in
-r RO-VIM-vmware/requirements.in
......
......@@ -57,7 +57,6 @@ commands =
black --check --diff RO-VIM-aws
black --check --diff RO-VIM-azure
black --check --diff RO-VIM-fos
# black --check --diff RO-VIM-opennebula
black --check --diff RO-VIM-openstack
black --check --diff RO-VIM-openvim
black --check --diff RO-VIM-vmware
......@@ -116,9 +115,6 @@ commands =
# RO-VIM-fos
- nose2 -C --coverage RO-VIM-fos/osm_rovim_fos
sh -c 'mv .coverage .coverage_rovim_fos'
# RO-VIM-opennebula
# nose2 -C --coverage RO-VIM-opennebula/osm_rovim_opennebula -s RO-VIM-opennebula/osm_rovim_opennebula
# sh -c 'mv .coverage .coverage_rovim_opennebula'
# RO-VIM-openstack
- nose2 -C --coverage RO-VIM-openstack/osm_rovim_openstack -s RO-VIM-openstack/osm_rovim_openstack
sh -c 'mv .coverage .coverage_rovim_openstack'
......@@ -132,7 +128,7 @@ commands =
- nose2 -C --coverage RO-VIM-gcp/osm_rovim_gcp
sh -c 'mv .coverage .coverage_rovim_gcp'
# Combine results and generate reports
coverage combine .coverage_ng_ro .coverage_ro_plugin .coverage_rosdn_arista_cloudvision .coverage_rosdn_dpb .coverage_rosdn_dynpac .coverage_rosdn_floodlightof .coverage_rosdn_ietfl2vpn .coverage_rosdn_juniper_contrail .coverage_rosdn_odlof .coverage_rosdn_onos_vpls .coverage_rosdn_onosof .coverage_rovim_aws .coverage_rovim_azure .coverage_rovim_fos .coverage_rovim_openvim .coverage_rovim_gcp # .coverage_rovim_openstack .coverage_rovim_vmware .coverage_rovim_opennebula
coverage combine .coverage_ng_ro .coverage_ro_plugin .coverage_rosdn_arista_cloudvision .coverage_rosdn_dpb .coverage_rosdn_dynpac .coverage_rosdn_floodlightof .coverage_rosdn_ietfl2vpn .coverage_rosdn_juniper_contrail .coverage_rosdn_odlof .coverage_rosdn_onos_vpls .coverage_rosdn_onosof .coverage_rovim_aws .coverage_rovim_azure .coverage_rovim_fos .coverage_rovim_openvim .coverage_rovim_gcp # .coverage_rovim_openstack .coverage_rovim_vmware
coverage report --omit='*tests*'
coverage html -d ./cover --omit='*tests*'
coverage xml -o coverage.xml --omit='*tests*'
......@@ -158,7 +154,6 @@ commands =
- flake8 RO-VIM-aws/osm_rovim_aws/ RO-VIM-aws/setup.py
- flake8 RO-VIM-azure/osm_rovim_azure/ RO-VIM-azure/setup.py
- flake8 RO-VIM-fos/osm_rovim_fos/ RO-VIM-fos/setup.py
# - flake8 RO-VIM-opennebula/osm_rovim_opennebula/ RO-VIM-opennebula/setup.py
- flake8 RO-VIM-openstack/osm_rovim_openstack/ RO-VIM-openstack/setup.py
- flake8 RO-VIM-openvim/osm_rovim_openvim/ RO-VIM-openvim/setup.py
- flake8 RO-VIM-vmware/osm_rovim_vmware/vimconn_vmware.py RO-VIM-vmware/osm_rovim_vmware/tests/test_vimconn_vmware.py RO-VIM-vmware/setup.py
......@@ -188,7 +183,6 @@ commands =
- pylint -E RO-VIM-aws/osm_rovim_aws
- pylint -E RO-VIM-azure/osm_rovim_azure
- pylint -E RO-VIM-fos/osm_rovim_fos
# - pylint -E RO-VIM-opennebula/osm_rovim_opennebula
- pylint -E RO-VIM-openstack/osm_rovim_openstack
- pylint -E RO-VIM-openvim/osm_rovim_openvim
- pylint -E RO-VIM-vmware/osm_rovim_vmware
......@@ -388,17 +382,6 @@ commands =
sh -c 'cd deb_dist/osm-rovim-fos*/ && dpkg-buildpackage -rfakeroot -uc -us'
whitelist_externals = sh
#######################################################################################
[testenv:dist_ro_vim_opennebula]
deps = {[testenv]deps}
-r{toxinidir}/requirements-dist.txt
skip_install = true
changedir = {toxinidir}/RO-VIM-opennebula
commands =
sh -c 'rm -rf deb_dist dist osm_rovim_opennebula.egg-info osm_rovim_opennebula*.tar.gz'
python3 setup.py --command-packages=stdeb.command sdist_dsc
sh -c 'cd deb_dist/osm-rovim-opennebula*/ && dpkg-buildpackage -rfakeroot -uc -us'
whitelist_externals = sh
#######################################################################################
[testenv:dist_ro_vim_openstack]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment