truefoundry 0.4.7rc1__py3-none-any.whl → 0.4.8rc0__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 truefoundry might be problematic. Click here for more details.

@@ -11,7 +11,10 @@ from flytekit.configuration import (
11
11
  )
12
12
  from flytekit.configuration import Image as FlytekitImage
13
13
  from flytekit.models.launch_plan import LaunchPlan as FlyteLaunchPlan
14
- from flytekit.tools.repo import serialize as serialize_workflow
14
+ from flytekit.tools.repo import (
15
+ serialize_get_control_plane_entities as get_serialized_entities,
16
+ )
17
+ from flytekit.tools.repo import serialize_load_only as serialize_workflow
15
18
  from flytekit.tools.translator import TaskSpec as FlyteTaskSpec
16
19
  from flytekit.tools.translator import WorkflowSpec as FlyteWorkflowSpec
17
20
  from google.protobuf.json_format import MessageToDict
@@ -207,9 +210,12 @@ def _generate_manifest_for_workflow(
207
210
  project_root_path=source_absolute_path, filepath=workflow_file_absolute_path
208
211
  )
209
212
 
210
- workflow_entities = serialize_workflow(
213
+ serialize_workflow(
211
214
  pkgs=[package_path], settings=settings, local_source_root=source_absolute_path
212
215
  )
216
+ workflow_entities = get_serialized_entities(
217
+ settings, local_source_root=source_absolute_path
218
+ )
213
219
  _validate_workflow_entities(workflow_entities, source_absolute_path)
214
220
 
215
221
  workflow.flyte_entities = []
@@ -130,7 +130,7 @@ class SignedURLClient:
130
130
  def _upload_data(
131
131
  self,
132
132
  signed_url: str,
133
- data: Union[bytes, io.TextIOWrapper],
133
+ data: Union[bytes, io.BufferedReader],
134
134
  headers: Optional[Dict] = None,
135
135
  ) -> None:
136
136
  """
@@ -140,7 +140,7 @@ class SignedURLClient:
140
140
  signed_url: str: The signed URL to upload the data to.
141
141
  data: Bytes or IO: The data to upload.
142
142
  """
143
- if isinstance(data, io.TextIOWrapper):
143
+ if isinstance(data, io.BufferedReader):
144
144
  if os.fstat(data.fileno()).st_size == 0:
145
145
  data = b""
146
146
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: truefoundry
3
- Version: 0.4.7rc1
3
+ Version: 0.4.8rc0
4
4
  Summary: Truefoundry CLI
5
5
  Author: Abhishek Choudhary
6
6
  Author-email: abhishek@truefoundry.com
@@ -21,7 +21,7 @@ Requires-Dist: coolname (>=1.1.0,<2.0.0)
21
21
  Requires-Dist: docker (>=6.1.2,<8.0.0)
22
22
  Requires-Dist: fastapi (>=0.56.0,<0.200.0)
23
23
  Requires-Dist: filelock (>=3.8.0,<4.0.0)
24
- Requires-Dist: flytekit (==1.12.2) ; extra == "workflow"
24
+ Requires-Dist: flytekit (==1.13.13) ; extra == "workflow"
25
25
  Requires-Dist: gitignorefile (>=1.1.2,<2.0.0)
26
26
  Requires-Dist: importlib-metadata (>=4.11.3,<9.0.0)
27
27
  Requires-Dist: importlib-resources (>=5.2.0,<7.0.0)
@@ -111,7 +111,7 @@ truefoundry/deploy/python_deploy_codegen.py,sha256=qJHH1BJQII9e6PhkcRFYiE_3De7_V
111
111
  truefoundry/deploy/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
112
112
  truefoundry/deploy/v2/lib/__init__.py,sha256=WEiVMZXOVljzEE3tpGJil14liIn_PCDoACJ6b3tZ6sI,188
113
113
  truefoundry/deploy/v2/lib/deploy.py,sha256=HIcY3SzQ5lWl7avuuKi3J0Z-PBES6Sf4hgMK-m6_53U,11990
114
- truefoundry/deploy/v2/lib/deploy_workflow.py,sha256=WhlrBuRf7r83qoQdTZSQzHt635fw9D4_qQIqusFWGag,12372
114
+ truefoundry/deploy/v2/lib/deploy_workflow.py,sha256=hgAhd1EGwFLz319Vs-WNXHDJmbKjdgkGPzDnBD1Up1k,12579
115
115
  truefoundry/deploy/v2/lib/deployable_patched_models.py,sha256=MROgMxhn9hDEAKwJSWl3iz12tUVvRKzEtqF2QUT6dAk,3343
116
116
  truefoundry/deploy/v2/lib/models.py,sha256=pSolLMTArDuYpeNsmeeS5DWliloN_iCDfZSpRllMHUg,1120
117
117
  truefoundry/deploy/v2/lib/patched_models.py,sha256=sokVDUdnhe3qx6dXlHM0shbf6HvSlF72-mvi8Lzt_Y8,13968
@@ -351,11 +351,11 @@ truefoundry/workflow/map_task.py,sha256=2m3qGXQ90k9LdS45q8dqCCECc3qr8t2m_LMCVd1m
351
351
  truefoundry/workflow/python_task.py,sha256=SRXRLC4vdBqGjhkwuaY39LEWN6iPCpJAuW17URRdWTY,1128
352
352
  truefoundry/workflow/remote_filesystem/__init__.py,sha256=LQ95ViEjJ7Ts4JcCGOxMPs7NZmQdZ4bTiq6qXtsjUhE,206
353
353
  truefoundry/workflow/remote_filesystem/logger.py,sha256=em2l7D6sw7xTLDP0kQSLpgfRRCLpN14Qw85TN7ujQcE,1022
354
- truefoundry/workflow/remote_filesystem/tfy_signed_url_client.py,sha256=Se-EOXKxaKaj5tCkOEx4OVtoCBijr4WICK0MHKymXTU,11083
354
+ truefoundry/workflow/remote_filesystem/tfy_signed_url_client.py,sha256=5mBCIc-ON7VSTzdyczeADgqSX5oJgso5gq2yT2AQqTY,11085
355
355
  truefoundry/workflow/remote_filesystem/tfy_signed_url_fs.py,sha256=Hf6Dk6Fu6P7DqsK5ULgraf9DStjgigf-kjaRAMBW-RU,8680
356
356
  truefoundry/workflow/task.py,sha256=ToitYiKcNzFCtOVQwz1W8sRjbR97eVS7vQBdbgUQtKg,1779
357
357
  truefoundry/workflow/workflow.py,sha256=WaTqUjhwfAXDWu4E5ehuwAxrCbDJkoAf1oWmR2E9Qy0,4575
358
- truefoundry-0.4.7rc1.dist-info/METADATA,sha256=jzkcCUmOaBuvyPbS2WY9QqhFouTXqZjXbOMEzmDfJXM,3101
359
- truefoundry-0.4.7rc1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
360
- truefoundry-0.4.7rc1.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
361
- truefoundry-0.4.7rc1.dist-info/RECORD,,
358
+ truefoundry-0.4.8rc0.dist-info/METADATA,sha256=29yqtR3hnoaIvy_2VfJprq87Jj1ycisFuMBTYVhGrTY,3102
359
+ truefoundry-0.4.8rc0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
360
+ truefoundry-0.4.8rc0.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
361
+ truefoundry-0.4.8rc0.dist-info/RECORD,,