modal 0.73.106__py3-none-any.whl → 0.73.107__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/_utils/git_utils.py +72 -0
- modal/client.pyi +2 -2
- modal/functions.pyi +6 -6
- modal/runner.py +22 -2
- modal/runner.pyi +1 -0
- {modal-0.73.106.dist-info → modal-0.73.107.dist-info}/METADATA +1 -1
- {modal-0.73.106.dist-info → modal-0.73.107.dist-info}/RECORD +15 -14
- modal_proto/api.proto +13 -0
- modal_proto/api_pb2.py +834 -824
- modal_proto/api_pb2.pyi +50 -2
- modal_version/_version_generated.py +1 -1
- {modal-0.73.106.dist-info → modal-0.73.107.dist-info}/LICENSE +0 -0
- {modal-0.73.106.dist-info → modal-0.73.107.dist-info}/WHEEL +0 -0
- {modal-0.73.106.dist-info → modal-0.73.107.dist-info}/entry_points.txt +0 -0
- {modal-0.73.106.dist-info → modal-0.73.107.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -830,6 +830,7 @@ class AppDeploymentHistory(google.protobuf.message.Message):
|
|
830
830
|
TAG_FIELD_NUMBER: builtins.int
|
831
831
|
ROLLBACK_VERSION_FIELD_NUMBER: builtins.int
|
832
832
|
ROLLBACK_ALLOWED_FIELD_NUMBER: builtins.int
|
833
|
+
COMMIT_INFO_FIELD_NUMBER: builtins.int
|
833
834
|
app_id: builtins.str
|
834
835
|
version: builtins.int
|
835
836
|
client_version: builtins.str
|
@@ -839,6 +840,8 @@ class AppDeploymentHistory(google.protobuf.message.Message):
|
|
839
840
|
tag: builtins.str
|
840
841
|
rollback_version: builtins.int
|
841
842
|
rollback_allowed: builtins.bool
|
843
|
+
@property
|
844
|
+
def commit_info(self) -> global___CommitInfo: ...
|
842
845
|
def __init__(
|
843
846
|
self,
|
844
847
|
*,
|
@@ -851,8 +854,11 @@ class AppDeploymentHistory(google.protobuf.message.Message):
|
|
851
854
|
tag: builtins.str = ...,
|
852
855
|
rollback_version: builtins.int = ...,
|
853
856
|
rollback_allowed: builtins.bool = ...,
|
857
|
+
commit_info: global___CommitInfo | None = ...,
|
854
858
|
) -> None: ...
|
855
|
-
def
|
859
|
+
def HasField(self, field_name: typing_extensions.Literal["_commit_info", b"_commit_info", "commit_info", b"commit_info"]) -> builtins.bool: ...
|
860
|
+
def ClearField(self, field_name: typing_extensions.Literal["_commit_info", b"_commit_info", "app_id", b"app_id", "client_version", b"client_version", "commit_info", b"commit_info", "deployed_at", b"deployed_at", "deployed_by", b"deployed_by", "deployed_by_avatar_url", b"deployed_by_avatar_url", "rollback_allowed", b"rollback_allowed", "rollback_version", b"rollback_version", "tag", b"tag", "version", b"version"]) -> None: ...
|
861
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_commit_info", b"_commit_info"]) -> typing_extensions.Literal["commit_info"] | None: ...
|
856
862
|
|
857
863
|
global___AppDeploymentHistory = AppDeploymentHistory
|
858
864
|
|
@@ -1289,6 +1295,7 @@ class AppPublishRequest(google.protobuf.message.Message):
|
|
1289
1295
|
DEFINITION_IDS_FIELD_NUMBER: builtins.int
|
1290
1296
|
ROLLBACK_VERSION_FIELD_NUMBER: builtins.int
|
1291
1297
|
CLIENT_VERSION_FIELD_NUMBER: builtins.int
|
1298
|
+
COMMIT_INFO_FIELD_NUMBER: builtins.int
|
1292
1299
|
app_id: builtins.str
|
1293
1300
|
name: builtins.str
|
1294
1301
|
deployment_tag: builtins.str
|
@@ -1308,6 +1315,9 @@ class AppPublishRequest(google.protobuf.message.Message):
|
|
1308
1315
|
"""Unused by client, but used internally"""
|
1309
1316
|
client_version: builtins.str
|
1310
1317
|
"""Unused by client, but used internally"""
|
1318
|
+
@property
|
1319
|
+
def commit_info(self) -> global___CommitInfo:
|
1320
|
+
"""Git information for deployment tracking"""
|
1311
1321
|
def __init__(
|
1312
1322
|
self,
|
1313
1323
|
*,
|
@@ -1320,8 +1330,10 @@ class AppPublishRequest(google.protobuf.message.Message):
|
|
1320
1330
|
definition_ids: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
1321
1331
|
rollback_version: builtins.int = ...,
|
1322
1332
|
client_version: builtins.str = ...,
|
1333
|
+
commit_info: global___CommitInfo | None = ...,
|
1323
1334
|
) -> None: ...
|
1324
|
-
def
|
1335
|
+
def HasField(self, field_name: typing_extensions.Literal["commit_info", b"commit_info"]) -> builtins.bool: ...
|
1336
|
+
def ClearField(self, field_name: typing_extensions.Literal["app_id", b"app_id", "app_state", b"app_state", "class_ids", b"class_ids", "client_version", b"client_version", "commit_info", b"commit_info", "definition_ids", b"definition_ids", "deployment_tag", b"deployment_tag", "function_ids", b"function_ids", "name", b"name", "rollback_version", b"rollback_version"]) -> None: ...
|
1325
1337
|
|
1326
1338
|
global___AppPublishRequest = AppPublishRequest
|
1327
1339
|
|
@@ -2338,6 +2350,42 @@ class CloudBucketMount(google.protobuf.message.Message):
|
|
2338
2350
|
|
2339
2351
|
global___CloudBucketMount = CloudBucketMount
|
2340
2352
|
|
2353
|
+
class CommitInfo(google.protobuf.message.Message):
|
2354
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
2355
|
+
|
2356
|
+
VCS_FIELD_NUMBER: builtins.int
|
2357
|
+
BRANCH_FIELD_NUMBER: builtins.int
|
2358
|
+
COMMIT_HASH_FIELD_NUMBER: builtins.int
|
2359
|
+
COMMIT_TIMESTAMP_FIELD_NUMBER: builtins.int
|
2360
|
+
DIRTY_FIELD_NUMBER: builtins.int
|
2361
|
+
AUTHOR_NAME_FIELD_NUMBER: builtins.int
|
2362
|
+
AUTHOR_EMAIL_FIELD_NUMBER: builtins.int
|
2363
|
+
REPO_URL_FIELD_NUMBER: builtins.int
|
2364
|
+
vcs: builtins.str
|
2365
|
+
"""Only git is supported for now"""
|
2366
|
+
branch: builtins.str
|
2367
|
+
commit_hash: builtins.str
|
2368
|
+
commit_timestamp: builtins.int
|
2369
|
+
dirty: builtins.bool
|
2370
|
+
author_name: builtins.str
|
2371
|
+
author_email: builtins.str
|
2372
|
+
repo_url: builtins.str
|
2373
|
+
def __init__(
|
2374
|
+
self,
|
2375
|
+
*,
|
2376
|
+
vcs: builtins.str = ...,
|
2377
|
+
branch: builtins.str = ...,
|
2378
|
+
commit_hash: builtins.str = ...,
|
2379
|
+
commit_timestamp: builtins.int = ...,
|
2380
|
+
dirty: builtins.bool = ...,
|
2381
|
+
author_name: builtins.str = ...,
|
2382
|
+
author_email: builtins.str = ...,
|
2383
|
+
repo_url: builtins.str = ...,
|
2384
|
+
) -> None: ...
|
2385
|
+
def ClearField(self, field_name: typing_extensions.Literal["author_email", b"author_email", "author_name", b"author_name", "branch", b"branch", "commit_hash", b"commit_hash", "commit_timestamp", b"commit_timestamp", "dirty", b"dirty", "repo_url", b"repo_url", "vcs", b"vcs"]) -> None: ...
|
2386
|
+
|
2387
|
+
global___CommitInfo = CommitInfo
|
2388
|
+
|
2341
2389
|
class ContainerArguments(google.protobuf.message.Message):
|
2342
2390
|
"""This is used to pass data from the worker to the container"""
|
2343
2391
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|