modal 0.76.2__py3-none-any.whl → 0.76.3__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.
- modal/cli/app.py +13 -11
- modal/client.pyi +2 -2
- {modal-0.76.2.dist-info → modal-0.76.3.dist-info}/METADATA +1 -1
- {modal-0.76.2.dist-info → modal-0.76.3.dist-info}/RECORD +9 -9
- modal_version/_version_generated.py +1 -1
- {modal-0.76.2.dist-info → modal-0.76.3.dist-info}/WHEEL +0 -0
- {modal-0.76.2.dist-info → modal-0.76.3.dist-info}/entry_points.txt +0 -0
- {modal-0.76.2.dist-info → modal-0.76.3.dist-info}/licenses/LICENSE +0 -0
- {modal-0.76.2.dist-info → modal-0.76.3.dist-info}/top_level.txt +0 -0
modal/cli/app.py
CHANGED
@@ -224,10 +224,10 @@ async def history(
|
|
224
224
|
"Time deployed",
|
225
225
|
"Client",
|
226
226
|
"Deployed by",
|
227
|
+
"Commit",
|
228
|
+
"Tag",
|
227
229
|
]
|
228
230
|
rows = []
|
229
|
-
deployments_with_tags = False
|
230
|
-
deployments_with_commit_info = False
|
231
231
|
deployments_with_dirty_commit = False
|
232
232
|
for idx, app_stats in enumerate(resp.app_deployment_histories):
|
233
233
|
style = "bold green" if idx == 0 else ""
|
@@ -239,24 +239,26 @@ async def history(
|
|
239
239
|
Text(app_stats.deployed_by, style=style),
|
240
240
|
]
|
241
241
|
|
242
|
-
if app_stats.tag:
|
243
|
-
deployments_with_tags = True
|
244
|
-
row.append(Text(app_stats.tag, style=style))
|
245
|
-
|
246
242
|
if app_stats.commit_info.commit_hash:
|
247
|
-
deployments_with_commit_info = True
|
248
243
|
short_hash = app_stats.commit_info.commit_hash[:7]
|
249
244
|
if app_stats.commit_info.dirty:
|
250
245
|
deployments_with_dirty_commit = True
|
251
246
|
short_hash = f"{short_hash}*"
|
252
247
|
row.append(Text(short_hash, style=style))
|
248
|
+
else:
|
249
|
+
row.append(None)
|
250
|
+
|
251
|
+
if app_stats.tag:
|
252
|
+
row.append(Text(app_stats.tag, style=style))
|
253
|
+
else:
|
254
|
+
row.append(None)
|
253
255
|
|
254
256
|
rows.append(row)
|
255
257
|
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
columns
|
258
|
+
# Suppress tag information when no deployments used one
|
259
|
+
if not any(row[-1] for row in rows):
|
260
|
+
rows = [row[:-1] for row in rows]
|
261
|
+
columns = columns[:-1]
|
260
262
|
|
261
263
|
rows = sorted(rows, key=lambda x: int(str(x[0])[1:]), reverse=True)
|
262
264
|
display_table(columns, rows, json)
|
modal/client.pyi
CHANGED
@@ -27,7 +27,7 @@ class _Client:
|
|
27
27
|
_snapshotted: bool
|
28
28
|
|
29
29
|
def __init__(
|
30
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.76.
|
30
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.76.3"
|
31
31
|
): ...
|
32
32
|
def is_closed(self) -> bool: ...
|
33
33
|
@property
|
@@ -86,7 +86,7 @@ class Client:
|
|
86
86
|
_snapshotted: bool
|
87
87
|
|
88
88
|
def __init__(
|
89
|
-
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.76.
|
89
|
+
self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.76.3"
|
90
90
|
): ...
|
91
91
|
def is_closed(self) -> bool: ...
|
92
92
|
@property
|
@@ -22,7 +22,7 @@ modal/app.py,sha256=xojuGZv4LaQwZU5ntj7WbmMjeNuB9Gll8Mzqe2LyiEs,51323
|
|
22
22
|
modal/app.pyi,sha256=zNwR1_2LpmQc9AhemuAeVdk90XNYDw9keOkXAwAATeA,28732
|
23
23
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
24
24
|
modal/client.py,sha256=o-aQThHpvDHUzg_kUafyhWzACViUBhY2WLZ2EitnSHA,16787
|
25
|
-
modal/client.pyi,sha256=
|
25
|
+
modal/client.pyi,sha256=znX8096ixmszseG19u733B1te8o70vmkxig40wnhxEI,8383
|
26
26
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
27
27
|
modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
|
28
28
|
modal/cls.py,sha256=LZMQdFZ06LpbLDbsCJknniU-393Jb44E1lqveLVM8F8,38365
|
@@ -117,7 +117,7 @@ modal/_vendor/tblib.py,sha256=g1O7QUDd3sDoLd8YPFltkXkih7r_fyZOjgmGuligv3s,9722
|
|
117
117
|
modal/cli/__init__.py,sha256=6FRleWQxBDT19y7OayO4lBOzuL6Bs9r0rLINYYYbHwQ,769
|
118
118
|
modal/cli/_download.py,sha256=tV8JFkncTtQKh85bSguQg6AW5aRRlynf-rvyN7ruigc,4337
|
119
119
|
modal/cli/_traceback.py,sha256=4ywtmFcmPnY3tqb4-3fA061N2tRiM01xs8fSagtkwhE,7293
|
120
|
-
modal/cli/app.py,sha256=
|
120
|
+
modal/cli/app.py,sha256=JH0_sMGMrG0qA9ToY1RztP8MT0QHX5nZpAH02LpNYcs,8432
|
121
121
|
modal/cli/cluster.py,sha256=EBDhkzfOtPSbwknYdYPBGYvRAwl4Gm7OJkD6_zxrcus,3106
|
122
122
|
modal/cli/config.py,sha256=QvFsqO4eUOtI7d_pQAOAyfq_ZitjhPtav3C6GIDQcZM,1680
|
123
123
|
modal/cli/container.py,sha256=FYwEgjf93j4NMorAjGbSV98i1wpebqdAeNU1wfrFp1k,3668
|
@@ -146,7 +146,7 @@ modal/requirements/2024.10.txt,sha256=qD-5cVIVM9wXesJ6JC89Ew-3m2KjEElUz3jaw_MddR
|
|
146
146
|
modal/requirements/PREVIEW.txt,sha256=qD-5cVIVM9wXesJ6JC89Ew-3m2KjEElUz3jaw_MddRo,296
|
147
147
|
modal/requirements/README.md,sha256=9tK76KP0Uph7O0M5oUgsSwEZDj5y-dcUPsnpR0Sc-Ik,854
|
148
148
|
modal/requirements/base-images.json,sha256=57vMSqzMbLBxw5tFWSaMiIkkVEps4JfX5PAtXGnkS4U,740
|
149
|
-
modal-0.76.
|
149
|
+
modal-0.76.3.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
150
150
|
modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
|
151
151
|
modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
|
152
152
|
modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
|
@@ -171,9 +171,9 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
171
171
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
172
172
|
modal_version/__init__.py,sha256=u-X2s_2GMkprLryPgSYm4nwqxeDjYDm_2mJ3SGySns4,470
|
173
173
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
174
|
-
modal_version/_version_generated.py,sha256=
|
175
|
-
modal-0.76.
|
176
|
-
modal-0.76.
|
177
|
-
modal-0.76.
|
178
|
-
modal-0.76.
|
179
|
-
modal-0.76.
|
174
|
+
modal_version/_version_generated.py,sha256=Xv40LUahHtPTgcw5viw3qyqLNNJSc57ztKcR81MdMwg,148
|
175
|
+
modal-0.76.3.dist-info/METADATA,sha256=Fa7sCR6lld8NMdajPhOxdOQZ2vnjqF_hp9JA0odM5x0,2450
|
176
|
+
modal-0.76.3.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
177
|
+
modal-0.76.3.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
178
|
+
modal-0.76.3.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
179
|
+
modal-0.76.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|