truefoundry 0.11.12__py3-none-any.whl → 0.12.0__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/common/constants.py +8 -1
- truefoundry/common/utils.py +4 -0
- truefoundry/deploy/__init__.py +3 -0
- truefoundry/deploy/_autogen/models.py +192 -145
- truefoundry/deploy/builder/__init__.py +1 -0
- truefoundry/deploy/builder/builders/dockerfile.py +4 -6
- truefoundry/deploy/builder/builders/tfy_python_buildpack/__init__.py +3 -6
- truefoundry/deploy/builder/builders/tfy_python_buildpack/dockerfile_template.py +351 -84
- truefoundry/deploy/builder/builders/tfy_spark_buildpack/__init__.py +3 -7
- truefoundry/deploy/builder/builders/tfy_spark_buildpack/dockerfile_template.py +19 -25
- truefoundry/deploy/builder/builders/tfy_task_pyspark_buildpack/__init__.py +3 -7
- truefoundry/deploy/builder/builders/tfy_task_pyspark_buildpack/dockerfile_template.py +19 -29
- truefoundry/deploy/builder/constants.py +12 -0
- truefoundry/deploy/builder/utils.py +223 -21
- truefoundry/deploy/lib/util.py +120 -0
- truefoundry/deploy/v2/lib/deploy.py +7 -1
- truefoundry/deploy/v2/lib/patched_models.py +60 -11
- truefoundry/deploy/v2/lib/source.py +6 -31
- {truefoundry-0.11.12.dist-info → truefoundry-0.12.0.dist-info}/METADATA +2 -1
- {truefoundry-0.11.12.dist-info → truefoundry-0.12.0.dist-info}/RECORD +22 -22
- {truefoundry-0.11.12.dist-info → truefoundry-0.12.0.dist-info}/WHEEL +0 -0
- {truefoundry-0.11.12.dist-info → truefoundry-0.12.0.dist-info}/entry_points.txt +0 -0
|
@@ -9,6 +9,7 @@ import gitignorefile
|
|
|
9
9
|
from tqdm import tqdm
|
|
10
10
|
|
|
11
11
|
from truefoundry.common.types import UploadCodePackageCallable
|
|
12
|
+
from truefoundry.common.utils import get_expanded_and_absolute_path
|
|
12
13
|
from truefoundry.common.warnings import TrueFoundryDeprecationWarning
|
|
13
14
|
from truefoundry.deploy import builder
|
|
14
15
|
from truefoundry.deploy._autogen import models
|
|
@@ -141,15 +142,8 @@ def local_source_to_remote_source(
|
|
|
141
142
|
) -> RemoteSource:
|
|
142
143
|
with tempfile.TemporaryDirectory() as local_dir:
|
|
143
144
|
package_local_path = os.path.join(local_dir, "build.tar.gz")
|
|
144
|
-
source_dir =
|
|
145
|
-
|
|
146
|
-
if not os.path.exists(source_dir):
|
|
147
|
-
raise ValueError(
|
|
148
|
-
f"project root path {source_dir!r} of component {component_name!r} does not exist"
|
|
149
|
-
)
|
|
150
|
-
|
|
145
|
+
source_dir = get_expanded_and_absolute_path(local_source.project_root_path)
|
|
151
146
|
logger.info("Archiving contents of dir: %r", source_dir)
|
|
152
|
-
|
|
153
147
|
is_path_ignored = _get_callback_handler_to_ignore_file_path(source_dir)
|
|
154
148
|
_make_tarfile(
|
|
155
149
|
output_filename=package_local_path,
|
|
@@ -182,33 +176,14 @@ def local_source_to_image(
|
|
|
182
176
|
component_name: str,
|
|
183
177
|
) -> Image:
|
|
184
178
|
build = build.copy(deep=True)
|
|
185
|
-
source_dir =
|
|
186
|
-
os.path.expanduser(build.build_source.project_root_path)
|
|
187
|
-
)
|
|
188
|
-
if not os.path.exists(source_dir):
|
|
189
|
-
raise ValueError(
|
|
190
|
-
f"project root path {source_dir!r} of component {component_name!r} does not exist"
|
|
191
|
-
)
|
|
192
|
-
|
|
193
|
-
build.build_spec.build_context_path = os.path.join(
|
|
194
|
-
source_dir, build.build_spec.build_context_path
|
|
195
|
-
)
|
|
196
|
-
if not os.path.exists(build.build_spec.build_context_path):
|
|
197
|
-
raise ValueError(
|
|
198
|
-
f"Build context path {build.build_spec.build_context_path!r} "
|
|
199
|
-
f"of component {component_name!r} does not exist"
|
|
200
|
-
)
|
|
201
|
-
|
|
179
|
+
source_dir = get_expanded_and_absolute_path(build.build_source.project_root_path)
|
|
202
180
|
if isinstance(build.build_spec, models.DockerFileBuild):
|
|
203
181
|
build.build_spec.dockerfile_path = os.path.join(
|
|
204
182
|
source_dir, build.build_spec.dockerfile_path
|
|
205
183
|
)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
f"of component {component_name!r} does not exist"
|
|
210
|
-
)
|
|
211
|
-
|
|
184
|
+
build.build_spec.build_context_path = os.path.join(
|
|
185
|
+
source_dir, build.build_spec.build_context_path
|
|
186
|
+
)
|
|
212
187
|
client = ServiceFoundryServiceClient()
|
|
213
188
|
|
|
214
189
|
workspace = workspace_lib.get_workspace_by_fqn(workspace_fqn=workspace_fqn)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: truefoundry
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.0
|
|
4
4
|
Summary: TrueFoundry CLI
|
|
5
5
|
Author-email: TrueFoundry Team <abhishek@truefoundry.com>
|
|
6
6
|
Requires-Python: <3.14,>=3.8.1
|
|
@@ -13,6 +13,7 @@ Requires-Dist: gitignorefile<2.0.0,>=1.1.2
|
|
|
13
13
|
Requires-Dist: gitpython<4.0.0,>=3.1.43
|
|
14
14
|
Requires-Dist: importlib-metadata<9.0.0,>=4.11.3
|
|
15
15
|
Requires-Dist: importlib-resources<7.0.0,>=5.2.0
|
|
16
|
+
Requires-Dist: jinja2<4.0.0,>=3.1.6
|
|
16
17
|
Requires-Dist: mako<2.0.0,>=1.1.6
|
|
17
18
|
Requires-Dist: numpy<3.0.0,>=1.23.0
|
|
18
19
|
Requires-Dist: openai<2.0.0,>=1.16.2
|
|
@@ -40,7 +40,7 @@ truefoundry/cli/display_util.py,sha256=9vzN3mbQqU6OhS7qRUiMRana4PTHa4sDTA0Hn7OVj
|
|
|
40
40
|
truefoundry/cli/util.py,sha256=kEjC20-n_jwxZV9jq-78CxDk4xAySxAoYIXTxZfJzLM,5423
|
|
41
41
|
truefoundry/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
42
42
|
truefoundry/common/auth_service_client.py,sha256=N3YxKlx63r6cPZqbgb2lqBOPI69ShB7D7RCIq4FSCjc,7949
|
|
43
|
-
truefoundry/common/constants.py,sha256=
|
|
43
|
+
truefoundry/common/constants.py,sha256=UdCa5nuBpNldleMsRGKK9F_5jEN93uLFeC3laGKVLzc,5010
|
|
44
44
|
truefoundry/common/credential_file_manager.py,sha256=1yEk1Zm2xS4G0VDFwKSZ4w0VUrcPWQ1nJnoBaz9xyKA,4251
|
|
45
45
|
truefoundry/common/credential_provider.py,sha256=_OhJ2XFlDaVsrUO-FyywxctcGGqDdC2pgcvwEKqQD0Q,4071
|
|
46
46
|
truefoundry/common/entities.py,sha256=b4R6ss06-ygDS3C4Tqa_GOq5LFKDYbt7x4Mghnfz6yo,4007
|
|
@@ -50,26 +50,26 @@ truefoundry/common/servicefoundry_client.py,sha256=2fYhdVPSvLXz5C5tosOq86JD8WM3I
|
|
|
50
50
|
truefoundry/common/session.py,sha256=d9l3TEBpqVP4mr4mTGY1qVxc815skzMlNNdw14otg34,2923
|
|
51
51
|
truefoundry/common/storage_provider_utils.py,sha256=jX9maCtWusZx63324cmPxHiGeIluZZzbDaJ1QYTIhAw,11856
|
|
52
52
|
truefoundry/common/types.py,sha256=BMJFCsR1lPJAw66IQBSvLyV4I6o_x5oj78gVsUa9si8,188
|
|
53
|
-
truefoundry/common/utils.py,sha256=
|
|
53
|
+
truefoundry/common/utils.py,sha256=SMpinsdXuAkIUXe7gBB8v-dWe1x2_VHdXTkA0btksDc,6816
|
|
54
54
|
truefoundry/common/warnings.py,sha256=xDMhR_-ZGC40Ycaj6nlFb5MYPexn8WbKCHd4FlflTXQ,705
|
|
55
|
-
truefoundry/deploy/__init__.py,sha256=
|
|
55
|
+
truefoundry/deploy/__init__.py,sha256=g_g5_XKCZZXL3v_ycQhvn01bkMHweNqhOy1rg6vc5-k,2903
|
|
56
56
|
truefoundry/deploy/python_deploy_codegen.py,sha256=WwP6bIzFoLpF7J2Bgef2HMSIeefJ8TWtSv4hXNycEzQ,8872
|
|
57
|
-
truefoundry/deploy/_autogen/models.py,sha256=
|
|
58
|
-
truefoundry/deploy/builder/__init__.py,sha256=
|
|
59
|
-
truefoundry/deploy/builder/constants.py,sha256=
|
|
57
|
+
truefoundry/deploy/_autogen/models.py,sha256=FwhfLrqrjFWY8Mzny2hlL2ksqDfVUMFFJsPb99nJ1Mc,78183
|
|
58
|
+
truefoundry/deploy/builder/__init__.py,sha256=7MEezQzxjrWpbvnONyGMqYNVVonlb8WkARob4dHzAB4,5045
|
|
59
|
+
truefoundry/deploy/builder/constants.py,sha256=aWC94kL8I8Lty9ccJwBVncsNx4ADTgPxyBxk_zur6XM,980
|
|
60
60
|
truefoundry/deploy/builder/docker_service.py,sha256=sm7GWeIqyrKaZpxskdLejZlsxcZnM3BTDJr6orvPN4E,3948
|
|
61
|
-
truefoundry/deploy/builder/utils.py,sha256=
|
|
61
|
+
truefoundry/deploy/builder/utils.py,sha256=YJVwSfzwc5OF6rDd_Gf-R1J0llARTvQ2CsauQrGP7_I,10465
|
|
62
62
|
truefoundry/deploy/builder/builders/__init__.py,sha256=Gp9NODR1E7mUjadhzIe3zzO43bBfHPeNcEDryYF2uo0,807
|
|
63
|
-
truefoundry/deploy/builder/builders/dockerfile.py,sha256=
|
|
63
|
+
truefoundry/deploy/builder/builders/dockerfile.py,sha256=PoEyWBm5NmBDIL0pAzPPt2IWXbAQTVOZ-psT5ZXxQdI,1517
|
|
64
64
|
truefoundry/deploy/builder/builders/tfy_notebook_buildpack/__init__.py,sha256=RGWGqY8xOF7vycUPJd10N7ZzahWv24lO0anrOPtLuDU,1796
|
|
65
65
|
truefoundry/deploy/builder/builders/tfy_notebook_buildpack/dockerfile_template.py,sha256=rQgdvKmAT9HArVW4TAG5yd2QTKRs3S5LJ9RQbc_EkHE,2518
|
|
66
|
-
truefoundry/deploy/builder/builders/tfy_python_buildpack/__init__.py,sha256=
|
|
67
|
-
truefoundry/deploy/builder/builders/tfy_python_buildpack/dockerfile_template.py,sha256=
|
|
68
|
-
truefoundry/deploy/builder/builders/tfy_spark_buildpack/__init__.py,sha256=
|
|
69
|
-
truefoundry/deploy/builder/builders/tfy_spark_buildpack/dockerfile_template.py,sha256=
|
|
66
|
+
truefoundry/deploy/builder/builders/tfy_python_buildpack/__init__.py,sha256=CGBZvmLoYLgFI98-1ulXJU-tt90OcDFJaV4dFw-aThE,1763
|
|
67
|
+
truefoundry/deploy/builder/builders/tfy_python_buildpack/dockerfile_template.py,sha256=MGLxzrOeOr6WycqssMugmh4e44f870hP7LpRoGOT9aQ,16448
|
|
68
|
+
truefoundry/deploy/builder/builders/tfy_spark_buildpack/__init__.py,sha256=4d-1lZrR70QN2fTsAaphWNRwXGx5IG99yFs6gEp7TFE,2625
|
|
69
|
+
truefoundry/deploy/builder/builders/tfy_spark_buildpack/dockerfile_template.py,sha256=m9NMv8tDQvYQs8v5wB9hCHdJRM7L2ct3OOcAg5l0JfQ,4193
|
|
70
70
|
truefoundry/deploy/builder/builders/tfy_spark_buildpack/tfy_execute_notebook.py,sha256=-D37Zjy2SBt3RHxonPEpR1_LR0W7vTSM1kQ1S-fdK-I,6363
|
|
71
|
-
truefoundry/deploy/builder/builders/tfy_task_pyspark_buildpack/__init__.py,sha256=
|
|
72
|
-
truefoundry/deploy/builder/builders/tfy_task_pyspark_buildpack/dockerfile_template.py,sha256=
|
|
71
|
+
truefoundry/deploy/builder/builders/tfy_task_pyspark_buildpack/__init__.py,sha256=9LkPTAydx8UVOfKfEqfe5t7vgnc2GuNiUafCv5jcUVw,1556
|
|
72
|
+
truefoundry/deploy/builder/builders/tfy_task_pyspark_buildpack/dockerfile_template.py,sha256=3W8_lMIVgQFc8p9btU4wOAduiOUXB-hnnbqAQ7K5Eks,4044
|
|
73
73
|
truefoundry/deploy/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
74
74
|
truefoundry/deploy/cli/commands/__init__.py,sha256=qv818jxqSAygJ3h-6Ul8t-5VOgR_UrSgsVtNCl3e5G0,1408
|
|
75
75
|
truefoundry/deploy/cli/commands/apply_command.py,sha256=DmXmKVokkauyKIiJDtErTwbJ5_LvQeJbTQsG5BjyKpo,2427
|
|
@@ -101,7 +101,7 @@ truefoundry/deploy/lib/diff_utils.py,sha256=J1sAf5O4rHNHS_MOkcB0CyaeQFtU_ALI-wd-
|
|
|
101
101
|
truefoundry/deploy/lib/logs_utils.py,sha256=SQxRv3jDDmgHdOUMhlMaAPGYskybnBUMpst7QU_i_sc,1469
|
|
102
102
|
truefoundry/deploy/lib/messages.py,sha256=8424kj3kqCyDCX5Nr2WJZZ_UEutPoaSs_y2f9-O4yy8,1001
|
|
103
103
|
truefoundry/deploy/lib/session.py,sha256=fLdgR6ZDp8-hFl5NTON4ngnWLsMzGxvKtfpDOOw_7lo,4963
|
|
104
|
-
truefoundry/deploy/lib/util.py,sha256=
|
|
104
|
+
truefoundry/deploy/lib/util.py,sha256=QLED4zF_g_WE67MCrZQy1nrLcuiLwInLEqxYdLmOu90,5326
|
|
105
105
|
truefoundry/deploy/lib/win32.py,sha256=1RcvPTdlOAJ48rt8rCbE2Ufha2ztRqBAE9dueNXArrY,5009
|
|
106
106
|
truefoundry/deploy/lib/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
107
107
|
truefoundry/deploy/lib/clients/servicefoundry_client.py,sha256=JIj0Rs5PVZzXeh2QubLaVjgMJiUkfHrIMTtZMpgBmiA,27369
|
|
@@ -115,12 +115,12 @@ truefoundry/deploy/lib/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
|
|
|
115
115
|
truefoundry/deploy/lib/model/entity.py,sha256=eBfA4trO0jUuDy0wifiu2rB_HryZrx5Kf-tRMwIQ_9g,8716
|
|
116
116
|
truefoundry/deploy/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
117
117
|
truefoundry/deploy/v2/lib/__init__.py,sha256=WEiVMZXOVljzEE3tpGJil14liIn_PCDoACJ6b3tZ6sI,188
|
|
118
|
-
truefoundry/deploy/v2/lib/deploy.py,sha256=
|
|
118
|
+
truefoundry/deploy/v2/lib/deploy.py,sha256=JaLK0Mryps_2JaPB-q3NjfA0d55xsMFbIkH8VddRd_E,12873
|
|
119
119
|
truefoundry/deploy/v2/lib/deploy_workflow.py,sha256=G5BzMIbap8pgDX1eY-TITruUxQdkKhYtBmRwLL6lDeY,14342
|
|
120
120
|
truefoundry/deploy/v2/lib/deployable_patched_models.py,sha256=mUi-OjPf7bc8rzfrPLdFb79LKuDq7F36RxL4V-AXebs,6830
|
|
121
121
|
truefoundry/deploy/v2/lib/models.py,sha256=ogc1UYs1Z2nBdGSKCrde9sk8d0GxFKMkem99uqO5CmM,1148
|
|
122
|
-
truefoundry/deploy/v2/lib/patched_models.py,sha256=
|
|
123
|
-
truefoundry/deploy/v2/lib/source.py,sha256=
|
|
122
|
+
truefoundry/deploy/v2/lib/patched_models.py,sha256=gWpU7aVLVM-QFqUuekLbTO7ZJvWbaijzAuLgl1FwZC0,18345
|
|
123
|
+
truefoundry/deploy/v2/lib/source.py,sha256=nG11vrPqc2Z2bv7IMRruB-fNbSxY8jeWYNcCTEXr5s0,8622
|
|
124
124
|
truefoundry/ml/__init__.py,sha256=EEEHV7w58Krpo_W9Chd8Y3TdItfFO3LI6j6Izqc4-P8,2219
|
|
125
125
|
truefoundry/ml/constants.py,sha256=vDq72d4C9FSWqr9MMdjgTF4TuyNFApvo_6RVsSeAjB4,2837
|
|
126
126
|
truefoundry/ml/entities.py,sha256=GuwzmS7qqZJ_iz34zhla_Pg-ZNjt_3oHG2gn-LMftKk,1486
|
|
@@ -387,7 +387,7 @@ truefoundry/workflow/remote_filesystem/__init__.py,sha256=LQ95ViEjJ7Ts4JcCGOxMPs
|
|
|
387
387
|
truefoundry/workflow/remote_filesystem/logger.py,sha256=em2l7D6sw7xTLDP0kQSLpgfRRCLpN14Qw85TN7ujQcE,1022
|
|
388
388
|
truefoundry/workflow/remote_filesystem/tfy_signed_url_client.py,sha256=xcT0wQmQlgzcj0nP3tJopyFSVWT1uv3nhiTIuwfXYeg,12342
|
|
389
389
|
truefoundry/workflow/remote_filesystem/tfy_signed_url_fs.py,sha256=nSGPZu0Gyd_jz0KsEE-7w_BmnTD8CVF1S8cUJoxaCbc,13305
|
|
390
|
-
truefoundry-0.
|
|
391
|
-
truefoundry-0.
|
|
392
|
-
truefoundry-0.
|
|
393
|
-
truefoundry-0.
|
|
390
|
+
truefoundry-0.12.0.dist-info/METADATA,sha256=Sk_OSFRhLRarXdP1ju69dvUYFffXcVRMXuUeY2K57Ew,2796
|
|
391
|
+
truefoundry-0.12.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
392
|
+
truefoundry-0.12.0.dist-info/entry_points.txt,sha256=xVjn7RMN-MW2-9f7YU-bBdlZSvvrwzhpX1zmmRmsNPU,98
|
|
393
|
+
truefoundry-0.12.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|