truefoundry 0.4.0rc3__py3-none-any.whl → 0.4.0rc4__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.

@@ -3,7 +3,7 @@ from enum import Enum
3
3
  from typing import Optional
4
4
 
5
5
  import jwt
6
- from typing_extensions import TypedDict
6
+ from typing_extensions import NotRequired, TypedDict
7
7
 
8
8
  from truefoundry.pydantic_v1 import BaseModel, Field, NonEmptyStr, validator
9
9
 
@@ -28,7 +28,7 @@ class _DecodedToken(TypedDict):
28
28
  tenantName: str
29
29
  exp: int
30
30
  username: str
31
- email: str
31
+ email: NotRequired[str]
32
32
  userType: UserType
33
33
 
34
34
 
@@ -101,11 +101,11 @@ def add_local_source_comment(code):
101
101
  return "\n".join(new_lines)
102
102
 
103
103
 
104
- def convert_deployment_config_to_python(workspace_fqn: str, deployment_config: dict):
104
+ def convert_deployment_config_to_python(workspace_fqn: str, application_spec: dict):
105
105
  """
106
106
  Convert a deployment config to a python file that can be used to deploy to a workspace
107
107
  """
108
- application = Application.parse_obj(deployment_config)
108
+ application = Application.parse_obj(application_spec)
109
109
  application_type = application.__root__.type
110
110
 
111
111
  spec_repr = get_python_repr(application.__root__)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: truefoundry
3
- Version: 0.4.0rc3
3
+ Version: 0.4.0rc4
4
4
  Summary: Truefoundry CLI
5
5
  Author: Abhishek Choudhary
6
6
  Author-email: abhishek@truefoundry.com
@@ -45,7 +45,7 @@ Requires-Dist: rich-click (>=1.2.1,<2.0.0)
45
45
  Requires-Dist: scipy (>=1.12.0,<2.0.0) ; python_version >= "3.12"
46
46
  Requires-Dist: scipy (>=1.5.0,<2.0.0) ; python_version < "3.12"
47
47
  Requires-Dist: tqdm (>=4.0.0,<5.0.0)
48
- Requires-Dist: typing-extensions (>=3.10.0)
48
+ Requires-Dist: typing-extensions (>=4.0)
49
49
  Requires-Dist: urllib3 (>=1.26.18,<3)
50
50
  Requires-Dist: uvicorn (>=0.13.0,<1.0.0)
51
51
  Requires-Dist: yq (>=3.1.0,<4.0.0)
@@ -30,7 +30,7 @@ truefoundry/common/auth_service_client.py,sha256=upUTo6VODAaOKtszCQZNWnPpRT8CEhp
30
30
  truefoundry/common/constants.py,sha256=kHP5ebp7EMfEYaOC-K8T_XPfYi7mXttYgrXYS8bOgkg,359
31
31
  truefoundry/common/credential_file_manager.py,sha256=MRn5h9Gm4pxZEF_XT-_b2agMBiqyw0o2SLpq9ty_1lY,4255
32
32
  truefoundry/common/credential_provider.py,sha256=UHr3tH39wGjhC3XdRUdgW7IZeh0cHSIEYJMVO8B4eyw,4107
33
- truefoundry/common/entities.py,sha256=FB7tcOl3oBKX_q5IkvQJYLAIv5WmRrgUSubDx_6fxzc,3771
33
+ truefoundry/common/entities.py,sha256=8O-EGPk4PKqnyoFMKUTxISCU19rz0KBnfRDJU695DhY,3797
34
34
  truefoundry/common/exceptions.py,sha256=ePpiQ_zmWe4e94gOgeMiyP_AZnKwjEBfyXsB5ScGYcI,329
35
35
  truefoundry/common/request_utils.py,sha256=-ss8033PClJOMJuS5Ue1zCFRVK7ZW9vjtva1b5G9uok,2849
36
36
  truefoundry/common/servicefoundry_client.py,sha256=ornmmhjSY2y-NJeBcoHPKxX3q9Z9XilcHERFSFk-dSU,2886
@@ -106,7 +106,7 @@ truefoundry/deploy/lib/model/entity.py,sha256=8J8yd98iWtSy8giShdDRNyzbN1UgSXx4Xt
106
106
  truefoundry/deploy/lib/session.py,sha256=e0iA-fWPBzxm5JqT4hnfv4NOpYexbrtRLSWLqqVtFzs,4986
107
107
  truefoundry/deploy/lib/util.py,sha256=RlL3bjZu5Z0LU_OKYaMVfcMU8k7_rmkAp89_0CrZDLk,1520
108
108
  truefoundry/deploy/lib/win32.py,sha256=1RcvPTdlOAJ48rt8rCbE2Ufha2ztRqBAE9dueNXArrY,5009
109
- truefoundry/deploy/python_deploy_codegen.py,sha256=SoXIyPKLCA-VxUlUKt9ZmSrNPVTzHwZISOSZQNf-nUc,4022
109
+ truefoundry/deploy/python_deploy_codegen.py,sha256=Ok7ufDY2x3aMJv9KpaRqxiS-ZI-kxBWauIUHst-ug7E,4020
110
110
  truefoundry/deploy/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
111
111
  truefoundry/deploy/v2/lib/__init__.py,sha256=WEiVMZXOVljzEE3tpGJil14liIn_PCDoACJ6b3tZ6sI,188
112
112
  truefoundry/deploy/v2/lib/deploy.py,sha256=HIcY3SzQ5lWl7avuuKi3J0Z-PBES6Sf4hgMK-m6_53U,11990
@@ -338,7 +338,7 @@ truefoundry/workflow/map_task.py,sha256=2m3qGXQ90k9LdS45q8dqCCECc3qr8t2m_LMCVd1m
338
338
  truefoundry/workflow/python_task.py,sha256=SRXRLC4vdBqGjhkwuaY39LEWN6iPCpJAuW17URRdWTY,1128
339
339
  truefoundry/workflow/task.py,sha256=ToitYiKcNzFCtOVQwz1W8sRjbR97eVS7vQBdbgUQtKg,1779
340
340
  truefoundry/workflow/workflow.py,sha256=WaTqUjhwfAXDWu4E5ehuwAxrCbDJkoAf1oWmR2E9Qy0,4575
341
- truefoundry-0.4.0rc3.dist-info/METADATA,sha256=1cuqkHPKYi-kxkBz_6Xqm0BLsiFHPghCOw8QpqpHHnk,3135
342
- truefoundry-0.4.0rc3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
343
- truefoundry-0.4.0rc3.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
344
- truefoundry-0.4.0rc3.dist-info/RECORD,,
341
+ truefoundry-0.4.0rc4.dist-info/METADATA,sha256=rNOIjLJcgcWxFnAurtE8uCOM0_kec9lEcoJ_hz-2H50,3132
342
+ truefoundry-0.4.0rc4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
343
+ truefoundry-0.4.0rc4.dist-info/entry_points.txt,sha256=TXvUxQkI6zmqJuycPsyxEIMr3oqfDjgrWj0m_9X12x4,95
344
+ truefoundry-0.4.0rc4.dist-info/RECORD,,