From 1eac5d36ef8f3334e39b1b388d7b387fe6508275 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 19 Apr 2023 11:36:23 +0200 Subject: [PATCH] DDD Refactor: Move infrastructure.py to infrastructure layer Make imports available as module. --- src/main/python/ddadevops/infrastructure/__init__.py | 1 + .../python/ddadevops/{ => infrastructure}/infrastructure.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 src/main/python/ddadevops/infrastructure/__init__.py rename src/main/python/ddadevops/{ => infrastructure}/infrastructure.py (97%) diff --git a/src/main/python/ddadevops/infrastructure/__init__.py b/src/main/python/ddadevops/infrastructure/__init__.py new file mode 100644 index 0000000..2b6d1de --- /dev/null +++ b/src/main/python/ddadevops/infrastructure/__init__.py @@ -0,0 +1 @@ +from .infrastructure import FileApi, ImageApi, ResourceApi, ExecutionApi, ProjectRepository \ No newline at end of file diff --git a/src/main/python/ddadevops/infrastructure.py b/src/main/python/ddadevops/infrastructure/infrastructure.py similarity index 97% rename from src/main/python/ddadevops/infrastructure.py rename to src/main/python/ddadevops/infrastructure/infrastructure.py index d12569b..b329ae5 100644 --- a/src/main/python/ddadevops/infrastructure.py +++ b/src/main/python/ddadevops/infrastructure/infrastructure.py @@ -4,8 +4,8 @@ from os import chmod from subprocess import run from pkg_resources import resource_string import yaml -from .domain import Devops, Image, C4k, ReleaseConfig -from .python_util import execute +from ..domain import Devops, Image, C4k, ReleaseConfig +from ..python_util import execute class ProjectRepository: