truefoundry 0.9.0__py3-none-any.whl → 0.9.1__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.

@@ -48,7 +48,8 @@ def _get_default_spec_file():
48
48
  )
49
49
  @click.option(
50
50
  "--wait/--no-wait",
51
- "--wait/--no_wait",
51
+ # The leading space is intentional. See: https://github.com/pallets/click/blob/2d610e36a429bfebf0adb0ca90cdc0585f296369/docs/options.md?plain=1#L295
52
+ " /--no_wait",
52
53
  is_flag=True,
53
54
  show_default=True,
54
55
  default=True,
@@ -39,7 +39,8 @@ from truefoundry.deploy.lib.dao import application as application_lib
39
39
  )
40
40
  @click.option(
41
41
  "--wait/--no-wait",
42
- "--wait/--no_wait",
42
+ # The leading space is intentional. See: https://github.com/pallets/click/blob/2d610e36a429bfebf0adb0ca90cdc0585f296369/docs/options.md?plain=1#L295
43
+ " /--no_wait",
43
44
  is_flag=True,
44
45
  show_default=True,
45
46
  default=True,
@@ -79,7 +79,46 @@ class SSHServer(models.SSHServer, DeployablePatchedModelBase):
79
79
  resources: models.Resources = Field(default_factory=models.Resources)
80
80
 
81
81
 
82
+ class Workflow(models.Workflow, DeployablePatchedModelBase):
83
+ type: Literal["workflow"] = "workflow"
84
+ source: Union[models.RemoteSource, models.LocalSource] = Field(
85
+ default_factory=lambda: LocalSource(local_build=False)
86
+ )
87
+
88
+ def deploy(
89
+ self, workspace_fqn: str, wait: bool = True, force: bool = False
90
+ ) -> Deployment:
91
+ from truefoundry.deploy.v2.lib.deploy_workflow import deploy_workflow
92
+
93
+ return deploy_workflow(
94
+ workflow=self, workspace_fqn=workspace_fqn, wait=wait, force=force
95
+ )
96
+
97
+
82
98
  class Application(models.Application, DeployablePatchedModelBase):
99
+ # We need a discriminator field to the root model to simplify the Validation errors
100
+ # Unfortunately cue export cannot add discriminator in OAS
101
+ # Even if we add it manually in OAS, `datamodel-code-generator` has bugs when discriminator field is enum type in member models.
102
+ # It will change the members to be incorrect like this
103
+ # class Service(BaseModel):
104
+ # type: Literal["Service"] = Field("Service") # notice the capital casing
105
+ # This is why we add it manually here
106
+
107
+ __root__: Union[
108
+ models.Service,
109
+ models.AsyncService,
110
+ models.Job,
111
+ models.Notebook,
112
+ models.Codeserver,
113
+ models.SSHServer,
114
+ models.RStudio,
115
+ models.Helm,
116
+ models.Volume,
117
+ models.ApplicationSet,
118
+ models.Workflow,
119
+ models.SparkJob,
120
+ ] = Field(..., description="", discriminator="type")
121
+
83
122
  def deploy(
84
123
  self, workspace_fqn: str, wait: bool = True, force: bool = False
85
124
  ) -> Deployment:
@@ -99,19 +138,3 @@ class Application(models.Application, DeployablePatchedModelBase):
99
138
  wait=wait,
100
139
  force=force,
101
140
  )
102
-
103
-
104
- class Workflow(models.Workflow, DeployablePatchedModelBase):
105
- type: Literal["workflow"] = "workflow"
106
- source: Union[models.RemoteSource, models.LocalSource] = Field(
107
- default_factory=lambda: LocalSource(local_build=False)
108
- )
109
-
110
- def deploy(
111
- self, workspace_fqn: str, wait: bool = True, force: bool = False
112
- ) -> Deployment:
113
- from truefoundry.deploy.v2.lib.deploy_workflow import deploy_workflow
114
-
115
- return deploy_workflow(
116
- workflow=self, workspace_fqn=workspace_fqn, wait=wait, force=force
117
- )
@@ -9,6 +9,7 @@ except ImportError:
9
9
 
10
10
  from flytekit import conditional
11
11
  from flytekit.types.directory import FlyteDirectory
12
+ from flytekit.types.error.error import FlyteError
12
13
  from flytekit.types.file import FlyteFile
13
14
 
14
15
  from truefoundry.common.constants import ENV_VARS
@@ -39,6 +40,7 @@ __all__ = [
39
40
  "PythonTaskConfig",
40
41
  "ExecutionConfig",
41
42
  "FlyteFile",
43
+ "FlyteError",
42
44
  ]
43
45
 
44
46
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: truefoundry
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: TrueFoundry CLI
5
5
  Author-email: TrueFoundry Team <abhishek@truefoundry.com>
6
6
  Requires-Python: <3.14,>=3.8.1
@@ -67,7 +67,7 @@ truefoundry/deploy/cli/commands/apply_command.py,sha256=Y2e_C8HVpo8CssVod-3JRz-8
67
67
  truefoundry/deploy/cli/commands/ask_command.py,sha256=9TDZVKEKhBvNx3NVz51bbkbbeeEMI3Xc85THnOGHM1g,5970
68
68
  truefoundry/deploy/cli/commands/build_command.py,sha256=zJBywMatbpUlXx5O2aqpEVmPeBIJ9RNnG9abSc8C8CE,1234
69
69
  truefoundry/deploy/cli/commands/delete_command.py,sha256=i_lr_MocTEPKF2VwLe8B7oZWsgXK06EX_43_xdM5DIs,3875
70
- truefoundry/deploy/cli/commands/deploy_command.py,sha256=8aTBvzPaT9xg6KPmpcpqJlmdj4yXzWUfAy6slcoPN74,4123
70
+ truefoundry/deploy/cli/commands/deploy_command.py,sha256=qpozW6RQa8EcLhrKtNrCoorBZU7p75XrmMUPX1c3EVM,4271
71
71
  truefoundry/deploy/cli/commands/deploy_init_command.py,sha256=g-jBfrEmhZ0TDWsyqPDn4K6q33EqJSGmBTt1eMYig-w,600
72
72
  truefoundry/deploy/cli/commands/get_command.py,sha256=bR8tAjQQhimzaTQ57L6BPJwcxQ_SGWCF5CqHDpxgG90,837
73
73
  truefoundry/deploy/cli/commands/k8s_exec_credential_command.py,sha256=EknpdufMAEnjSGMG7a-Jj7tkoiS5zmbJRREafb14Alw,2160
@@ -75,7 +75,7 @@ truefoundry/deploy/cli/commands/kubeconfig_command.py,sha256=v6LmDyf2YQPxPrueGlz
75
75
  truefoundry/deploy/cli/commands/login_command.py,sha256=kbEs4leyMYK2kz7L9ql2PXVgLVmCYo-LWtnntVVYLFY,1065
76
76
  truefoundry/deploy/cli/commands/logout_command.py,sha256=u3kfrEp0ETbrz40KjD4GCC3XEZ5YRAlrca_Df4U_mk0,536
77
77
  truefoundry/deploy/cli/commands/logs_command.py,sha256=osl2z5VaIceB9sYa6GtwsuyAPZKcw-A0oVEt3g1f62Q,4140
78
- truefoundry/deploy/cli/commands/patch_application_command.py,sha256=YdTlkWGI2gCMoVAgPJtybjuvRFqZq9tp6TqbCpwgXUY,2443
78
+ truefoundry/deploy/cli/commands/patch_application_command.py,sha256=aRTHu2OmxQd7j9iE0RavsFCkCILp0rGh4DJO51Oij5I,2591
79
79
  truefoundry/deploy/cli/commands/patch_command.py,sha256=wA95khMO9uVz8SaJlgYMUwaX7HagtchjyxXXATq83Bk,1665
80
80
  truefoundry/deploy/cli/commands/terminate_comand.py,sha256=UKhOdbAej8ubX3q44vpLrOotAcvH4vHpRZJQrRf_AfM,1077
81
81
  truefoundry/deploy/cli/commands/trigger_command.py,sha256=_qSl-AShepZpbGUGTfLfJGd74VJJ_wd3eXYt2DfxIFo,4716
@@ -109,7 +109,7 @@ truefoundry/deploy/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
109
109
  truefoundry/deploy/v2/lib/__init__.py,sha256=WEiVMZXOVljzEE3tpGJil14liIn_PCDoACJ6b3tZ6sI,188
110
110
  truefoundry/deploy/v2/lib/deploy.py,sha256=kAnh6RO4ci7AVjlIoN1Sr5FmcOU7nbkwNvbrS802spY,12625
111
111
  truefoundry/deploy/v2/lib/deploy_workflow.py,sha256=G5BzMIbap8pgDX1eY-TITruUxQdkKhYtBmRwLL6lDeY,14342
112
- truefoundry/deploy/v2/lib/deployable_patched_models.py,sha256=xbHFD3pURflvCm8EODPvjfvRrv67mlSrjPUknY8SMB8,4060
112
+ truefoundry/deploy/v2/lib/deployable_patched_models.py,sha256=xy7AGYmVpyk12RMrXxOHHkpNKpttPFi6AiLiKdpID20,4940
113
113
  truefoundry/deploy/v2/lib/models.py,sha256=ogc1UYs1Z2nBdGSKCrde9sk8d0GxFKMkem99uqO5CmM,1148
114
114
  truefoundry/deploy/v2/lib/patched_models.py,sha256=8ib9Y7b4-DoEml2zCv3V7QIqh4tLJUjzPj1AWomwvag,14775
115
115
  truefoundry/deploy/v2/lib/source.py,sha256=d6-8_6Zn5koBglqrBrY6ZLG_7yyPuLdyEmK4iZTw6xY,9405
@@ -365,7 +365,7 @@ truefoundry/ml/log_types/image/constants.py,sha256=wLtGEOA4T5fZHSlOXPuNDLX3lpbCt
365
365
  truefoundry/ml/log_types/image/image.py,sha256=sa0tBHdyluC8bELXY16E0HgFrUDnDBxHrteix4BFXcs,12479
366
366
  truefoundry/ml/log_types/image/image_normalizer.py,sha256=vrzfuSpVGgIxw_Q2sbFe7kQ_JpAndX0bMwC7wtfi41g,3104
367
367
  truefoundry/ml/log_types/image/types.py,sha256=inFQlyAyDvZtfliFpENirNCm1XO9beyZ8DNn97DoDKs,1568
368
- truefoundry/workflow/__init__.py,sha256=MNxnOh5fzAmDaK-cJy9qwtA-zH2CdOEP2h0q9lEiLgY,1588
368
+ truefoundry/workflow/__init__.py,sha256=8wjsorcOGzCAWGqLRbAUf8eyezxpnB4NvXHX_rdO7ks,1656
369
369
  truefoundry/workflow/container_task.py,sha256=8arieePsX4__OnG337hOtCiNgJwtKJJCsZcmFmCBJtk,402
370
370
  truefoundry/workflow/map_task.py,sha256=f9vcAPRQy0Ttw6bvdZBKUVJMSm4eGQrbE1GHWhepHIU,1864
371
371
  truefoundry/workflow/python_task.py,sha256=SRXRLC4vdBqGjhkwuaY39LEWN6iPCpJAuW17URRdWTY,1128
@@ -375,7 +375,7 @@ truefoundry/workflow/remote_filesystem/__init__.py,sha256=LQ95ViEjJ7Ts4JcCGOxMPs
375
375
  truefoundry/workflow/remote_filesystem/logger.py,sha256=em2l7D6sw7xTLDP0kQSLpgfRRCLpN14Qw85TN7ujQcE,1022
376
376
  truefoundry/workflow/remote_filesystem/tfy_signed_url_client.py,sha256=xcT0wQmQlgzcj0nP3tJopyFSVWT1uv3nhiTIuwfXYeg,12342
377
377
  truefoundry/workflow/remote_filesystem/tfy_signed_url_fs.py,sha256=nSGPZu0Gyd_jz0KsEE-7w_BmnTD8CVF1S8cUJoxaCbc,13305
378
- truefoundry-0.9.0.dist-info/METADATA,sha256=nfNsBa_uNPq_uhJD7zbHksMPNf5G7jVOnnp5hLP-fhw,2465
379
- truefoundry-0.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
380
- truefoundry-0.9.0.dist-info/entry_points.txt,sha256=xVjn7RMN-MW2-9f7YU-bBdlZSvvrwzhpX1zmmRmsNPU,98
381
- truefoundry-0.9.0.dist-info/RECORD,,
378
+ truefoundry-0.9.1.dist-info/METADATA,sha256=yLhzQUokgIWKvgpsTXBbzB6c0535kRCbWJdHnJMHmHo,2465
379
+ truefoundry-0.9.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
380
+ truefoundry-0.9.1.dist-info/entry_points.txt,sha256=xVjn7RMN-MW2-9f7YU-bBdlZSvvrwzhpX1zmmRmsNPU,98
381
+ truefoundry-0.9.1.dist-info/RECORD,,