refactor(platform): rename claude_bottle/bottles -> claude_bottle/platform
test / run tests/run_tests.py (pull_request) Successful in 13s

'bottles' was the package name when it held a single Bottle Protocol;
since we added BottlePlatform / BottlePlan / BottleCleanupPlan and
made it the home of platform dispatch, 'platform' describes the
package better. The 'bottle' concept (and the manifest field) stays.

CLI imports update from ..bottles to ..platform; internal relative
imports inside the package survive the rename unchanged. Git
detected all 7 file renames.
This commit is contained in:
2026-05-10 23:37:28 -04:00
parent aaed390953
commit 1d2c18eaae
10 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ from __future__ import annotations
import sys
from ..bottles import get_bottle_platform
from ..platform import get_bottle_platform
from ..log import info
from ._common import read_tty_line
+1 -1
View File
@@ -4,7 +4,7 @@ from __future__ import annotations
import argparse
from ..bottles import get_bottle_platform
from ..platform import get_bottle_platform
from ..manifest import Manifest
from ._common import PROG, USER_CWD
+1 -1
View File
@@ -11,7 +11,7 @@ import sys
import tempfile
from pathlib import Path
from ..bottles import BottleSpec, get_bottle_platform
from ..platform import BottleSpec, get_bottle_platform
from ..log import info
from ..manifest import Manifest
from ._common import PROG, USER_CWD, read_tty_line
@@ -9,7 +9,7 @@ The bulk of the implementation lives in sibling modules:
- platform: DockerBottlePlatform
This file only re-exports the public names so
`from claude_bottle.bottles.docker import DockerBottlePlatform` keeps
`from claude_bottle.platform.docker import DockerBottlePlatform` keeps
working.
"""