From 9b2c52b958acf3e104259f79db4df8de61910630 Mon Sep 17 00:00:00 2001 From: Lianhao Lu Date: Tue, 1 Aug 2017 10:49:31 +0800 Subject: Resolve the upstream aria dependency issues The upstream arai has been accepted into apache foundation and the pacakge name and interface name have been changed. Here we adopt these upstream changes accordingly. Also we drop conflicting package dependency requirements which are already included in the upstream aria. Change-Id: I9befbe695cc6edc93029f15bbcee3bfe37099d40 Issue-ID: VNFSDK-61 Signed-off-by: Lianhao Lu --- cli/__main__.py | 10 +++++----- setup.py | 8 +++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/cli/__main__.py b/cli/__main__.py index f4e267b..2fe4d68 100644 --- a/cli/__main__.py +++ b/cli/__main__.py @@ -22,14 +22,14 @@ from aria import install_aria_extensions import os import shutil import tempfile -from aria.loading import LiteralLocation -from aria.consumption import ( +from aria.parser.loading import LiteralLocation +from aria.parser.consumption import ( ConsumptionContext, ConsumerChain, Read, Validate, - Model, - Instance + ServiceTemplate, + ServiceInstance ) def csar_create_func(namespace): @@ -52,7 +52,7 @@ def csar_validate_func(namespace): context.loading.prefixes += [os.path.join(reader.destination, 'definitions')] context.presentation.location = LiteralLocation(reader.entry_definitions_yaml) print reader.entry_definitions_yaml - chain = ConsumerChain(context, (Read, Validate, Model, Instance)) + chain = ConsumerChain(context, (Read, Validate, ServiceTemplate, ServiceInstance)) chain.consume() if context.validation.dump_issues(): raise RuntimeError('Validation failed') diff --git a/setup.py b/setup.py index ae350cb..53c7f1a 100644 --- a/setup.py +++ b/setup.py @@ -64,14 +64,12 @@ setup( }, # Please make sure this is in sync with src/aria/requirements.txt install_requires=[ - 'ruamel.yaml==0.12.14', - 'requests', + 'ruamel.yaml<0.12.0,>=0.11.12', + 'requests<2.14.0,>=2.3.0', 'logging', 'clint==0.5.1', 'CacheControl[filecache]==0.11.6', 'lockfile', 'Jinja2==2.8', - 'shortuuid==0.4.3', - 'jsonpickle', - 'aria == 0.1']) + 'apache-ariatosca==0.1.1']) -- cgit 1.2.3-korg