Add pbr as building tool 79/23179/3
authorBin Yang <bin.yang@windriver.com>
Tue, 19 Dec 2017 07:54:33 +0000 (15:54 +0800)
committerBin Yang <bin.yang@windriver.com>
Tue, 19 Dec 2017 07:56:59 +0000 (15:56 +0800)
PBR is a library that helps to build python project through configuration files simplifying the deployment for them. This change adds support for it.

Change-Id: I77ac639d9ba2df7122cb6a9cec68ae7551bac89e
Issue-ID: MULTICLOUD-83
Signed-off-by: Victor Morales <victor.morales@intel.com>
Signed-off-by: Bin Yang <bin.yang@windriver.com>
newton/.gitignore
newton/newton/wsgi.py
newton/requirements.txt
newton/setup.cfg [new file with mode: 0644]
newton/setup.py [new file with mode: 0644]
version.properties

index e86d02b..d0dc490 100644 (file)
@@ -8,4 +8,10 @@ logs/*.log
 .tox
 .coverage
 htmlcov/
-
+AUTHORS
+ChangeLog
+nohup.out
+openstack_multicloud.egg-info/
+.eggs/
+build/
+test-reports/
index 3ecaed9..285b8e0 100644 (file)
@@ -17,3 +17,7 @@ from django.core.wsgi import get_wsgi_application
 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newton.settings")
 
 application = get_wsgi_application()
+
+
+def get_application():
+    return application
index 13ced9e..71654d7 100644 (file)
@@ -1,3 +1,5 @@
+pbr!=2.1.0,>=2.0.0 # Apache-2.0
+
 # rest framework
 Django==1.9.6  # BSD
 djangorestframework==3.3.3 # BSD
diff --git a/newton/setup.cfg b/newton/setup.cfg
new file mode 100644 (file)
index 0000000..d5b74b0
--- /dev/null
@@ -0,0 +1,24 @@
+[metadata]
+name = openstack-multicloud
+summary = Python Application Layer for OpenStack API usage
+author = ONAP
+license = Apache-2
+classifier =
+    Environment :: ONAP
+    Intended Audience :: Information Technology
+    Intended Audience :: System Administrators
+    License :: OSI Approved :: Apache Software License
+    Operating System :: POSIX :: Linux
+    Programming Language :: Python
+    Programming Language :: Python :: 2
+    Programming Language :: Python :: 2.7
+    Programming Language :: Python :: 3
+    Programming Language :: Python :: 3.5
+
+[files]
+packages =
+    newton
+
+[entry_points]
+wsgi_scripts =
+    multicloud-api = newton.wsgi:get_application
diff --git a/newton/setup.py b/newton/setup.py
new file mode 100644 (file)
index 0000000..0e04baa
--- /dev/null
@@ -0,0 +1,21 @@
+# Copyright (c) 2017 Intel Corporation
+#
+# 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 FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
+import setuptools
+
+setuptools.setup(
+    setup_requires=['pbr'],
+    pbr=True)
index 75fe720..601b82f 100644 (file)
@@ -14,7 +14,7 @@
 # because they are used in Jenkins, whose plug-in doesn't support
 
 major=1
-minor=2
+minor=1
 patch=0
 
 base_version=${major}.${minor}.${patch}