refactor(docker): move network.py into platform/docker/
test / run tests/run_tests.py (pull_request) Successful in 14s

The Docker bridge / internal network primitives are Docker-specific;
they belong inside the Docker platform package alongside util.py and
the rest. Same logic the earlier top-level docker.py move followed.

Imports:
  - platform.py: `from ... import network as network_mod`
                 -> `from . import network as network_mod`
  - network.py: `from .log import ...` -> `from ...log import ...`
  - tests/test_orphan_cleanup.py: from claude_bottle.network
                 -> from claude_bottle.platform.docker.network
This commit is contained in:
2026-05-10 23:40:58 -04:00
parent 1d2c18eaae
commit c79966731c
3 changed files with 3 additions and 3 deletions
@@ -16,7 +16,7 @@ from __future__ import annotations
import subprocess
from .log import die, info, warn
from ...log import die, info, warn
def network_name_for_slug(slug: str) -> str:
+1 -1
View File
@@ -17,13 +17,13 @@ from contextlib import contextmanager
from pathlib import Path
from typing import Iterator
from ... import network as network_mod
from ... import pipelock
from ... import skills as skills_mod
from ... import ssh as ssh_mod
from ...env_resolve import env_resolve
from ...log import die, info
from .. import BottleCleanupPlan, BottlePlan, BottlePlatform, BottleSpec
from . import network as network_mod
from . import util as docker_mod
from .bottle import DockerBottle
from .bottle_cleanup_plan import DockerBottleCleanupPlan
+1 -1
View File
@@ -7,7 +7,7 @@ import os
import subprocess
import unittest
from claude_bottle.network import (
from claude_bottle.platform.docker.network import (
network_create_egress,
network_create_internal,
network_remove,