cycls 0.0.2.32__py3-none-any.whl → 0.0.2.33__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.
cycls/runtime.py
CHANGED
|
@@ -178,7 +178,8 @@ COPY {self.payload_file} {self.io_dir}/
|
|
|
178
178
|
except docker.errors.ImageNotFound:
|
|
179
179
|
print(f"🛠️ Building new base image: {self.tag}")
|
|
180
180
|
|
|
181
|
-
with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
181
|
+
# with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
182
|
+
with tempfile.TemporaryDirectory(dir="/tmp") as tmpdir_str:
|
|
182
183
|
tmpdir = Path(tmpdir_str)
|
|
183
184
|
# Prepare context without payload for the base image
|
|
184
185
|
self._prepare_build_context(tmpdir)
|
|
@@ -209,7 +210,8 @@ COPY {self.payload_file} {self.io_dir}/
|
|
|
209
210
|
container = None
|
|
210
211
|
ports_mapping = {f'{port}/tcp': port} if port else None
|
|
211
212
|
|
|
212
|
-
with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
213
|
+
# with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
214
|
+
with tempfile.TemporaryDirectory(dir="/tmp") as tmpdir_str:
|
|
213
215
|
tmpdir = Path(tmpdir_str)
|
|
214
216
|
payload_path = tmpdir / self.payload_file
|
|
215
217
|
result_path = tmpdir / self.result_file
|
|
@@ -275,7 +277,8 @@ COPY {self.payload_file} {self.io_dir}/
|
|
|
275
277
|
except docker.errors.ImageNotFound:
|
|
276
278
|
print(f"🛠️ Building new deployable image: {final_tag}")
|
|
277
279
|
|
|
278
|
-
with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
280
|
+
# with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
281
|
+
with tempfile.TemporaryDirectory(dir="/tmp") as tmpdir_str:
|
|
279
282
|
tmpdir = Path(tmpdir_str)
|
|
280
283
|
self._prepare_build_context(tmpdir, include_payload=True, args=args, kwargs=kwargs)
|
|
281
284
|
|
|
@@ -306,7 +309,8 @@ COPY {self.payload_file} {self.io_dir}/
|
|
|
306
309
|
payload_hash = hashlib.sha256(cloudpickle.dumps((self.func, args, kwargs))).hexdigest()[:16]
|
|
307
310
|
archive_name = f"source-{self.tag.split(':')[1]}-{payload_hash}.tar.gz"
|
|
308
311
|
|
|
309
|
-
with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
312
|
+
# with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
313
|
+
with tempfile.TemporaryDirectory(dir="/tmp") as tmpdir_str:
|
|
310
314
|
tmpdir = Path(tmpdir_str)
|
|
311
315
|
self._prepare_build_context(tmpdir, include_payload=True, args=args, kwargs=kwargs)
|
|
312
316
|
|
|
@@ -371,7 +375,8 @@ COPY {self.payload_file} {self.io_dir}/
|
|
|
371
375
|
|
|
372
376
|
port = kwargs.get('port', 8080)
|
|
373
377
|
|
|
374
|
-
with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
378
|
+
# with tempfile.TemporaryDirectory() as tmpdir_str:
|
|
379
|
+
with tempfile.TemporaryDirectory(dir="/tmp") as tmpdir_str:
|
|
375
380
|
tmpdir = Path(tmpdir_str)
|
|
376
381
|
self._prepare_build_context(tmpdir, include_payload=True, args=args, kwargs=kwargs)
|
|
377
382
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
cycls/__init__.py,sha256=9oKTafASGMuJbq_Sk0sfCSQKKwUD8mcdYFovDDzVuW4,50
|
|
2
2
|
cycls/cycls.py,sha256=rLhssEPs4EwDbNsO5cGdKkP888dOaYToMPKVLZWan5U,7479
|
|
3
|
-
cycls/runtime.py,sha256=
|
|
3
|
+
cycls/runtime.py,sha256=y_ilfi418m-9ZsRvY7H7zrO0FYdhz2X-hnZ9DACaSW4,16289
|
|
4
4
|
cycls/sdk.py,sha256=EcUYi0pGKtCajKzwLg3uH8CRPfc78KBHXgB6ShABxdE,1110
|
|
5
5
|
cycls/theme/assets/index-D0-uI8sw.js,sha256=aUsqm9HZtEJz38o-0MW12ZVeOlSeKigwc_fYJBntiyI,1068551
|
|
6
6
|
cycls/theme/index.html,sha256=epB4cgSjC7xJOXpVuCwt9r7ivoGvLiXSrxsoOgINw58,895
|
|
7
|
-
cycls-0.0.2.
|
|
8
|
-
cycls-0.0.2.
|
|
9
|
-
cycls-0.0.2.
|
|
7
|
+
cycls-0.0.2.33.dist-info/METADATA,sha256=HKNRnxvSkLwolKtk2-QUgQUGzbpKHSqv_hOx9Gpjnis,5666
|
|
8
|
+
cycls-0.0.2.33.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
9
|
+
cycls-0.0.2.33.dist-info/RECORD,,
|
|
File without changes
|