modal 0.73.64__py3-none-any.whl → 0.73.66__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.
@@ -264,7 +264,9 @@ def import_single_function_service(
264
264
  # The cls decorator is in global scope
265
265
  _cls = synchronizer._translate_in(cls)
266
266
  user_defined_callable = _cls._callables[fun_name]
267
- service_deps = _cls._get_class_service_function().deps(only_explicit_mounts=True)
267
+ # Intentionally not including these, since @build functions don't actually
268
+ # forward the information from their parent class.
269
+ # service_deps = _cls._get_class_service_function().deps(only_explicit_mounts=True)
268
270
  active_app = _cls._app
269
271
  else:
270
272
  # This is non-decorated class
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.73.64"
30
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.66"
31
31
  ): ...
32
32
  def is_closed(self) -> bool: ...
33
33
  @property
@@ -85,7 +85,7 @@ class Client:
85
85
  _snapshotted: bool
86
86
 
87
87
  def __init__(
88
- self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.64"
88
+ self, server_url: str, client_type: int, credentials: typing.Optional[tuple[str, str]], version: str = "0.73.66"
89
89
  ): ...
90
90
  def is_closed(self) -> bool: ...
91
91
  @property
modal/image.py CHANGED
@@ -2013,10 +2013,13 @@ class _Image(_Object, type_prefix="im"):
2013
2013
  )
2014
2014
  ```
2015
2015
  """
2016
+ non_str_keys = [key for key, val in vars.items() if not isinstance(val, str)]
2017
+ if non_str_keys:
2018
+ raise InvalidError(f"Image ENV variables must be strings. Invalid keys: {non_str_keys}")
2016
2019
 
2017
2020
  def build_dockerfile(version: ImageBuilderVersion) -> DockerfileSpec:
2018
- commands = ["FROM base"] + [f"ENV {key}={shlex.quote(val)}" for (key, val) in vars.items()]
2019
- return DockerfileSpec(commands=commands, context_files={})
2021
+ env_commands = [f"ENV {key}={shlex.quote(val)}" for (key, val) in vars.items()]
2022
+ return DockerfileSpec(commands=["FROM base"] + env_commands, context_files={})
2020
2023
 
2021
2024
  return _Image._from_args(
2022
2025
  base_images={"base": self},
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: modal
3
- Version: 0.73.64
3
+ Version: 0.73.66
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -22,7 +22,7 @@ modal/app.py,sha256=o5mHoHtn41nkvskX_ekJkyfG6MXwj5rqerRi_nnPd0w,44725
22
22
  modal/app.pyi,sha256=0MMCgskIL4r3eq8oBcfm2lLyeao2gXjS3iXaIfmaJ-o,25959
23
23
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
24
24
  modal/client.py,sha256=8SQawr7P1PNUCq1UmJMUQXG2jIo4Nmdcs311XqrNLRE,15276
25
- modal/client.pyi,sha256=xSuY9PnTVHyXJL_CEtc0Yjq7S9K-eUqa5jHfcdw4Q00,7593
25
+ modal/client.pyi,sha256=TuZbFW1nZfA5sQSuvA8ECXpKxZ9ek-p01Y5nyW1Kkdo,7593
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=wztMTYkhJyW9iUVqx4_Gga4bJJpUiPgGsS6iacUqy-A,30001
@@ -43,7 +43,7 @@ modal/file_pattern_matcher.py,sha256=trosX-Bp7dOubudN1bLLhRAoidWy1TcoaR4Pv8CedWw
43
43
  modal/functions.py,sha256=kcNHvqeGBxPI7Cgd57NIBBghkfbeFJzXO44WW0jSmao,325
44
44
  modal/functions.pyi,sha256=p9H14D_n2lAjeVvymu74wDWsL_BnpBrT0BunbAlwviw,14247
45
45
  modal/gpu.py,sha256=Kbhs_u49FaC2Zi0TjCdrpstpRtT5eZgecynmQi5IZVE,6752
46
- modal/image.py,sha256=W3SnV-DjUuaWwUWkk9keQko7jZ_p_pYERqdeMXNccSk,91542
46
+ modal/image.py,sha256=gch5FEINVW9rswjTrSP4lquO8tTPd8lVBPtaRjoWZNA,91762
47
47
  modal/image.pyi,sha256=Oc2ndYHSdQTcRpZKHSfTdj-m_2oQAsnc2EWTthbNn-s,26380
48
48
  modal/io_streams.py,sha256=QkQiizKRzd5bnbKQsap31LJgBYlAnj4-XkV_50xPYX0,15079
49
49
  modal/io_streams.pyi,sha256=bJ7ZLmSmJ0nKoa6r4FJpbqvzdUVa0lEe0Fa-MMpMezU,5071
@@ -90,7 +90,7 @@ modal/_runtime/execution_context.py,sha256=E6ofm6j1POXGPxS841X3V7JU6NheVb8OkQc7J
90
90
  modal/_runtime/execution_context.pyi,sha256=wQZwMNADExkeNdB9yKX0PPojovxlFHbap3441wAsiMY,634
91
91
  modal/_runtime/gpu_memory_snapshot.py,sha256=tA3m1d1cwnmHpvpCeN_WijDd6n8byn7LWlpicbIxiOI,3144
92
92
  modal/_runtime/telemetry.py,sha256=T1RoAGyjBDr1swiM6pPsGRSITm7LI5FDK18oNXxY08U,5163
93
- modal/_runtime/user_code_imports.py,sha256=2-_cVZqhodtEea9wAii-FAfc3dQmbbXZn5WcEZRAEA8,14653
93
+ modal/_runtime/user_code_imports.py,sha256=GplnUwItuZ3vAy1bhBSBjHdrhtVYOs-Q7gHYPBxJQGc,14813
94
94
  modal/_utils/__init__.py,sha256=waLjl5c6IPDhSsdWAm9Bji4e2PVxamYABKAze6CHVXY,28
95
95
  modal/_utils/app_utils.py,sha256=88BT4TPLWfYAQwKTHcyzNQRHg8n9B-QE2UyJs96iV-0,108
96
96
  modal/_utils/async_utils.py,sha256=5PdDuI1aSwPOI4a3dIvW0DkPqGw6KZN6RtWE18Dzv1E,25079
@@ -168,10 +168,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
168
168
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
169
169
  modal_version/__init__.py,sha256=wiJQ53c-OMs0Xf1UeXOxQ7FwlV1VzIjnX6o-pRYZ_Pk,470
170
170
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
171
- modal_version/_version_generated.py,sha256=4Y9PbogvIVwPgM0UNHmRXl6KLYyERQCBNrG3P3B9WyM,149
172
- modal-0.73.64.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
173
- modal-0.73.64.dist-info/METADATA,sha256=-tRGFBAVrfGEMTDj1RWCvAHtp3cIoEVUBohjYfAT5zw,2452
174
- modal-0.73.64.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
175
- modal-0.73.64.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
176
- modal-0.73.64.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
177
- modal-0.73.64.dist-info/RECORD,,
171
+ modal_version/_version_generated.py,sha256=kS-cQjbBHPSb-CYYTt9I9To2FFzIzhkalktDW4VFffE,149
172
+ modal-0.73.66.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
173
+ modal-0.73.66.dist-info/METADATA,sha256=0hV0exHAWv4NobCRQ4ANK3p3G2Lz_qDV_E_IZ6Svhng,2452
174
+ modal-0.73.66.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
175
+ modal-0.73.66.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
176
+ modal-0.73.66.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
177
+ modal-0.73.66.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
 
3
3
  # Note: Reset this value to -1 whenever you make a minor `0.X` release of the client.
4
- build_number = 64 # git: d4c7dc1
4
+ build_number = 66 # git: f9b168b