zenml-nightly 0.65.0.dev20240906__py3-none-any.whl → 0.65.0.dev20240907__py3-none-any.whl
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.
- zenml/VERSION +1 -1
- zenml/config/compiler.py +34 -0
- zenml/utils/settings_utils.py +1 -1
- {zenml_nightly-0.65.0.dev20240906.dist-info → zenml_nightly-0.65.0.dev20240907.dist-info}/METADATA +1 -1
- {zenml_nightly-0.65.0.dev20240906.dist-info → zenml_nightly-0.65.0.dev20240907.dist-info}/RECORD +8 -8
- {zenml_nightly-0.65.0.dev20240906.dist-info → zenml_nightly-0.65.0.dev20240907.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.65.0.dev20240906.dist-info → zenml_nightly-0.65.0.dev20240907.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.65.0.dev20240906.dist-info → zenml_nightly-0.65.0.dev20240907.dist-info}/entry_points.txt +0 -0
zenml/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.65.0.
|
1
|
+
0.65.0.dev20240907
|
zenml/config/compiler.py
CHANGED
@@ -93,6 +93,10 @@ class Compiler:
|
|
93
93
|
self._apply_run_configuration(
|
94
94
|
pipeline=pipeline, config=run_configuration
|
95
95
|
)
|
96
|
+
convert_component_shortcut_settings_keys(
|
97
|
+
pipeline.configuration.settings, stack=stack
|
98
|
+
)
|
99
|
+
|
96
100
|
self._apply_stack_default_settings(pipeline=pipeline, stack=stack)
|
97
101
|
if run_configuration.run_name:
|
98
102
|
self._verify_run_name(run_configuration.run_name)
|
@@ -445,6 +449,9 @@ class Compiler:
|
|
445
449
|
step_config, runtime_parameters=invocation.parameters
|
446
450
|
)
|
447
451
|
|
452
|
+
convert_component_shortcut_settings_keys(
|
453
|
+
step.configuration.settings, stack=stack
|
454
|
+
)
|
448
455
|
step_spec = self._get_step_spec(invocation=invocation)
|
449
456
|
step_settings = self._filter_and_validate_settings(
|
450
457
|
settings=step.configuration.settings,
|
@@ -596,3 +603,30 @@ class Compiler:
|
|
596
603
|
additional_spec_args["parameters"] = pipeline._parameters
|
597
604
|
|
598
605
|
return PipelineSpec(steps=step_specs, **additional_spec_args)
|
606
|
+
|
607
|
+
|
608
|
+
def convert_component_shortcut_settings_keys(
|
609
|
+
settings: Dict[str, "BaseSettings"], stack: "Stack"
|
610
|
+
) -> None:
|
611
|
+
"""Convert component shortcut settings keys.
|
612
|
+
|
613
|
+
Args:
|
614
|
+
settings: Dictionary of settings.
|
615
|
+
stack: The stack that the pipeline will run on.
|
616
|
+
|
617
|
+
Raises:
|
618
|
+
ValueError: If stack component settings were defined both using the
|
619
|
+
full and the shortcut key.
|
620
|
+
"""
|
621
|
+
for component in stack.components.values():
|
622
|
+
shortcut_key = str(component.type)
|
623
|
+
if component_settings := settings.pop(shortcut_key, None):
|
624
|
+
key = settings_utils.get_stack_component_setting_key(component)
|
625
|
+
if key in settings:
|
626
|
+
raise ValueError(
|
627
|
+
f"Duplicate settings provided for your {shortcut_key} "
|
628
|
+
f"using the keys {shortcut_key} and {key}. Remove settings "
|
629
|
+
"for one of them to fix this error."
|
630
|
+
)
|
631
|
+
|
632
|
+
settings[key] = component_settings
|
zenml/utils/settings_utils.py
CHANGED
{zenml_nightly-0.65.0.dev20240906.dist-info → zenml_nightly-0.65.0.dev20240907.dist-info}/RECORD
RENAMED
@@ -6,7 +6,7 @@ RELEASE_NOTES.md,sha256=rU1qOZVeFcIB3RaZ-5xinYf9xVH2z8udr8NY5wO9pCY,361876
|
|
6
6
|
ROADMAP.md,sha256=hiLSmr16BH8Dfx7SaQM4JcXCGCVl6mFZPFAwJeDTrJU,407
|
7
7
|
SECURITY.md,sha256=9DepA8y03yvCZLHEfcXLTDH4lUyKHquAdukBsccNN7c,682
|
8
8
|
zenml/README.md,sha256=827dekbOWAs1BpW7VF1a4d7EbwPbjwccX-2zdXBENZo,1777
|
9
|
-
zenml/VERSION,sha256=
|
9
|
+
zenml/VERSION,sha256=GXVjYOPxL7Tfz386wx6JBI3ZiR2QOZ7hkqezVjFaZjI,19
|
10
10
|
zenml/__init__.py,sha256=X_JnjAYTBG2ZYgcM2_FDPssygdj7z7VTAmU9HEi17p0,2306
|
11
11
|
zenml/actions/__init__.py,sha256=mrt6wPo73iKRxK754_NqsGyJ3buW7RnVeIGXr1xEw8Y,681
|
12
12
|
zenml/actions/base_action.py,sha256=UcaHev6BTuLDwuswnyaPjdA8AgUqB5xPZ-lRtuvf2FU,25553
|
@@ -73,7 +73,7 @@ zenml/code_repositories/local_repository_context.py,sha256=N1EagG_gh_BTQ4Z_CC1dH
|
|
73
73
|
zenml/config/__init__.py,sha256=DZEic7euSbwI9Yb3FMRQhTgfhqz-C6OdAiYmOb0-opI,1519
|
74
74
|
zenml/config/base_settings.py,sha256=itoLqc1cOwEYhgSGdZmSKSaBevQkvYH7NQh7PUamazc,1700
|
75
75
|
zenml/config/build_configuration.py,sha256=Jsng7ebpeaRbzXlbszU-uYkaVihgQ4OrD839yWwD3ZY,5126
|
76
|
-
zenml/config/compiler.py,sha256=
|
76
|
+
zenml/config/compiler.py,sha256=V-BOsJqz3OHmbZubU3W0B1bqzcOXYSK3mA8iUPzcCn4,23269
|
77
77
|
zenml/config/constants.py,sha256=QvSgMwXWxtspcJ45CrFDP1ZY3w6gS3bIhXLOtIDAbZA,713
|
78
78
|
zenml/config/docker_settings.py,sha256=KTUR9FaRn3ivcagzFgpLe4eev8fvd5Wq1oV8wGNMB-g,13322
|
79
79
|
zenml/config/global_config.py,sha256=i1CY0d4T2C0iVqLGVSgTJ90vLQsCZyCGRodaZ73XTi8,29069
|
@@ -770,7 +770,7 @@ zenml/utils/pipeline_docker_image_builder.py,sha256=ixFi_msj2FshXO4ZeyEn4hLap_rF
|
|
770
770
|
zenml/utils/proxy_utils.py,sha256=fgRlLa9pfXJDoxtB31_YP7DClOMQLek_nMmM0et6i3w,7241
|
771
771
|
zenml/utils/pydantic_utils.py,sha256=oQcxY4VXuVY3n632atlvdmi12EYcSQ1xZuQJY3Je-sA,16592
|
772
772
|
zenml/utils/secret_utils.py,sha256=gEvqnhzAZwPO6mdOQWvioeH-xLoSObfaNRzt17N8zyU,5965
|
773
|
-
zenml/utils/settings_utils.py,sha256=
|
773
|
+
zenml/utils/settings_utils.py,sha256=lAK13CiDCDkcLygizDbWB9q-9ukteVBJPypzFCrne9k,4631
|
774
774
|
zenml/utils/singleton.py,sha256=Qgi7yjV7asDuLiKTzFbeW-CoRRmW5RHRhmGAXtDZH7Y,2415
|
775
775
|
zenml/utils/source_code_utils.py,sha256=8iyNA2MGIORYVEkSdxNTXfS1ZdFKXTAG1dZRkeQtPL0,3751
|
776
776
|
zenml/utils/source_utils.py,sha256=TC9gnR_-oA8xp54cbR1QiDZCmwIlSvC90I3Gl0JmPhY,25730
|
@@ -1395,8 +1395,8 @@ zenml/zen_stores/secrets_stores/sql_secrets_store.py,sha256=Bq1djrUP9saoD7vECjS7
|
|
1395
1395
|
zenml/zen_stores/sql_zen_store.py,sha256=4z458K5ItHkAO0bEUAl6rWJDHKh6GS-sRrt2RPridnE,392435
|
1396
1396
|
zenml/zen_stores/template_utils.py,sha256=UB_CBoMIfBequa8g3H7aTI6V_ke1SJr4IW1qwFCL1jc,8932
|
1397
1397
|
zenml/zen_stores/zen_store_interface.py,sha256=kzR_i8vHjULld3MquSaMorcab8lJk1e9RZquw1VXjHY,93510
|
1398
|
-
zenml_nightly-0.65.0.
|
1399
|
-
zenml_nightly-0.65.0.
|
1400
|
-
zenml_nightly-0.65.0.
|
1401
|
-
zenml_nightly-0.65.0.
|
1402
|
-
zenml_nightly-0.65.0.
|
1398
|
+
zenml_nightly-0.65.0.dev20240907.dist-info/LICENSE,sha256=wbnfEnXnafPbqwANHkV6LUsPKOtdpsd-SNw37rogLtc,11359
|
1399
|
+
zenml_nightly-0.65.0.dev20240907.dist-info/METADATA,sha256=WupYBAh2trySZHrTCTP_70a0sLdCMjaCaspnFNYjdww,20960
|
1400
|
+
zenml_nightly-0.65.0.dev20240907.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1401
|
+
zenml_nightly-0.65.0.dev20240907.dist-info/entry_points.txt,sha256=QK3ETQE0YswAM2mWypNMOv8TLtr7EjnqAFq1br_jEFE,43
|
1402
|
+
zenml_nightly-0.65.0.dev20240907.dist-info/RECORD,,
|
{zenml_nightly-0.65.0.dev20240906.dist-info → zenml_nightly-0.65.0.dev20240907.dist-info}/LICENSE
RENAMED
File without changes
|
{zenml_nightly-0.65.0.dev20240906.dist-info → zenml_nightly-0.65.0.dev20240907.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|