Repository: incubator-ariatosca Updated Branches: refs/heads/new_wagon_setuptools 737fff569 -> 5f34dc1c5
wip Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/5f34dc1c Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/5f34dc1c Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/5f34dc1c Branch: refs/heads/new_wagon_setuptools Commit: 5f34dc1c50115deb8e5d3169b2bd0b4461129f8f Parents: 737fff5 Author: max-orlov <[email protected]> Authored: Sun Oct 22 10:51:24 2017 +0300 Committer: max-orlov <[email protected]> Committed: Sun Oct 22 10:51:29 2017 +0300 ---------------------------------------------------------------------- VERSION | 2 +- aria/__init__.py | 34 +++++++++++++++++++++++++++++++++- requirements.in | 4 ++-- requirements.txt | 8 +++----- 4 files changed, 39 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/5f34dc1c/VERSION ---------------------------------------------------------------------- diff --git a/VERSION b/VERSION index 341cf11..8294c18 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 \ No newline at end of file +0.1.2 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/5f34dc1c/aria/__init__.py ---------------------------------------------------------------------- diff --git a/aria/__init__.py b/aria/__init__.py index 76a62ce..633c5c8 100644 --- a/aria/__init__.py +++ b/aria/__init__.py @@ -18,11 +18,43 @@ The ARIA root package provides entry points for extension and storage initializa """ import sys +import types +import os import pkg_resources aria_package_name = 'apache-ariatosca' __version__ = pkg_resources.get_distribution(aria_package_name).version + + + +try: + import ruamel # noqa: F401 +except ImportError: + if sys.version_info[0] > 2: + raise + + # Traverse all of the site-packages and try to load ruamel. + for packages_dir in sys.path: + ruamel_path = os.path.join(packages_dir, 'ruamel') + if not os.path.exists(ruamel_path): + continue + + # If the top dir has an __init__.py file, the loading should have + # succeeded automatically + if os.path.exists(os.path.join(ruamel_path, '__init__.py')): + raise + + # Dynamically create mapping to the ruamel package + ruamel_module = sys.modules.setdefault( + 'ruamel', + types.ModuleType('ruamel') + ) + # add path to the mapped package + ruamel_module.__dict__.setdefault('__path__', []).append(ruamel_path) + + + from .orchestrator.decorators import workflow, operation # pylint: disable=wrong-import-position from . import ( # pylint: disable=wrong-import-position extension, @@ -62,7 +94,7 @@ def install_aria_extensions(): if module_name.startswith('aria_extension_'): loader.find_module(module_name).load_module(module_name) for entry_point in pkg_resources.iter_entry_points(group='aria_extension'): - entry_point.load() + entry_point.resolve() extension.init() http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/5f34dc1c/requirements.in ---------------------------------------------------------------------- diff --git a/requirements.in b/requirements.in index 1d83ec8..4cea589 100644 --- a/requirements.in +++ b/requirements.in @@ -23,9 +23,9 @@ Jinja2>=2.8, <2.9 shortuuid>=0.5, <0.6 CacheControl[filecache]>=0.11.0, <0.13 SQLAlchemy>=1.1.0, <1.2 # version 1.2 dropped support of python 2.6 -wagon==0.6.0 +wagon==0.6.1 bottle>=0.12.0, <0.13 -setuptools>=35.0.0, <36.0.0 +setuptools>=36.0.0, <37.0.0 click>=6.0, < 7.0 colorama>=0.3.7, <=0.3.9 PrettyTable>=0.7,<0.8 http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/5f34dc1c/requirements.txt ---------------------------------------------------------------------- diff --git a/requirements.txt b/requirements.txt index bcc5296..85a116a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,20 +22,18 @@ markupsafe==1.0 # via jinja2 msgpack-python==0.4.8 # via cachecontrol networkx==1.9.1 ordereddict==1.1 ; python_version < "2.7" -packaging==16.8 # via setuptools prettytable==0.7.2 psutil==5.2.2 -pyparsing==2.2.0 # via packaging requests==2.13.0 retrying==1.3.3 ruamel.ordereddict==0.4.9 # via ruamel.yaml ruamel.yaml==0.11.15 shortuuid==0.5.0 -six==1.10.0 # via packaging, retrying, setuptools +six==1.10.0 # via retrying sqlalchemy==1.1.6 total-ordering==0.1.0 ; python_version < "2.7" -wagon==0.6.0 +wagon==0.6.1 wheel==0.29.0 ; python_version < "2.7" # The following packages are considered to be unsafe in a requirements file: -setuptools==35.0.2 +setuptools==36.6.0
