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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: isb-sdk
3
- Version: 3.1.2
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "isb-sdk"
7
- version = "3.1.2"
7
+ version = "3.2.0"
8
8
  description = "Python SDK for isb: declarative incus sandboxes (containers and VMs)"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -62,7 +62,7 @@ from ._types import (
62
62
  from ._util import Duration
63
63
  from .volumes import Volumes
64
64
 
65
- __version__ = "3.1.2"
65
+ __version__ = "3.2.0"
66
66
 
67
67
  __all__ = [
68
68
  "PROTOCOL",
@@ -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.1.2","protocol":1}'
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.1.2","protocol":1}'
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.1.2","protocol":1}'
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