flyte 2.0.0b8__py3-none-any.whl → 2.0.0b9__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.
Potentially problematic release.
This version of flyte might be problematic. Click here for more details.
- flyte/_internal/imagebuild/docker_builder.py +8 -3
- flyte/_version.py +2 -2
- {flyte-2.0.0b8.dist-info → flyte-2.0.0b9.dist-info}/METADATA +1 -1
- {flyte-2.0.0b8.dist-info → flyte-2.0.0b9.dist-info}/RECORD +9 -9
- {flyte-2.0.0b8.data → flyte-2.0.0b9.data}/scripts/runtime.py +0 -0
- {flyte-2.0.0b8.dist-info → flyte-2.0.0b9.dist-info}/WHEEL +0 -0
- {flyte-2.0.0b8.dist-info → flyte-2.0.0b9.dist-info}/entry_points.txt +0 -0
- {flyte-2.0.0b8.dist-info → flyte-2.0.0b9.dist-info}/licenses/LICENSE +0 -0
- {flyte-2.0.0b8.dist-info → flyte-2.0.0b9.dist-info}/top_level.txt +0 -0
|
@@ -61,7 +61,7 @@ ENV PATH="/root/.venv/bin:$$PATH" \
|
|
|
61
61
|
|
|
62
62
|
UV_PACKAGE_INSTALL_COMMAND_TEMPLATE = Template("""\
|
|
63
63
|
RUN --mount=type=cache,sharing=locked,mode=0777,target=/root/.cache/uv,id=uv \
|
|
64
|
-
|
|
64
|
+
$REQUIREMENTS_MOUNT \
|
|
65
65
|
$SECRET_MOUNT \
|
|
66
66
|
uv pip install --python $$UV_PYTHON $PIP_INSTALL_ARGS
|
|
67
67
|
""")
|
|
@@ -129,6 +129,8 @@ class Handler(Protocol):
|
|
|
129
129
|
class PipAndRequirementsHandler:
|
|
130
130
|
@staticmethod
|
|
131
131
|
async def handle(layer: PipPackages, context_path: Path, dockerfile: str) -> str:
|
|
132
|
+
secret_mounts = _get_secret_mounts_layer(layer.secret_mounts)
|
|
133
|
+
|
|
132
134
|
# Set pip_install_args based on the layer type - either a requirements file or a list of packages
|
|
133
135
|
if isinstance(layer, Requirements):
|
|
134
136
|
if not layer.file.exists():
|
|
@@ -138,17 +140,20 @@ class PipAndRequirementsHandler:
|
|
|
138
140
|
|
|
139
141
|
# Copy the requirements file to the context path
|
|
140
142
|
requirements_path = copy_files_to_context(layer.file, context_path)
|
|
143
|
+
rel_path = str(requirements_path.relative_to(context_path))
|
|
141
144
|
pip_install_args = layer.get_pip_install_args()
|
|
142
|
-
pip_install_args.extend(["--requirement",
|
|
145
|
+
pip_install_args.extend(["--requirement", "requirements.txt"])
|
|
146
|
+
mount = f"--mount=type=bind,target=requirements.txt,src={rel_path}"
|
|
143
147
|
else:
|
|
148
|
+
mount = ""
|
|
144
149
|
requirements = list(layer.packages) if layer.packages else []
|
|
145
150
|
reqs = " ".join(requirements)
|
|
146
151
|
pip_install_args = layer.get_pip_install_args()
|
|
147
152
|
pip_install_args.append(reqs)
|
|
148
153
|
|
|
149
|
-
secret_mounts = _get_secret_mounts_layer(layer.secret_mounts)
|
|
150
154
|
delta = UV_PACKAGE_INSTALL_COMMAND_TEMPLATE.substitute(
|
|
151
155
|
SECRET_MOUNT=secret_mounts,
|
|
156
|
+
REQUIREMENTS_MOUNT=mount,
|
|
152
157
|
PIP_INSTALL_ARGS=" ".join(pip_install_args),
|
|
153
158
|
)
|
|
154
159
|
|
flyte/_version.py
CHANGED
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '2.0.
|
|
21
|
-
__version_tuple__ = version_tuple = (2, 0, 0, '
|
|
20
|
+
__version__ = version = '2.0.0b9'
|
|
21
|
+
__version_tuple__ = version_tuple = (2, 0, 0, 'b9')
|
|
@@ -25,7 +25,7 @@ flyte/_task_plugins.py,sha256=9MH3nFPOH_e8_92BT4sFk4oyAnj6GJFvaPYWaraX7yE,1037
|
|
|
25
25
|
flyte/_timeout.py,sha256=zx5sFcbYmjJAJbZWSGzzX-BpC9HC7Jfs35T7vVhKwkk,1571
|
|
26
26
|
flyte/_tools.py,sha256=tWb0sx3t3mm4jbaQVjCTc9y39oR_Ibo3z_KHToP3Lto,966
|
|
27
27
|
flyte/_trace.py,sha256=SSE1nzUgmVTS2xFNtchEOjEjlRavMOIInasXzY8i9lU,4911
|
|
28
|
-
flyte/_version.py,sha256=
|
|
28
|
+
flyte/_version.py,sha256=vlsu0IebyPlbSFljl41fdZ0fVU1AjfW2r3yprWbGAY0,519
|
|
29
29
|
flyte/errors.py,sha256=z28rhbNmJF5Ie7quQWtoSL4K5p_tC3QjZDIZTupNQFw,6395
|
|
30
30
|
flyte/extend.py,sha256=GB4ZedGzKa30vYWRVPOdxEeK62xnUVFY4z2tD6H9eEw,376
|
|
31
31
|
flyte/models.py,sha256=2TgfrkPPgcnnk1P_MO5SEmOYAUbsMKl3gxIDwhW2yEU,15674
|
|
@@ -53,7 +53,7 @@ flyte/_internal/controllers/remote/_core.py,sha256=R-gm0tFzsdvyCbrPs0zikXCnzyaTe
|
|
|
53
53
|
flyte/_internal/controllers/remote/_informer.py,sha256=w4p29_dzS_ns762eNBljvnbJLgCm36d1Ogo2ZkgV1yg,14418
|
|
54
54
|
flyte/_internal/controllers/remote/_service_protocol.py,sha256=B9qbIg6DiGeac-iSccLmX_AL2xUgX4ezNUOiAbSy4V0,1357
|
|
55
55
|
flyte/_internal/imagebuild/__init__.py,sha256=dwXdJ1jMhw9RF8itF7jkPLanvX1yCviSns7hE5eoIts,102
|
|
56
|
-
flyte/_internal/imagebuild/docker_builder.py,sha256=
|
|
56
|
+
flyte/_internal/imagebuild/docker_builder.py,sha256=KaaCvVFOY4XNMYMr3LAkDCV-mIzEQPr06UxcwhVD234,21321
|
|
57
57
|
flyte/_internal/imagebuild/image_builder.py,sha256=dXBXl62qcPabus6dR3eP8P9mBGNhpZHZ2Xm12AymKkk,11150
|
|
58
58
|
flyte/_internal/imagebuild/remote_builder.py,sha256=S83QZc5nblQaEyTKn2vxQdvLBIDtvNhDDKRjjjFJ-to,10622
|
|
59
59
|
flyte/_internal/imagebuild/utils.py,sha256=_ULn4jzoffXbuFpB-o_Lro-PvZ9KObYgtELC31NXsgM,1160
|
|
@@ -230,10 +230,10 @@ flyte/types/_renderer.py,sha256=ygcCo5l60lHufyQISFddZfWwLlQ8kJAKxUT_XnR_6dY,4818
|
|
|
230
230
|
flyte/types/_string_literals.py,sha256=NlG1xV8RSA-sZ-n-IFQCAsdB6jXJOAKkHWtnopxVVDk,4231
|
|
231
231
|
flyte/types/_type_engine.py,sha256=Tas_OXYddOi0nDuORjqan2SkJ96wKD8937I2l1bo8vk,97916
|
|
232
232
|
flyte/types/_utils.py,sha256=pbts9E1_2LTdLygAY0UYTLYJ8AsN3BZyviSXvrtcutc,2626
|
|
233
|
-
flyte-2.0.
|
|
234
|
-
flyte-2.0.
|
|
235
|
-
flyte-2.0.
|
|
236
|
-
flyte-2.0.
|
|
237
|
-
flyte-2.0.
|
|
238
|
-
flyte-2.0.
|
|
239
|
-
flyte-2.0.
|
|
233
|
+
flyte-2.0.0b9.data/scripts/runtime.py,sha256=8U_tIhdF8phBLDFr0U1xv92OKK5RquiaTJFv8v_fIgQ,5537
|
|
234
|
+
flyte-2.0.0b9.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
235
|
+
flyte-2.0.0b9.dist-info/METADATA,sha256=bXk7WHmum_slHtgZFNlOoGK__r47J3LW6HVsDz_t_YE,10004
|
|
236
|
+
flyte-2.0.0b9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
237
|
+
flyte-2.0.0b9.dist-info/entry_points.txt,sha256=MIq2z5dBurdCJfpXfMKzgBv7sJOakKRYxr8G0cMiTrg,75
|
|
238
|
+
flyte-2.0.0b9.dist-info/top_level.txt,sha256=7dkyFbikvA12LEZEqawx8oDG1CMod6hTliPj7iWzgYo,6
|
|
239
|
+
flyte-2.0.0b9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|