truefoundry 0.3.0rc12__py3-none-any.whl → 0.3.0rc14__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.
- truefoundry/deploy/auto_gen/models.py +9 -5
- truefoundry/deploy/lib/session.py +1 -1
- truefoundry/deploy/v2/lib/deploy_workflow.py +4 -2
- {truefoundry-0.3.0rc12.dist-info → truefoundry-0.3.0rc14.dist-info}/METADATA +2 -2
- {truefoundry-0.3.0rc12.dist-info → truefoundry-0.3.0rc14.dist-info}/RECORD +7 -7
- {truefoundry-0.3.0rc12.dist-info → truefoundry-0.3.0rc14.dist-info}/WHEEL +0 -0
- {truefoundry-0.3.0rc12.dist-info → truefoundry-0.3.0rc14.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: application.json
|
|
3
|
-
# timestamp: 2024-08-
|
|
3
|
+
# timestamp: 2024-08-29T07:46:00+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -722,7 +722,7 @@ class PythonBuild(BaseModel):
|
|
|
722
722
|
..., description="+value=tfy-python-buildpack"
|
|
723
723
|
)
|
|
724
724
|
python_version: constr(regex=r"^\d+(\.\d+){1,2}([\-\.a-z0-9]+)?$") = Field(
|
|
725
|
-
"3.
|
|
725
|
+
"3.11",
|
|
726
726
|
description="+label=Python version\n+usage=Python version to run your application. Should be one of the tags listed on [Official Python Docker Page](https://hub.docker.com/_/python)\n+message=Please enter a valid Python version tag",
|
|
727
727
|
)
|
|
728
728
|
build_context_path: str = Field(
|
|
@@ -1018,7 +1018,7 @@ class TaskPythonBuild(BaseModel):
|
|
|
1018
1018
|
description="+docs=FQN of the container registry. You can the FQN of your desired container registry (or add one)\nin the Integrations page[Integrations](https://app.truefoundry.tech/integrations?tab=docker-registry) page\n+label=Docker Registry\n+usage=FQN of the container registry. If you can't find your registry here,\nadd it through the [Integrations](/integrations?tab=docker-registry) page",
|
|
1019
1019
|
)
|
|
1020
1020
|
python_version: constr(regex=r"^\d+(\.\d+){1,2}([\-\.a-z0-9]+)?$") = Field(
|
|
1021
|
-
"3.
|
|
1021
|
+
"3.11",
|
|
1022
1022
|
description="+label=Python version\n+usage=Python version to run your application. Should be one of the tags listed on [Official Python Docker Page](https://hub.docker.com/_/python)\n+message=Please enter a valid Python version tag",
|
|
1023
1023
|
)
|
|
1024
1024
|
requirements_path: Optional[str] = Field(
|
|
@@ -1109,11 +1109,11 @@ class WorkbenchImage(BaseModel):
|
|
|
1109
1109
|
)
|
|
1110
1110
|
build_script: Optional[constr(min_length=1, max_length=1024)] = Field(
|
|
1111
1111
|
None,
|
|
1112
|
-
description=
|
|
1112
|
+
description='+label=Build Script\n+usage=The build script to run when building the image.\nThis will be executed as the last step in the docker build process as the root user (RUN DEBIAN_FRONTEND=noninteractive bash -ex build_script.sh)\n+placeholder=Enter the build script\n+uiType=CodeEditor\n+uiProps={"language":"shell"}',
|
|
1113
1113
|
)
|
|
1114
1114
|
docker_registry: Optional[str] = Field(
|
|
1115
1115
|
None,
|
|
1116
|
-
description=
|
|
1116
|
+
description='+docs=FQN of the container registry. You can the FQN of your desired container registry (or add one)\nin the Integrations page[Integrations](https://app.truefoundry.tech/integrations?tab=docker-registry) page\n+label=Docker Registry\n+uiType=IntegrationSelect\n+uiProps={"integrationType":"docker-registry"}\n+usage=FQN of the container registry. If you can\'t find your registry here,\nadd it through the [Integrations](/integrations?tab=docker-registry) page',
|
|
1117
1117
|
)
|
|
1118
1118
|
|
|
1119
1119
|
|
|
@@ -1693,6 +1693,10 @@ class ApplicationSet(BaseModel):
|
|
|
1693
1693
|
None,
|
|
1694
1694
|
description='+label=Values\n+usage=Values to be used to render components for the application set.\n+icon=fa-file\n+uiType=YamlInput\n+uiProps={"allowAllValues":true}',
|
|
1695
1695
|
)
|
|
1696
|
+
workspace_fqn: Optional[str] = Field(
|
|
1697
|
+
None,
|
|
1698
|
+
description="+label=Workspace FQN\n+docs=Fully qualified name of the workspace\n+uiType=Hidden",
|
|
1699
|
+
)
|
|
1696
1700
|
|
|
1697
1701
|
|
|
1698
1702
|
class Application(BaseModel):
|
|
@@ -147,10 +147,10 @@ def _login_with_device_code(
|
|
|
147
147
|
message = f"Please open the following URL in a browser and enter the code {device_code.user_code} when prompted: {device_code.verification_url}"
|
|
148
148
|
else:
|
|
149
149
|
auto_open_url = device_code.get_user_clickable_url(auth_host=base_url)
|
|
150
|
-
output_hook.print_line(message)
|
|
151
150
|
if auto_open_url:
|
|
152
151
|
output_hook.print_line(f"Opening:- {auto_open_url}")
|
|
153
152
|
click.launch(auto_open_url)
|
|
153
|
+
output_hook.print_line(message)
|
|
154
154
|
return auth_service.get_token_from_device_code(
|
|
155
155
|
device_code=device_code.device_code,
|
|
156
156
|
timeout=device_code.expires_in_seconds,
|
|
@@ -283,11 +283,13 @@ def deploy_workflow(
|
|
|
283
283
|
)
|
|
284
284
|
|
|
285
285
|
client = ServiceFoundryServiceClient()
|
|
286
|
-
|
|
286
|
+
deployment = client.deploy_application(
|
|
287
287
|
workspace_id=workspace_id, application=workflow
|
|
288
288
|
)
|
|
289
289
|
logger.info(
|
|
290
290
|
"🚀 Deployment started for application '%s'. Deployment FQN is '%s'.",
|
|
291
291
|
workflow.name,
|
|
292
|
-
|
|
292
|
+
deployment.fqn,
|
|
293
293
|
)
|
|
294
|
+
deployment_url = f"{client.base_url.strip('/')}/applications/{deployment.applicationId}?tab=deployments"
|
|
295
|
+
logger.info("You can find the application on the dashboard:- '%s'", deployment_url)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: truefoundry
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.0rc14
|
|
4
4
|
Summary: Truefoundry CLI
|
|
5
5
|
Author: Abhishek Choudhary
|
|
6
6
|
Author-email: abhishek@truefoundry.com
|
|
@@ -24,7 +24,7 @@ Requires-Dist: flytekit (==1.12.2) ; extra == "workflow"
|
|
|
24
24
|
Requires-Dist: gitignorefile (>=1.1.2,<1.2.0)
|
|
25
25
|
Requires-Dist: importlib-metadata (>=6.0.1,<8.0.0)
|
|
26
26
|
Requires-Dist: importlib-resources (>=5.2.0,<6.0.0)
|
|
27
|
-
Requires-Dist: mlfoundry (==0.11.
|
|
27
|
+
Requires-Dist: mlfoundry (==0.11.5) ; extra == "ml"
|
|
28
28
|
Requires-Dist: openai (>=1.16.2,<2.0.0)
|
|
29
29
|
Requires-Dist: packaging (>=20.0,<25.0)
|
|
30
30
|
Requires-Dist: pydantic (>=1.10.0,<3)
|
|
@@ -26,7 +26,7 @@ truefoundry/autodeploy/utils/pydantic_compat.py,sha256=hEAUy5kLjhPdzw7yGZ2iXGMXb
|
|
|
26
26
|
truefoundry/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
truefoundry/cli/__main__.py,sha256=Jap_IddZ9zNyMIyIkCw75xHQCN0WtV2dPZJ_pzdLsVc,916
|
|
28
28
|
truefoundry/deploy/__init__.py,sha256=ugawKF2G02EmEXX35oZ2tec12d9oWN28Sf6mtGGIERY,2281
|
|
29
|
-
truefoundry/deploy/auto_gen/models.py,sha256=
|
|
29
|
+
truefoundry/deploy/auto_gen/models.py,sha256=dSdqqor8TcbZzBAsqJnvOpeArWD7K15DCE9QwYJH8kg,78708
|
|
30
30
|
truefoundry/deploy/builder/__init__.py,sha256=a1qR6nicHGcxRaeNTxWRsmDs8zsmXc7j13-I8q0qqVk,4938
|
|
31
31
|
truefoundry/deploy/builder/builders/__init__.py,sha256=tlFLXqyDaKLd4iZbo4Hcu_8gOmgtL6drnXpbmQ6x1P8,636
|
|
32
32
|
truefoundry/deploy/builder/builders/dockerfile.py,sha256=AXXTziCkaqIhuM_bwyD1vT1znOwemN1TKgU7eyo-KuM,1522
|
|
@@ -97,13 +97,13 @@ truefoundry/deploy/lib/logs_utils.py,sha256=SQxRv3jDDmgHdOUMhlMaAPGYskybnBUMpst7
|
|
|
97
97
|
truefoundry/deploy/lib/messages.py,sha256=nhp0bCYf_XpUM68hTq5lBY-__vtEyV2uP7NgnJXJ_Vg,925
|
|
98
98
|
truefoundry/deploy/lib/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
99
99
|
truefoundry/deploy/lib/model/entity.py,sha256=aNiQ7kK_V1kH7C_VC6HP7ibas_9Ohkoqzs-WdTfrrf4,12037
|
|
100
|
-
truefoundry/deploy/lib/session.py,sha256=
|
|
100
|
+
truefoundry/deploy/lib/session.py,sha256=imI75wXmozCjygIa_s4IXoYkkBlkLuYZoq0LFV0zT8U,5844
|
|
101
101
|
truefoundry/deploy/lib/util.py,sha256=sNMv9peDU7RTCDaAfyWPpPpCs_WcZGqOvc13Jqx9y6w,2809
|
|
102
102
|
truefoundry/deploy/lib/win32.py,sha256=1RcvPTdlOAJ48rt8rCbE2Ufha2ztRqBAE9dueNXArrY,5009
|
|
103
103
|
truefoundry/deploy/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
104
104
|
truefoundry/deploy/v2/lib/__init__.py,sha256=WEiVMZXOVljzEE3tpGJil14liIn_PCDoACJ6b3tZ6sI,188
|
|
105
105
|
truefoundry/deploy/v2/lib/deploy.py,sha256=vmaevT86nfrgephRjinhSVFEZHVc9R09vZBKKUoeUWI,11640
|
|
106
|
-
truefoundry/deploy/v2/lib/deploy_workflow.py,sha256=
|
|
106
|
+
truefoundry/deploy/v2/lib/deploy_workflow.py,sha256=WhlrBuRf7r83qoQdTZSQzHt635fw9D4_qQIqusFWGag,12372
|
|
107
107
|
truefoundry/deploy/v2/lib/deployable_patched_models.py,sha256=YVeTiasyf0s-QXjDqdvGSmN83oVAQ0h9g6F687PJyVI,3141
|
|
108
108
|
truefoundry/deploy/v2/lib/models.py,sha256=pSolLMTArDuYpeNsmeeS5DWliloN_iCDfZSpRllMHUg,1120
|
|
109
109
|
truefoundry/deploy/v2/lib/patched_models.py,sha256=qL3N7y6zf7jywx6uY-yMxsH65NB367V_82o47ZYJt1I,13820
|
|
@@ -130,7 +130,7 @@ truefoundry/workflow/map_task.py,sha256=2m3qGXQ90k9LdS45q8dqCCECc3qr8t2m_LMCVd1m
|
|
|
130
130
|
truefoundry/workflow/python_task.py,sha256=SRXRLC4vdBqGjhkwuaY39LEWN6iPCpJAuW17URRdWTY,1128
|
|
131
131
|
truefoundry/workflow/task.py,sha256=ToitYiKcNzFCtOVQwz1W8sRjbR97eVS7vQBdbgUQtKg,1779
|
|
132
132
|
truefoundry/workflow/workflow.py,sha256=WaTqUjhwfAXDWu4E5ehuwAxrCbDJkoAf1oWmR2E9Qy0,4575
|
|
133
|
-
truefoundry-0.3.
|
|
134
|
-
truefoundry-0.3.
|
|
135
|
-
truefoundry-0.3.
|
|
136
|
-
truefoundry-0.3.
|
|
133
|
+
truefoundry-0.3.0rc14.dist-info/METADATA,sha256=VYMJcfmpfsg-A35fwDdJbd9vqYERPfaZmRMriY_-mt4,2694
|
|
134
|
+
truefoundry-0.3.0rc14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
135
|
+
truefoundry-0.3.0rc14.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
|
|
136
|
+
truefoundry-0.3.0rc14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|