From ff9c524c37b921835ecd5a3cef50d632466acb13 Mon Sep 17 00:00:00 2001 From: Jeremy Phelps Date: Fri, 23 Mar 2018 12:15:38 -0500 Subject: Add files to help build python package Added setup.py, VERSION, and tox.ini. Issue-ID: CIMAN-149 Change-Id: Iab8af0cec621c63351c2abe71f7094f93f72a4f1 Signed-off-by: Jeremy Phelps --- aria/aria-rest-server/VERSION | 1 + aria/aria-rest-server/setup.py | 41 +++++++++++++++++++++++++++++++++++++++++ aria/aria-rest-server/tox.ini | 13 +++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 aria/aria-rest-server/VERSION create mode 100644 aria/aria-rest-server/setup.py create mode 100644 aria/aria-rest-server/tox.ini (limited to 'aria') diff --git a/aria/aria-rest-server/VERSION b/aria/aria-rest-server/VERSION new file mode 100644 index 0000000000..51f7e73a94 --- /dev/null +++ b/aria/aria-rest-server/VERSION @@ -0,0 +1 @@ +1.0.1-SNAPSHOT diff --git a/aria/aria-rest-server/setup.py b/aria/aria-rest-server/setup.py new file mode 100644 index 0000000000..799fe46021 --- /dev/null +++ b/aria/aria-rest-server/setup.py @@ -0,0 +1,41 @@ +# org.onap.dcae +# ============LICENSE_START==================================================== +# Copyright (c) 2018 AT&T Intellectual Property. 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. +# ============LICENSE_END====================================================== +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. + +from setuptools import setup, find_packages + +try: + with open('VERSION') as v_file: + version = v_file.read().strip() +except IOError: + print "There was a problem parsing the VERSION file." + +setup( + name='aria-rest-server', + version=version, + packages=find_packages(), + author = '', + author_email = '', + description = ('Library for ...'), + license = 'Apache 2.0', + keywords = '', + url = '', + zip_safe = True, + install_requires=[], + entry_points = {} +) diff --git a/aria/aria-rest-server/tox.ini b/aria/aria-rest-server/tox.ini new file mode 100644 index 0000000000..e74b672b26 --- /dev/null +++ b/aria/aria-rest-server/tox.ini @@ -0,0 +1,13 @@ +[tox] +envlist = py27,py35 +[testenv] +deps= + pytest + coverage + pytest-cov +setenv = + PYTHONPATH={toxinidir} +commands= + echo "There are no tests yet" + #pytest --junitxml xunit-results.xml --cov dcaeapplib --cov-report xml + #coverage xml -- cgit 1.2.3-korg