splight-cli 4.1.0.dev0__tar.gz → 4.1.0.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of splight-cli might be problematic. Click here for more details.
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/PKG-INFO +1 -1
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/solution/apply_exec.py +5 -5
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/solution/solution.py +8 -8
- splight-cli-4.1.0.dev2/cli/version.py +1 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/splight_cli.egg-info/PKG-INFO +1 -1
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/splight_cli.egg-info/requires.txt +1 -0
- splight-cli-4.1.0.dev0/cli/version.py +0 -1
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/README.md +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/cli.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/component.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/exceptions.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/loaders.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/templates/.splightignore +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/templates/Initialization +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/templates/README.md +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/templates/auto_readme.md +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/templates/main.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/templates/spec.json +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/templates/tests.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/tests/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/tests/test_component_manager.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/utils.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/config/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/constants.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/context/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/context/context.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/context/workspace.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/alert/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/asset/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/attribute/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/component/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/datalake/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/file/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/manager/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/manager/exceptions.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/manager/manager.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/secret/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/engine/setpoint/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/hub/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/hub/component/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/hub/component/exceptions.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/hub/component/hub_manager.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/settings.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/solution/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/solution/models.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/solution/plan_exec.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/solution/utils.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/utils/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/utils/input.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/utils/json.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/utils/loader.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/utils/pprint.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/utils/template.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/utils/yaml.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/workspace/__init__.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/pyproject.toml +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/setup.cfg +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/setup.py +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/splight_cli.egg-info/SOURCES.txt +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/splight_cli.egg-info/dependency_links.txt +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/splight_cli.egg-info/entry_points.txt +0 -0
- {splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/splight_cli.egg-info/top_level.txt +0 -0
|
@@ -51,7 +51,7 @@ class ApplyExecutor:
|
|
|
51
51
|
local_instance.save()
|
|
52
52
|
remote_instance = model.retrieve(resource_id=local_instance.id)
|
|
53
53
|
return ApplyResult(True, to_dict(remote_instance))
|
|
54
|
-
return ApplyResult(False,
|
|
54
|
+
return ApplyResult(False, to_dict(local_instance))
|
|
55
55
|
|
|
56
56
|
def replace_data_addr(self):
|
|
57
57
|
"""Replaces assets data addresses in component's routines."""
|
|
@@ -171,7 +171,7 @@ class ApplyExecutor:
|
|
|
171
171
|
"Do you want to update the local instance?"
|
|
172
172
|
)
|
|
173
173
|
if update:
|
|
174
|
-
return ApplyResult(True, remote_instance)
|
|
174
|
+
return ApplyResult(True, to_dict(remote_instance))
|
|
175
175
|
bprint(
|
|
176
176
|
f"\nYou are about to override the remote {model_name} "
|
|
177
177
|
f"with your local {model_name}:"
|
|
@@ -181,12 +181,12 @@ class ApplyExecutor:
|
|
|
181
181
|
if update:
|
|
182
182
|
local_instance.save()
|
|
183
183
|
return ApplyResult(True, to_dict(local_instance))
|
|
184
|
-
return ApplyResult(False,
|
|
184
|
+
return ApplyResult(False, to_dict(local_instance))
|
|
185
185
|
bprint(
|
|
186
186
|
f"Nothing to update, the same {model_name} was found "
|
|
187
187
|
"remotely"
|
|
188
188
|
)
|
|
189
|
-
return ApplyResult(False,
|
|
189
|
+
return ApplyResult(False, to_dict(local_instance))
|
|
190
190
|
bprint(f"\nThe following {model_name} was not found remotely")
|
|
191
191
|
print(local_instance)
|
|
192
192
|
self._remove_ids(model_name, local_instance)
|
|
@@ -197,7 +197,7 @@ class ApplyExecutor:
|
|
|
197
197
|
local_instance.save()
|
|
198
198
|
remote_instance = model.retrieve(resource_id=local_instance.id)
|
|
199
199
|
return ApplyResult(True, to_dict(remote_instance))
|
|
200
|
-
return ApplyResult(False,
|
|
200
|
+
return ApplyResult(False, to_dict(local_instance))
|
|
201
201
|
|
|
202
202
|
def _remove_ids(self, model: SplightTypes, local_instance: SplightTypes):
|
|
203
203
|
"""Removes ids to a given dictionary representing a particular model.
|
|
@@ -48,14 +48,14 @@ class SolutionManager:
|
|
|
48
48
|
)
|
|
49
49
|
|
|
50
50
|
def execute(self):
|
|
51
|
-
console.print("\nStarting plan step...", style=PRINT_STYLE)
|
|
52
|
-
self._generate_assets_state()
|
|
53
|
-
self._generate_components_state()
|
|
54
|
-
|
|
55
51
|
if self._apply:
|
|
56
52
|
console.print("\nStarting apply step...", style=PRINT_STYLE)
|
|
57
53
|
self._apply_assets_state()
|
|
58
54
|
self._apply_components_state()
|
|
55
|
+
else:
|
|
56
|
+
console.print("\nStarting plan step...", style=PRINT_STYLE)
|
|
57
|
+
self._generate_assets_state()
|
|
58
|
+
self._generate_components_state()
|
|
59
59
|
|
|
60
60
|
def _generate_state_from_plan(self):
|
|
61
61
|
"""Generates the state file if not passed."""
|
|
@@ -105,12 +105,12 @@ class SolutionManager:
|
|
|
105
105
|
model=Component, local_instance=component
|
|
106
106
|
)
|
|
107
107
|
if result.update:
|
|
108
|
-
updated_routines = self._apply_routines_state(
|
|
109
|
-
component, Component.parse_obj(result.updated_dict)
|
|
110
|
-
)
|
|
111
108
|
components_list[i] = Component.parse_obj(result.updated_dict)
|
|
112
|
-
components_list[i].routines = updated_routines
|
|
113
109
|
save_yaml(self._state_path, self._state)
|
|
110
|
+
components_list[i].routines = self._apply_routines_state(
|
|
111
|
+
component, Component.parse_obj(result.updated_dict)
|
|
112
|
+
)
|
|
113
|
+
save_yaml(self._state_path, self._state)
|
|
114
114
|
|
|
115
115
|
def _apply_routines_state(
|
|
116
116
|
self, component: Component, updated_component: Component
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.1.0.dev2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.1.0.dev0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{splight-cli-4.1.0.dev0 → splight-cli-4.1.0.dev2}/cli/component/tests/test_component_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|