feat: add macos container backend scaffold
lint / lint (push) Successful in 1m54s
test / unit (pull_request) Successful in 35s
test / integration (pull_request) Successful in 20s

This commit is contained in:
2026-06-10 18:14:17 +00:00
parent 3f04567290
commit 4abad499b6
16 changed files with 919 additions and 3 deletions
@@ -0,0 +1,27 @@
"""Cleanup plan for the macOS Apple Container backend."""
from __future__ import annotations
from dataclasses import dataclass
from ...log import info
from .. import BottleCleanupPlan
@dataclass(frozen=True)
class MacosContainerBottleCleanupPlan(BottleCleanupPlan):
containers: tuple[str, ...] = ()
networks: tuple[str, ...] = ()
def print(self) -> None:
if not self.containers and not self.networks:
info("macos-container cleanup: nothing to remove")
return
for name in self.containers:
info(f"macos-container container: {name}")
for name in self.networks:
info(f"macos-container network: {name}")
@property
def empty(self) -> bool:
return not self.containers and not self.networks