isb-sdk 3.1.2__tar.gz → 3.2.0__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.
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/PKG-INFO +1 -1
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/pyproject.toml +1 -1
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/__init__.py +1 -1
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/_spec.py +12 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/tests/test_unit.py +3 -3
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/.gitignore +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/LICENSE +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/README.md +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/hatch_build.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/scripts/gen_types.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/_builders.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/_client.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/_errors.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/_project.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/_sandbox.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/_types.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/_util.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/py.typed +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/src/isb/volumes.py +0 -0
- {isb_sdk-3.1.2 → isb_sdk-3.2.0}/tests/test_integration.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: isb-sdk
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Python SDK for isb: declarative incus sandboxes (containers and VMs)
|
|
5
5
|
Project-URL: Homepage, https://github.com/execution-associates/isb
|
|
6
6
|
Project-URL: Repository, https://github.com/execution-associates/isb
|
|
@@ -309,6 +309,12 @@ class SandboxSpec(TypedDict, total=False):
|
|
|
309
309
|
environment: EnvMapOrList
|
|
310
310
|
#: More exec defaults: an exec-only environment and the login shell.
|
|
311
311
|
exec: ExecSpec
|
|
312
|
+
#: How long the sandbox lives (`24h`, `7d`), or `never`. Kept on the
|
|
313
|
+
#: instance as `user.isb.expires_at`; `isb serve` deletes it once that
|
|
314
|
+
#: passes. Each `isb up` renews it from now, and never shortens it.
|
|
315
|
+
#: Omitted: 7 days for a plain sandbox, the org's `sandbox_expiry` in an
|
|
316
|
+
#: org (docs/concepts/sandboxes.md#expiry). Stacks ignore it.
|
|
317
|
+
expires: Optional[IntOrString]
|
|
312
318
|
#: A recurring health test, as in docker compose. `isb stack deploy`
|
|
313
319
|
#: routes traffic only to healthy replicas and replaces unhealthy ones;
|
|
314
320
|
#: `depends_on` can wait for it.
|
|
@@ -543,6 +549,12 @@ class SandboxSpecFields(TypedDict, total=False):
|
|
|
543
549
|
environment: EnvMapOrList
|
|
544
550
|
#: More exec defaults: an exec-only environment and the login shell.
|
|
545
551
|
exec: ExecSpec
|
|
552
|
+
#: How long the sandbox lives (`24h`, `7d`), or `never`. Kept on the
|
|
553
|
+
#: instance as `user.isb.expires_at`; `isb serve` deletes it once that
|
|
554
|
+
#: passes. Each `isb up` renews it from now, and never shortens it.
|
|
555
|
+
#: Omitted: 7 days for a plain sandbox, the org's `sandbox_expiry` in an
|
|
556
|
+
#: org (docs/concepts/sandboxes.md#expiry). Stacks ignore it.
|
|
557
|
+
expires: Optional[IntOrString]
|
|
546
558
|
#: A recurring health test, as in docker compose. `isb stack deploy`
|
|
547
559
|
#: routes traffic only to healthy replicas and replaces unhealthy ones;
|
|
548
560
|
#: `depends_on` can wait for it.
|
|
@@ -222,7 +222,7 @@ class FakeServerTests(unittest.IsolatedAsyncioTestCase):
|
|
|
222
222
|
path = fake_server(
|
|
223
223
|
self.tmp.name,
|
|
224
224
|
"""\
|
|
225
|
-
echo '{"isb":"3.
|
|
225
|
+
echo '{"isb":"3.2.0","protocol":1}'
|
|
226
226
|
read line
|
|
227
227
|
echo "boom" >&2
|
|
228
228
|
exit 3
|
|
@@ -243,7 +243,7 @@ class FakeServerTests(unittest.IsolatedAsyncioTestCase):
|
|
|
243
243
|
path = fake_server(
|
|
244
244
|
self.tmp.name,
|
|
245
245
|
"""\
|
|
246
|
-
echo '{"isb":"3.
|
|
246
|
+
echo '{"isb":"3.2.0","protocol":1}'
|
|
247
247
|
cat >/dev/null
|
|
248
248
|
""",
|
|
249
249
|
)
|
|
@@ -261,7 +261,7 @@ class FakeServerTests(unittest.IsolatedAsyncioTestCase):
|
|
|
261
261
|
path = fake_server(
|
|
262
262
|
self.tmp.name,
|
|
263
263
|
"""\
|
|
264
|
-
echo '{"isb":"3.
|
|
264
|
+
echo '{"isb":"3.2.0","protocol":1}'
|
|
265
265
|
read a
|
|
266
266
|
read b
|
|
267
267
|
echo 'not json'
|
|
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
|