flyte 0.2.0b21__py3-none-any.whl → 0.2.0b23__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/_image.py +5 -2
- flyte/_internal/imagebuild/docker_builder.py +1 -1
- flyte/_internal/runtime/task_serde.py +7 -1
- flyte/_version.py +2 -2
- flyte/cli/_common.py +3 -1
- {flyte-0.2.0b21.dist-info → flyte-0.2.0b23.dist-info}/METADATA +2 -2
- {flyte-0.2.0b21.dist-info → flyte-0.2.0b23.dist-info}/RECORD +10 -10
- {flyte-0.2.0b21.dist-info → flyte-0.2.0b23.dist-info}/WHEEL +0 -0
- {flyte-0.2.0b21.dist-info → flyte-0.2.0b23.dist-info}/entry_points.txt +0 -0
- {flyte-0.2.0b21.dist-info → flyte-0.2.0b23.dist-info}/top_level.txt +0 -0
flyte/_image.py
CHANGED
|
@@ -10,6 +10,7 @@ from pathlib import Path
|
|
|
10
10
|
from typing import Callable, ClassVar, Dict, List, Literal, Optional, Tuple, TypeVar, Union
|
|
11
11
|
|
|
12
12
|
import rich.repr
|
|
13
|
+
from packaging.version import Version
|
|
13
14
|
|
|
14
15
|
# Supported Python versions
|
|
15
16
|
PYTHON_3_10 = (3, 10)
|
|
@@ -366,7 +367,6 @@ class Image:
|
|
|
366
367
|
base_image=f"python:{python_version[0]}.{python_version[1]}-slim-bookworm",
|
|
367
368
|
registry=_BASE_REGISTRY,
|
|
368
369
|
name=_DEFAULT_IMAGE_NAME,
|
|
369
|
-
# _tag=preset_tag,
|
|
370
370
|
platform=("linux/amd64", "linux/arm64"),
|
|
371
371
|
)
|
|
372
372
|
labels_and_user = _DockerLines(
|
|
@@ -393,7 +393,10 @@ class Image:
|
|
|
393
393
|
if dev_mode:
|
|
394
394
|
image = image._with_local_v2()
|
|
395
395
|
else:
|
|
396
|
-
|
|
396
|
+
if Version(flyte_version).is_devrelease or Version(flyte_version).is_prerelease:
|
|
397
|
+
image = image.with_pip_packages(f"flyte=={flyte_version}", pre=True)
|
|
398
|
+
else:
|
|
399
|
+
image = image.with_pip_packages(f"flyte=={flyte_version}")
|
|
397
400
|
object.__setattr__(image, "_tag", preset_tag)
|
|
398
401
|
# Set this to auto for all auto images because the meaning of "auto" can change (based on logic inside
|
|
399
402
|
# _get_default_image_for, acts differently in a running task container) so let's make sure it stays auto.
|
|
@@ -72,7 +72,7 @@ RUN --mount=type=cache,sharing=locked,mode=0777,target=/var/cache/apt,id=apt \
|
|
|
72
72
|
|
|
73
73
|
UV_PYTHON_INSTALL_COMMAND = Template("""\
|
|
74
74
|
RUN --mount=type=cache,sharing=locked,mode=0777,target=/root/.cache/uv,id=uv \
|
|
75
|
-
uv pip install
|
|
75
|
+
uv pip install $PIP_INSTALL_ARGS
|
|
76
76
|
""")
|
|
77
77
|
|
|
78
78
|
# uv pip install --python /root/env/bin/python
|
|
@@ -222,7 +222,13 @@ def _get_urun_container(
|
|
|
222
222
|
img_uri = task_template.image.uri
|
|
223
223
|
elif image_id not in serialize_context.image_cache.image_lookup:
|
|
224
224
|
img_uri = task_template.image.uri
|
|
225
|
-
|
|
225
|
+
from flyte._version import __version__
|
|
226
|
+
logger.warning(
|
|
227
|
+
f"Image {task_template.image} not found in the image cache: {serialize_context.image_cache.image_lookup}.\n"
|
|
228
|
+
f"This typically occurs when the Flyte SDK version (`{__version__}`) used in the task environment "
|
|
229
|
+
f"differs from the version used to compile or deploy it.\n"
|
|
230
|
+
f"Ensure both environments use the same Flyte SDK version to avoid inconsistencies in image resolution."
|
|
231
|
+
)
|
|
226
232
|
else:
|
|
227
233
|
img_uri = serialize_context.image_cache.image_lookup[image_id]
|
|
228
234
|
|
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 = '0.2.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 2, 0, '
|
|
20
|
+
__version__ = version = '0.2.0b23'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 2, 0, 'b23')
|
flyte/cli/_common.py
CHANGED
|
@@ -151,7 +151,9 @@ class InvokeBaseMixin:
|
|
|
151
151
|
# If the user has requested verbose output, print the full traceback
|
|
152
152
|
console = Console()
|
|
153
153
|
console.print(Traceback.from_exception(type(e), e, e.__traceback__))
|
|
154
|
-
|
|
154
|
+
exit(1)
|
|
155
|
+
else:
|
|
156
|
+
raise click.ClickException(f"Error invoking command: {e}") from e
|
|
155
157
|
|
|
156
158
|
|
|
157
159
|
class CommandBase(InvokeBaseMixin, click.RichCommand):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flyte
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.0b23
|
|
4
4
|
Summary: Add your description here
|
|
5
5
|
Author-email: Ketan Umare <kumare3@users.noreply.github.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -16,7 +16,7 @@ Requires-Dist: protobuf>=6.30.1
|
|
|
16
16
|
Requires-Dist: pydantic>=2.10.6
|
|
17
17
|
Requires-Dist: pyyaml>=6.0.2
|
|
18
18
|
Requires-Dist: rich-click>=1.8.9
|
|
19
|
-
Requires-Dist: httpx
|
|
19
|
+
Requires-Dist: httpx<1.0.0,>=0.28.1
|
|
20
20
|
Requires-Dist: keyring>=25.6.0
|
|
21
21
|
Requires-Dist: msgpack>=1.1.0
|
|
22
22
|
Requires-Dist: toml>=0.10.2
|
|
@@ -8,7 +8,7 @@ flyte/_environment.py,sha256=dmIFmFLRIklOEYL9gsP2IH3-MYcjHYyyOlqlcf3E6_A,2924
|
|
|
8
8
|
flyte/_excepthook.py,sha256=nXts84rzEg6-7RtFarbKzOsRZTQR4plnbWVIFMAEprs,1310
|
|
9
9
|
flyte/_group.py,sha256=7o1j16sZyUmYB50mOiq1ui4TBAKhRpDqLakV8Ya1kw4,803
|
|
10
10
|
flyte/_hash.py,sha256=Of_Zl_DzzzF2jp4ZsLm-3o-xJFCCJ8_GubmLI1htx78,504
|
|
11
|
-
flyte/_image.py,sha256=
|
|
11
|
+
flyte/_image.py,sha256=_KYygxYcS9eR8oal79clyAEmqcnlh0XBgCXbo4Aoktc,30840
|
|
12
12
|
flyte/_initialize.py,sha256=xKl_LYMluRt21wWqa6RTKuLo0_DCbSaTfUk27_brtNk,18232
|
|
13
13
|
flyte/_interface.py,sha256=1B9zIwFDjiVp_3l_mk8EpA4g3Re-6DUBEBi9z9vDvPs,3504
|
|
14
14
|
flyte/_logging.py,sha256=_yNo-Nx2yzh0MLoZGbnIYHGKei4wtQmSGM0lE30Ev7w,3662
|
|
@@ -24,7 +24,7 @@ flyte/_task_environment.py,sha256=B493b54xpnNFNtHek3cmT4XuNiPNVf2gx9Yylyb1ncw,69
|
|
|
24
24
|
flyte/_timeout.py,sha256=zx5sFcbYmjJAJbZWSGzzX-BpC9HC7Jfs35T7vVhKwkk,1571
|
|
25
25
|
flyte/_tools.py,sha256=JewkQZBR_M85tS6QY8e4xXue75jbOE48nID4ZHnc9jY,632
|
|
26
26
|
flyte/_trace.py,sha256=C788bgoSc3st8kE8Cae2xegnLx2CT6uuRKKfaDrDUys,5122
|
|
27
|
-
flyte/_version.py,sha256
|
|
27
|
+
flyte/_version.py,sha256=-0paj9rX04GbPr33SZJMHLec76ZpD2KW8H6GxHKP0Pg,521
|
|
28
28
|
flyte/errors.py,sha256=skXcdexLisFZFcTnUmMvMmuh4Ty96oJkyLKaipzkyeI,4954
|
|
29
29
|
flyte/models.py,sha256=my7Vxo-NK6gHGahyqtHr42wYjPGw0nl2SGBBoSb6hIc,14733
|
|
30
30
|
flyte/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -51,7 +51,7 @@ flyte/_internal/controllers/remote/_core.py,sha256=UKjiL3dGidXcR1dPzJswn67g38HQm
|
|
|
51
51
|
flyte/_internal/controllers/remote/_informer.py,sha256=StiPcQLLW0h36uEBhKsupMY79EeFCKA3QQzvv2IyvRo,14188
|
|
52
52
|
flyte/_internal/controllers/remote/_service_protocol.py,sha256=B9qbIg6DiGeac-iSccLmX_AL2xUgX4ezNUOiAbSy4V0,1357
|
|
53
53
|
flyte/_internal/imagebuild/__init__.py,sha256=4fPz5RN3QB1DGw5O2sZo7x71F3EWhyE1jmCCqy4iezk,573
|
|
54
|
-
flyte/_internal/imagebuild/docker_builder.py,sha256=
|
|
54
|
+
flyte/_internal/imagebuild/docker_builder.py,sha256=4-AJLX9CgPmVblzV-caIn3uvHLIlBMntOUKUmC-ptM8,15927
|
|
55
55
|
flyte/_internal/imagebuild/image_builder.py,sha256=dXBXl62qcPabus6dR3eP8P9mBGNhpZHZ2Xm12AymKkk,11150
|
|
56
56
|
flyte/_internal/imagebuild/remote_builder.py,sha256=wm-D3xhdrk8OSQxeyI0nfMpw3P1gW7mqDKAOKOnwY6o,10089
|
|
57
57
|
flyte/_internal/resolvers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -63,7 +63,7 @@ flyte/_internal/runtime/convert.py,sha256=rvKXEDQxFLyAslSJeOrqeG1kkXaYxHWxkBMloa
|
|
|
63
63
|
flyte/_internal/runtime/entrypoints.py,sha256=Kyi19i7LYk7YM3ZV_Y4FXGt5Pc1tIftGkIDohopblyY,5127
|
|
64
64
|
flyte/_internal/runtime/io.py,sha256=Lgdy4iPjlKjUO-V_AkoPZff6lywaFjZUG-PErRukmx4,4248
|
|
65
65
|
flyte/_internal/runtime/resources_serde.py,sha256=TObMVsSjVcQhcY8-nY81pbvrz7TP-adDD5xV-LqAaxM,4813
|
|
66
|
-
flyte/_internal/runtime/task_serde.py,sha256=
|
|
66
|
+
flyte/_internal/runtime/task_serde.py,sha256=e_EMZIvcsqmY7f7RSmXmUjFhHefclxYd_P6LVknj0Qk,14425
|
|
67
67
|
flyte/_internal/runtime/taskrunner.py,sha256=rHWS4t5qgZnzGdGrs0_O0sSs_PVGoE1CNPDb-fTwwmo,7332
|
|
68
68
|
flyte/_internal/runtime/types_serde.py,sha256=EjRh9Yypx9-20XXQprtNgp766LeQVRoYWtY6XPGMZQg,1813
|
|
69
69
|
flyte/_protos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -153,7 +153,7 @@ flyte/_utils/uv_script_parser.py,sha256=PxqD8lSMi6xv0uDd1s8LKB2IPZr4ttZJCUweqlyM
|
|
|
153
153
|
flyte/cli/__init__.py,sha256=aeCcumeP9xD_5aCmaRYUPCe2QRJSGCaxcUbTZ3co768,341
|
|
154
154
|
flyte/cli/_abort.py,sha256=Ty-63Gtd2PUn6lCuL5AaasfBoPu7TDSU5EQKVbkF4qw,661
|
|
155
155
|
flyte/cli/_build.py,sha256=SBgybTVWOZ22VBHFL8CVFB_oo34lF9wvlwNirYFFyk0,3543
|
|
156
|
-
flyte/cli/_common.py,sha256=
|
|
156
|
+
flyte/cli/_common.py,sha256=prQPs8_qSNCvhBPgHa6AY8c9OwutWw3js9jd5vdL_kk,11161
|
|
157
157
|
flyte/cli/_create.py,sha256=8U4kePYmfW02j54184IurNYiTGvjdr3J-ERQM9goHdg,4715
|
|
158
158
|
flyte/cli/_delete.py,sha256=VTmXv09PBjkdtyl23mbSjIQQlN7Y1AI_bO0GkHP-f9E,546
|
|
159
159
|
flyte/cli/_deploy.py,sha256=Zxm7vn1zrqmll73CJTiVGYJI95P-XBI1AlhOlmbmkD0,4635
|
|
@@ -221,8 +221,8 @@ flyte/types/_renderer.py,sha256=ygcCo5l60lHufyQISFddZfWwLlQ8kJAKxUT_XnR_6dY,4818
|
|
|
221
221
|
flyte/types/_string_literals.py,sha256=NlG1xV8RSA-sZ-n-IFQCAsdB6jXJOAKkHWtnopxVVDk,4231
|
|
222
222
|
flyte/types/_type_engine.py,sha256=CCjpqXNX2BMza2cKq42hJXwabWy8GWsimsgiGZJ_00M,96583
|
|
223
223
|
flyte/types/_utils.py,sha256=pbts9E1_2LTdLygAY0UYTLYJ8AsN3BZyviSXvrtcutc,2626
|
|
224
|
-
flyte-0.2.
|
|
225
|
-
flyte-0.2.
|
|
226
|
-
flyte-0.2.
|
|
227
|
-
flyte-0.2.
|
|
228
|
-
flyte-0.2.
|
|
224
|
+
flyte-0.2.0b23.dist-info/METADATA,sha256=40x3MdlqXmAjoqEIVKPghhlV4xoHK27HIUrZPrz2Gdc,5857
|
|
225
|
+
flyte-0.2.0b23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
226
|
+
flyte-0.2.0b23.dist-info/entry_points.txt,sha256=MIq2z5dBurdCJfpXfMKzgBv7sJOakKRYxr8G0cMiTrg,75
|
|
227
|
+
flyte-0.2.0b23.dist-info/top_level.txt,sha256=7dkyFbikvA12LEZEqawx8oDG1CMod6hTliPj7iWzgYo,6
|
|
228
|
+
flyte-0.2.0b23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|