zenml-nightly 0.58.0.dev20240529__py3-none-any.whl → 0.58.0.dev20240531__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/docker_settings.py +3 -0
- zenml/utils/pipeline_docker_image_builder.py +22 -3
- {zenml_nightly-0.58.0.dev20240529.dist-info → zenml_nightly-0.58.0.dev20240531.dist-info}/METADATA +1 -1
- {zenml_nightly-0.58.0.dev20240529.dist-info → zenml_nightly-0.58.0.dev20240531.dist-info}/RECORD +8 -8
- {zenml_nightly-0.58.0.dev20240529.dist-info → zenml_nightly-0.58.0.dev20240531.dist-info}/LICENSE +0 -0
- {zenml_nightly-0.58.0.dev20240529.dist-info → zenml_nightly-0.58.0.dev20240531.dist-info}/WHEEL +0 -0
- {zenml_nightly-0.58.0.dev20240529.dist-info → zenml_nightly-0.58.0.dev20240531.dist-info}/entry_points.txt +0 -0
zenml/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.58.0.
|
1
|
+
0.58.0.dev20240531
|
zenml/config/docker_settings.py
CHANGED
@@ -128,6 +128,8 @@ class DockerSettings(BaseSettings):
|
|
128
128
|
therefore **not** include any registry.
|
129
129
|
python_package_installer: The package installer to use for python
|
130
130
|
packages.
|
131
|
+
python_package_installer_args: Arguments to pass to the python package
|
132
|
+
installer.
|
131
133
|
replicate_local_python_environment: If not `None`, ZenML will use the
|
132
134
|
specified method to generate a requirements file that replicates
|
133
135
|
the packages installed in the currently running python environment.
|
@@ -185,6 +187,7 @@ class DockerSettings(BaseSettings):
|
|
185
187
|
python_package_installer: PythonPackageInstaller = (
|
186
188
|
PythonPackageInstaller.PIP
|
187
189
|
)
|
190
|
+
python_package_installer_args: Dict[str, Any] = {}
|
188
191
|
replicate_local_python_environment: Optional[
|
189
192
|
Union[List[str], PythonEnvironmentExportMethod]
|
190
193
|
] = None
|
@@ -20,6 +20,7 @@ import sys
|
|
20
20
|
from collections import defaultdict
|
21
21
|
from typing import (
|
22
22
|
TYPE_CHECKING,
|
23
|
+
Any,
|
23
24
|
DefaultDict,
|
24
25
|
Dict,
|
25
26
|
List,
|
@@ -65,6 +66,14 @@ DEFAULT_DOCKER_PARENT_IMAGE = (
|
|
65
66
|
f"py{sys.version_info.major}.{sys.version_info.minor}"
|
66
67
|
)
|
67
68
|
|
69
|
+
PIP_DEFAULT_ARGS = {
|
70
|
+
"no-cache-dir": None,
|
71
|
+
"default-timeout": 60,
|
72
|
+
}
|
73
|
+
UV_DEFAULT_ARGS = {
|
74
|
+
"no-cache-dir": None,
|
75
|
+
}
|
76
|
+
|
68
77
|
|
69
78
|
class PipelineDockerImageBuilder:
|
70
79
|
"""Builds Docker images to run a ZenML pipeline."""
|
@@ -636,22 +645,32 @@ class PipelineDockerImageBuilder:
|
|
636
645
|
docker_settings.python_package_installer
|
637
646
|
== PythonPackageInstaller.PIP
|
638
647
|
):
|
639
|
-
install_command = "pip install
|
648
|
+
install_command = "pip install"
|
649
|
+
default_installer_args: Dict[str, Any] = PIP_DEFAULT_ARGS
|
640
650
|
elif (
|
641
651
|
docker_settings.python_package_installer
|
642
652
|
== PythonPackageInstaller.UV
|
643
653
|
):
|
644
654
|
lines.append("RUN pip install uv")
|
645
|
-
install_command = "uv pip install
|
655
|
+
install_command = "uv pip install"
|
656
|
+
default_installer_args = UV_DEFAULT_ARGS
|
646
657
|
else:
|
647
658
|
raise ValueError("Unsupported python package installer.")
|
648
659
|
|
660
|
+
installer_args = {
|
661
|
+
**default_installer_args,
|
662
|
+
**docker_settings.python_package_installer_args,
|
663
|
+
}
|
664
|
+
installer_args_string = " ".join(
|
665
|
+
f"--{key}" if value is None else f"--{key}={value}"
|
666
|
+
for key, value in installer_args.items()
|
667
|
+
)
|
649
668
|
for file, _, options in requirements_files:
|
650
669
|
lines.append(f"COPY {file} .")
|
651
670
|
option_string = " ".join(options)
|
652
671
|
|
653
672
|
lines.append(
|
654
|
-
f"RUN {install_command}
|
673
|
+
f"RUN {install_command} {installer_args_string}"
|
655
674
|
f"{option_string} -r {file}"
|
656
675
|
)
|
657
676
|
|
{zenml_nightly-0.58.0.dev20240529.dist-info → zenml_nightly-0.58.0.dev20240531.dist-info}/RECORD
RENAMED
@@ -6,7 +6,7 @@ RELEASE_NOTES.md,sha256=0XrQIc5jtfcHBi9zST-f4zdPs9M-YzNRtFRtpYTWq6k,326337
|
|
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=lRkGs_nDfVij0xosQ1OFEtObEI3mh87QYpo8ZmPAWCE,19
|
10
10
|
zenml/__init__.py,sha256=qT3QHiuTgUwk05sOiML0Gcjre3pugvDAw84_br9Psvo,2394
|
11
11
|
zenml/_hub/__init__.py,sha256=6qDzpQAAZa__Aiiz0mC1qM-9dw9_jk_v_aXeJknxbDE,644
|
12
12
|
zenml/_hub/client.py,sha256=LAxLuDjY9ya1PPRzxS0_pvu__FSpAqEjbtHTqVwgMWc,9071
|
@@ -80,7 +80,7 @@ zenml/config/base_settings.py,sha256=y_i95RBfgCo7CnqG0FTwQXQ0rwc9rbl8WClc3X7EvoY
|
|
80
80
|
zenml/config/build_configuration.py,sha256=uFo9LAkCbfX1HTX3RYX8412w4ifbdElV7SP1CvhIHfI,4304
|
81
81
|
zenml/config/compiler.py,sha256=x2kgecp6oMFYtWtduwmlnidUMBHTFSO9FN1OtNSPZ5s,22261
|
82
82
|
zenml/config/constants.py,sha256=QvSgMwXWxtspcJ45CrFDP1ZY3w6gS3bIhXLOtIDAbZA,713
|
83
|
-
zenml/config/docker_settings.py,sha256=
|
83
|
+
zenml/config/docker_settings.py,sha256=1dh0VhcopKaiQ5GqqmUt9Q22STzICzWaRubmZ-xbEpE,12016
|
84
84
|
zenml/config/global_config.py,sha256=JlC3UXHeHIJa6TWlOrxneH1FsraHs_DLpDdlqUfRLE8,29409
|
85
85
|
zenml/config/pipeline_configurations.py,sha256=oqP-bYLAGlnM-bAdaRijXtImkGY8keoX2tGgHQwg7PM,2992
|
86
86
|
zenml/config/pipeline_run_configuration.py,sha256=y7_yJ9193C-zNSIe6yZU5viuqxZn97CfZhu5QrlvGvs,1838
|
@@ -719,7 +719,7 @@ zenml/utils/materializer_utils.py,sha256=xQlxAw3zqhKzfwYzx2_RyfFhym4amoVQfU1s28P
|
|
719
719
|
zenml/utils/mlstacks_utils.py,sha256=Jv0ZRK8seBcnA96UelJhRaB6mRhZiA4062yE0yE7RaA,19949
|
720
720
|
zenml/utils/networking_utils.py,sha256=zTDbOMkMPRWiWLZ2ccchd37rvvZWIIh0Kr9dZE-VJAs,7845
|
721
721
|
zenml/utils/pagination_utils.py,sha256=nY6jg_RCQoeCipHrQfkdEarCah88P17IHMb4kswUhXY,1341
|
722
|
-
zenml/utils/pipeline_docker_image_builder.py,sha256=
|
722
|
+
zenml/utils/pipeline_docker_image_builder.py,sha256=UT9bwVNdDUj3i6lIn0LFtjuxBViTsaKCPBck8V8-qSg,26886
|
723
723
|
zenml/utils/proxy_utils.py,sha256=fgRlLa9pfXJDoxtB31_YP7DClOMQLek_nMmM0et6i3w,7241
|
724
724
|
zenml/utils/pydantic_utils.py,sha256=pDpv_ciIj7o5RIgwWa0W6BUjmHjltcjWK4RRSoGVR2A,8468
|
725
725
|
zenml/utils/secret_utils.py,sha256=0b0FeMhr28oxe4t6lOhnmHjENFADACynUEKeu6gBSkE,4019
|
@@ -1286,8 +1286,8 @@ zenml/zen_stores/secrets_stores/service_connector_secrets_store.py,sha256=0CgWJo
|
|
1286
1286
|
zenml/zen_stores/secrets_stores/sql_secrets_store.py,sha256=Cips_SPX7CtfYQyOZNiHAhmVtVgb17HCyHQia5MlTX4,8653
|
1287
1287
|
zenml/zen_stores/sql_zen_store.py,sha256=f5spF_vWJg8kO6ud9uzELqh7LRxSAWyB1HLono1_gT0,353540
|
1288
1288
|
zenml/zen_stores/zen_store_interface.py,sha256=vi0tr6vDES97h_rFZZYeaz2Y0nM4xm66CcUXSOEITN4,86372
|
1289
|
-
zenml_nightly-0.58.0.
|
1290
|
-
zenml_nightly-0.58.0.
|
1291
|
-
zenml_nightly-0.58.0.
|
1292
|
-
zenml_nightly-0.58.0.
|
1293
|
-
zenml_nightly-0.58.0.
|
1289
|
+
zenml_nightly-0.58.0.dev20240531.dist-info/LICENSE,sha256=wbnfEnXnafPbqwANHkV6LUsPKOtdpsd-SNw37rogLtc,11359
|
1290
|
+
zenml_nightly-0.58.0.dev20240531.dist-info/METADATA,sha256=33GkyT_LBxs5OkXANpeUp5cNc6_LELeEYNkys8Jau5w,19070
|
1291
|
+
zenml_nightly-0.58.0.dev20240531.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
1292
|
+
zenml_nightly-0.58.0.dev20240531.dist-info/entry_points.txt,sha256=QK3ETQE0YswAM2mWypNMOv8TLtr7EjnqAFq1br_jEFE,43
|
1293
|
+
zenml_nightly-0.58.0.dev20240531.dist-info/RECORD,,
|
{zenml_nightly-0.58.0.dev20240529.dist-info → zenml_nightly-0.58.0.dev20240531.dist-info}/LICENSE
RENAMED
File without changes
|
{zenml_nightly-0.58.0.dev20240529.dist-info → zenml_nightly-0.58.0.dev20240531.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|