<?xml version="1.0"?>
<!--
-Copyright (c) 2016 GigaSpaces Technologies Ltd. All rights reserved.
+Copyright (c) 2018 Orange. All rights reserved.
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
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <packaging>pom</packaging>
-
<parent>
<groupId>org.onap.oparent</groupId>
<artifactId>oparent</artifactId>
</parent>
<groupId>org.onap.vnfsdk.ice</groupId>
- <artifactId>vnf-sdk-ice-scripts</artifactId>
+ <artifactId>vnf-sdk-ice</artifactId>
+ <packaging>pom</packaging>
+
+ <name>vnfsdk-ice</name>
+ <description>HEAT template validation</description>
- <name>vnfsdk-ice-scripts</name>
- <description>python scripts for HEAT template validation</description>
- <properties>
- <sonar.language>py</sonar.language>
- <sonar.pluginName>Python</sonar.pluginName>
- <sonar.inclusions>**/*.py</sonar.inclusions>
- <sonar.skip>false</sonar.skip>
- </properties>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <appendAssemblyId>false</appendAssemblyId>
- <descriptors>
- <descriptor>assembly.xml</descriptor>
- </descriptors>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
+ <modules>
+ <module>validation-scripts</module>
+ </modules>
</project>
</formats>
<fileSets>
<fileSet>
+ <directory>.</directory>
<includes>
- <include>validation-scripts/LICENSE.txt</include>
- <include>validation-scripts/README.md</include>
+ <include>LICENSE.txt</include>
+ <include>README.md</include>
<include>requirements.txt</include>
- <include>setup.py</include>
- <include>validation-scripts/ice_validator/**</include>
+ <include>tox.ini</include>
+ <include>*.py</include>
+ <include>ice_validator/**/*.py</include>
</includes>
<excludes>
<exclude>**/*.pyc</exclude>
--- /dev/null
+<?xml version="1.0"?>
+<!--
+Copyright (c) 2018 Orange. All rights reserved.
+
+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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.onap.oparent</groupId>
+ <artifactId>oparent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../../oparent</relativePath>
+ </parent>
+
+ <groupId>org.onap.vnfsdk.ice</groupId>
+ <artifactId>vnf-sdk-ice-scripts</artifactId>
+ <packaging>pom</packaging>
+
+ <name>vnfsdk-ice-scripts</name>
+ <description>python scripts for HEAT template validation</description>
+ <properties>
+ <sonar.language>py</sonar.language>
+ <sonar.pluginName>Python</sonar.pluginName>
+ <sonar.inclusions>**/*.py</sonar.inclusions>
+ <sonar.skip>false</sonar.skip>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>assembly.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
--- /dev/null
+#!/usr/bin/env python\r
+\r
+#\r
+# Copyright (c) 2018 Orange. All rights reserved.\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License"); you may\r
+# not use this file except in compliance with the License. You may obtain\r
+# a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\r
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\r
+# License for the specific language governing permissions and limitations\r
+# under the License.\r
+#\r
+\r
+import os\r
+from setuptools import setup, find_packages\r
+import sys\r
+\r
+if sys.version_info < (2, 7):\r
+ sys.exit('VNF SDK requires Python 2.7+')\r
+\r
+root_dir = os.path.dirname(__file__)\r
+install_requires = []\r
+extras_require = {}\r
+\r
+with open(os.path.join(root_dir, 'requirements.txt')) as requirements:\r
+ for requirement in requirements.readlines():\r
+ # get rid of comments or trailing comments\r
+ requirement = requirement.split('#')[0].strip()\r
+ if not requirement:\r
+ continue # skip empty and comment lines\r
+ # dependencies which use environment markers have to go in as\r
+ # conditional dependencies under "extra_require", see more at:\r
+ # https://wheel.readthedocs.io/en/latest/index.html#defining-conditional-dependencies\r
+ if ';' in requirement:\r
+ package, condition = requirement.split(';')\r
+ cond_name = ':{0}'.format(condition.strip())\r
+ extras_require.setdefault(cond_name, [])\r
+ extras_require[cond_name].append(package.strip())\r
+ else:\r
+ install_requires.append(requirement)\r
+\r
+# read __version__\r
+exec(open('./version.py').read())\r
+\r
+setup(\r
+ name='vnfsdk-ice-scripts',\r
+ version= __version__,\r
+ description='VNF SDK Heat validation scripts',\r
+ license='Apache License Version 2.0',\r
+ url='http://onap.org/',\r
+\r
+ packages=find_packages('.'),\r
+\r
+ package_dir={'ice_validator': 'ice_validator'},\r
+\r
+ include_package_data=True,\r
+ install_requires=install_requires,\r
+ extras_require=extras_require)\r
+\r
--- /dev/null
+__version__ = '1.0.0'