solari-runloop-compat 0.2.11__tar.gz → 0.2.12__tar.gz
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.
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/PKG-INFO +1 -1
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/pyproject.toml +1 -1
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/__init__.py +1 -1
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_context.py +5 -2
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/.gitignore +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/COMPAT.md +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/LICENSE +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/NOTICE +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/README.md +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_branding.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_client.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_config.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_dockerfile.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_exceptions.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_gateway.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_loop.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_mapping.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_models.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_options.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_redact.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_resources.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_sync.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_types.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_vendor_user.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/lib/__init__.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/lib/polling.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/pagination.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/sdk.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/__init__.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/blueprint_build_log.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/blueprint_build_logs_list_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/blueprint_build_parameters.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/blueprint_list_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/blueprint_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devbox_async_execution_detail_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devbox_execution_detail_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devbox_snapshot_list_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devbox_snapshot_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devbox_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devboxes/__init__.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devboxes/devbox_logs_list_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devboxes/devbox_snapshot_async_status_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devboxes/execution_update_chunk.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/object_download_url_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/object_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/secret_list_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/secret_view.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/shared/__init__.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/shared/after_idle.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/shared/code_mount_parameters.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/shared/launch_parameters.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/shared/lifecycle_configuration.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/shared/lifecycle_hooks.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/shared/resume_triggers.py +0 -0
- {solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/tunnel_view.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "solari-runloop-compat"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.12"
|
|
8
8
|
description = "Runloop-compatible Python interface over Solari Sandboxes. Not affiliated with Runloop."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -33,7 +33,7 @@ from ._types import NOT_GIVEN, NoneType, NotGiven, Omit, Timeout, not_given, omi
|
|
|
33
33
|
from .lib.polling import PollingConfig, PollingTimeout
|
|
34
34
|
from .sdk import AsyncRunloopSDK, RunloopSDK
|
|
35
35
|
|
|
36
|
-
__version__ = "0.2.
|
|
36
|
+
__version__ = "0.2.12"
|
|
37
37
|
Client = Runloop
|
|
38
38
|
AsyncClient = AsyncRunloop
|
|
39
39
|
|
|
@@ -8,6 +8,7 @@ the context is capped at ~700 KB). When objects land, :class:`LocalContext` is r
|
|
|
8
8
|
from __future__ import annotations
|
|
9
9
|
|
|
10
10
|
import fnmatch
|
|
11
|
+
import gzip
|
|
11
12
|
import hashlib
|
|
12
13
|
import io
|
|
13
14
|
import os
|
|
@@ -40,7 +41,9 @@ def _ignored(rel: str, patterns: List[str]) -> bool:
|
|
|
40
41
|
|
|
41
42
|
def _make(entries: List[tuple], name: Optional[str]) -> LocalContext:
|
|
42
43
|
buf = io.BytesIO()
|
|
43
|
-
with
|
|
44
|
+
# GzipFile with mtime=0: tarfile's own "w:gz" stamps the gzip header with the wall clock, so two builds of one tree a second
|
|
45
|
+
# apart had different bytes and a different ctx_ id.
|
|
46
|
+
with gzip.GzipFile(fileobj=buf, mode="wb", compresslevel=9, mtime=0) as gz, tarfile.open(fileobj=gz, mode="w") as tf:
|
|
44
47
|
for arc, path in entries:
|
|
45
48
|
info = tf.gettarinfo(str(path), arcname=arc)
|
|
46
49
|
info.mtime, info.uid, info.gid, info.uname, info.gname = 0, 0, 0, "", ""
|
|
@@ -81,7 +84,7 @@ def from_dir(path: str, *, name: Optional[str] = None, ignore: Optional[List[str
|
|
|
81
84
|
|
|
82
85
|
def from_bytes(data: bytes, name: str = "file") -> LocalContext:
|
|
83
86
|
buf = io.BytesIO()
|
|
84
|
-
with tarfile.open(fileobj=
|
|
87
|
+
with gzip.GzipFile(fileobj=buf, mode="wb", mtime=0) as gz, tarfile.open(fileobj=gz, mode="w") as tf:
|
|
85
88
|
info = tarfile.TarInfo(name)
|
|
86
89
|
info.size, info.mode = len(data), 0o644
|
|
87
90
|
tf.addfile(info, io.BytesIO(data))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/_vendor_user.py
RENAMED
|
File without changes
|
{solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/lib/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/blueprint_view.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/devbox_view.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/object_view.py
RENAMED
|
File without changes
|
|
File without changes
|
{solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/secret_view.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{solari_runloop_compat-0.2.11 → solari_runloop_compat-0.2.12}/solari_runloop/types/tunnel_view.py
RENAMED
|
File without changes
|