summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2017-07-28 17:20:23 -0400
committerDR695H <dr695h@att.com>2017-07-28 17:23:43 -0400
commita8dad8ef34999216b0e7622d8f8ffe506b03193e (patch)
treec73a294f2ac8047346c2b949b829272e7ce3f4de
parent6b2fddc76c6da6af42f4606acea392b221b00c81 (diff)
adding maven based python build
[TEST-48] this changes the structure of the project to be maven based Change-Id: I89212c8a2e38f2febe6c2d54a9222e260bc371e4 Signed-off-by: DR695H <dr695h@att.com>
-rw-r--r--.gitignore5
-rw-r--r--LICENSE.txt (renamed from LICENSE.TXT)0
-rw-r--r--README.txt (renamed from README.TXT)0
-rw-r--r--heatbridge/heatbridge/AAIManager.py (renamed from heatbridge/AAIManager.py)0
-rw-r--r--heatbridge/heatbridge/HeatBridge.py (renamed from heatbridge/HeatBridge.py)0
-rw-r--r--heatbridge/heatbridge/OpenstackContext.py (renamed from heatbridge/OpenstackContext.py)0
-rw-r--r--heatbridge/heatbridge/OpenstackManager.py (renamed from heatbridge/OpenstackManager.py)0
-rw-r--r--heatbridge/heatbridge/__init__.py (renamed from heatbridge/__init__.py)0
-rw-r--r--heatbridge/setup-template.py10
-rw-r--r--heatbridge/setup.cfg (renamed from setup.cfg)0
-rw-r--r--heatbridge/setup.py (renamed from setup.py)4
-rw-r--r--heatbridge/tox.ini (renamed from tox.ini)0
-rw-r--r--pom.xml70
13 files changed, 85 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 3b06752..4b8211f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
/.tox/
-/openecomp_heatbridge.egg-info/
+/heatbridge.egg-info/
/.project
-/.pydevproject \ No newline at end of file
+/.pydevproject
+/target/
diff --git a/LICENSE.TXT b/LICENSE.txt
index 4aa836c..4aa836c 100644
--- a/LICENSE.TXT
+++ b/LICENSE.txt
diff --git a/README.TXT b/README.txt
index 9c2f259..9c2f259 100644
--- a/README.TXT
+++ b/README.txt
diff --git a/heatbridge/AAIManager.py b/heatbridge/heatbridge/AAIManager.py
index 70f974b..70f974b 100644
--- a/heatbridge/AAIManager.py
+++ b/heatbridge/heatbridge/AAIManager.py
diff --git a/heatbridge/HeatBridge.py b/heatbridge/heatbridge/HeatBridge.py
index f9b9580..f9b9580 100644
--- a/heatbridge/HeatBridge.py
+++ b/heatbridge/heatbridge/HeatBridge.py
diff --git a/heatbridge/OpenstackContext.py b/heatbridge/heatbridge/OpenstackContext.py
index 5e852a2..5e852a2 100644
--- a/heatbridge/OpenstackContext.py
+++ b/heatbridge/heatbridge/OpenstackContext.py
diff --git a/heatbridge/OpenstackManager.py b/heatbridge/heatbridge/OpenstackManager.py
index ed4cd6f..ed4cd6f 100644
--- a/heatbridge/OpenstackManager.py
+++ b/heatbridge/heatbridge/OpenstackManager.py
diff --git a/heatbridge/__init__.py b/heatbridge/heatbridge/__init__.py
index 8be6f3b..8be6f3b 100644
--- a/heatbridge/__init__.py
+++ b/heatbridge/heatbridge/__init__.py
diff --git a/heatbridge/setup-template.py b/heatbridge/setup-template.py
new file mode 100644
index 0000000..00f2a17
--- /dev/null
+++ b/heatbridge/setup-template.py
@@ -0,0 +1,10 @@
+from setuptools import setup
+
+setup(
+ name='${PROJECT_NAME}', # This is the name of your PyPI-package.
+ version='${VERSION}', # Update the version number for new releases
+ description='Script to input heat stack information into aai', # Info about script
+ install_requires=['python-novaclient','python-cinderclient','python-glanceclient', 'os_client_config', 'python-neutronclient', 'python-heatclient'], # what we need
+ packages=['heatbridge'], # The name of your scipts package
+ package_dir={'heatbridge': 'heatbridge'} # The location of your scipts package
+) \ No newline at end of file
diff --git a/setup.cfg b/heatbridge/setup.cfg
index 493416b..493416b 100644
--- a/setup.cfg
+++ b/heatbridge/setup.cfg
diff --git a/setup.py b/heatbridge/setup.py
index a43e2d2..0917ae9 100644
--- a/setup.py
+++ b/heatbridge/setup.py
@@ -1,8 +1,8 @@
from setuptools import setup
setup(
- name='openecomp-heatbridge', # This is the name of your PyPI-package.
- version='0.1', # Update the version number for new releases
+ name='heatbridge', # This is the name of your PyPI-package.
+ version='0.2', # Update the version number for new releases
description='Script to input heat stack information into aai', # Info about script
install_requires=['python-novaclient','python-cinderclient','python-glanceclient', 'os_client_config', 'python-neutronclient', 'python-heatclient'], # what we need
packages=['heatbridge'], # The name of your scipts package
diff --git a/tox.ini b/heatbridge/tox.ini
index 09b4c98..09b4c98 100644
--- a/tox.ini
+++ b/heatbridge/tox.ini
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..75547aa
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<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>
+ <groupId>org.onap.testsuite</groupId>
+ <artifactId>heatbridge</artifactId>
+ <name>heatbridge</name>
+ <version>0.3</version>
+ <description>heatbridge used to stitch together some holes in the onap tests for release one</description>
+ <properties>
+ <wheel.name>${project.artifactId}-${project.version}-py2-none-any.whl</wheel.name>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
+ <configuration>
+ <artifacts>
+ <artifact>
+ <file>${project.build.directory}/py/dist/${wheel.name}</file>
+ <type>whl</type>
+ </artifact>
+ </artifacts>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.github.UltimateDogg</groupId>
+ <artifactId>maven-python-distribute-plugin</artifactId>
+ <version>0.1.9</version>
+ <configuration>
+ <sourceDirectory>heatbridge</sourceDirectory>
+ <distributionType>wheel</distributionType>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>package</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>com.github.UltimateDogg</groupId>
+ <artifactId>maven-python-distribute-plugin</artifactId>
+ <version>0.1.9</version>
+ </dependency>
+ </dependencies>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>jitpack.io</id>
+ <url>https://jitpack.io</url>
+ </pluginRepository>
+ </pluginRepositories>
+</project> \ No newline at end of file