boatyard 0.8.0.dev238__tar.gz → 0.8.1.dev240__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.
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/PKG-INFO +1 -1
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/pyproject.toml +1 -1
- boatyard-0.8.1.dev240/src/boatyard/compose.py +38 -0
- boatyard-0.8.1.dev240/src/boatyard/crane.py +50 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/up.py +3 -1
- boatyard-0.8.0.dev238/src/boatyard/compose.py +0 -28
- boatyard-0.8.0.dev238/src/boatyard/crane.py +0 -23
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/.gitattributes +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/.github/workflows/cleanup-pr-releases.yml +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/.github/workflows/integrate.yml +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/.github/workflows/merge-gate.yml +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/.github/workflows/release.yml +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/.gitignore +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/.python-version +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/AGENTS.md +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/CLAUDE.md +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/LICENSE +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/NOTICE +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/README.md +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/design/AGENTS.md +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/design/CLAUDE.md +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/design/apt-hermeticity.md +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/design/mirror-digest-retention.md +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/design/precision-attribution.md +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/design/semver-image-bundle-lines.md +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/publish.yml +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/ruff.base.toml +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/ruff.toml +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/scripts/preflight.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/__init__.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/build.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/cli.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/lock.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/markers.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/models/__init__.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/models/config_file.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/models/image.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/models/k8s_pins.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/models/lock_file.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/models/pyproject.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/models/values_file.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/models/workload.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/paths.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/publish.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/py.typed +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/resolve.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_compose.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_generate.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_k8s.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/gpu-cuda.tpl +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/gpu-pod.tpl +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/gpu-rocm.tpl +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/probe-adapter-healthchecks.tpl +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/restart.tpl +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/scale-to-zero.tpl +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/temp.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/__init__.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/build.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/bump.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/down.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/lock.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/matrix.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/mirror.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/publish.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/score.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/verbs/tree_tags.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/yaml.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/conftest.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_assembly.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_build_docker.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_bump.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_compose.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_config.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_daemon_gc.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_image_builds.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_lock.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_markers.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_matrix.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_mirror.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_provisioners.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_publish_compose.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_score_generate.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_tree_tags.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/tests/test_values.py +0 -0
- {boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/uv.lock +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import shlex
|
|
4
|
+
import sys
|
|
5
|
+
from collections.abc import Iterable
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def compose_command(
|
|
10
|
+
root: Path,
|
|
11
|
+
compose_files: list[Path],
|
|
12
|
+
*arguments: str,
|
|
13
|
+
project_name: str,
|
|
14
|
+
env_file: Path | None = None,
|
|
15
|
+
slot_names: Iterable[str] = (),
|
|
16
|
+
) -> str:
|
|
17
|
+
# Spell the one docker compose invocation; the env -u scrub defeats compose's
|
|
18
|
+
# shell-beats-env-file precedence for every slot name.
|
|
19
|
+
quoted_arguments = [_quote(argument) for argument in arguments]
|
|
20
|
+
files_argument = "".join(f" -f {_quote(str(compose_file))}" for compose_file in compose_files)
|
|
21
|
+
env_argument = f" --env-file {_quote(str(env_file))}" if env_file is not None else ""
|
|
22
|
+
scrub = "".join(f" -u {_quote(name)}" for name in sorted(set(slot_names)))
|
|
23
|
+
prefix = (
|
|
24
|
+
f"docker compose -p {_quote(project_name)}{files_argument} "
|
|
25
|
+
f"--project-directory {_quote(str(root))}{env_argument}"
|
|
26
|
+
)
|
|
27
|
+
# Windows ships no env utility; the scrub stays the POSIX spelling of the guard.
|
|
28
|
+
if scrub and sys.platform != "win32":
|
|
29
|
+
prefix = f"env{scrub} " + prefix
|
|
30
|
+
return " ".join([prefix, *quoted_arguments])
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _quote(value: str) -> str:
|
|
34
|
+
# bashrun splits the command without posix quoting on Windows, where shlex.quote's
|
|
35
|
+
# single quotes would ride the argument literally.
|
|
36
|
+
if sys.platform == "win32":
|
|
37
|
+
return value
|
|
38
|
+
return shlex.quote(value)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import shutil
|
|
5
|
+
import sys
|
|
6
|
+
import tarfile
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
from bashrun.bash import bash
|
|
10
|
+
|
|
11
|
+
CRANE_VERSION = "v0.22.1"
|
|
12
|
+
|
|
13
|
+
WINDOWS_CRANE_DIRECTORY = Path.home() / ".cache" / "boatyard" / "crane"
|
|
14
|
+
|
|
15
|
+
_installed = False
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def install_crane() -> None:
|
|
19
|
+
global _installed
|
|
20
|
+
if _installed:
|
|
21
|
+
return
|
|
22
|
+
if sys.platform == "win32":
|
|
23
|
+
_install_crane_windows()
|
|
24
|
+
else:
|
|
25
|
+
_install_crane_posix()
|
|
26
|
+
_installed = True
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _install_crane_posix() -> None:
|
|
30
|
+
print(f"Install crane {CRANE_VERSION}")
|
|
31
|
+
sudo = "sudo " if os.geteuid() != 0 else ""
|
|
32
|
+
archive = "go-containerregistry_Linux_x86_64.tar.gz"
|
|
33
|
+
bash(f"curl -fsSLO https://github.com/google/go-containerregistry/releases/download/{CRANE_VERSION}/{archive}")
|
|
34
|
+
bash(f"{sudo}tar -xzf {archive} -C /usr/local/bin crane")
|
|
35
|
+
Path(archive).unlink(missing_ok=True)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def _install_crane_windows() -> None:
|
|
39
|
+
if shutil.which("crane") is not None:
|
|
40
|
+
return
|
|
41
|
+
print(f"Install crane {CRANE_VERSION}")
|
|
42
|
+
WINDOWS_CRANE_DIRECTORY.mkdir(parents=True, exist_ok=True)
|
|
43
|
+
archive_name = "go-containerregistry_Windows_x86_64.tar.gz"
|
|
44
|
+
release = f"https://github.com/google/go-containerregistry/releases/download/{CRANE_VERSION}/{archive_name}"
|
|
45
|
+
bash(f"curl -fsSL {release} -o {archive_name}", cwd=WINDOWS_CRANE_DIRECTORY)
|
|
46
|
+
archive_path = WINDOWS_CRANE_DIRECTORY / archive_name
|
|
47
|
+
with tarfile.open(archive_path) as archive:
|
|
48
|
+
archive.extract("crane.exe", WINDOWS_CRANE_DIRECTORY, filter="data")
|
|
49
|
+
archive_path.unlink()
|
|
50
|
+
os.environ["PATH"] = f"{WINDOWS_CRANE_DIRECTORY}{os.pathsep}{os.environ['PATH']}"
|
|
@@ -104,7 +104,9 @@ def _materialize_up(
|
|
|
104
104
|
materialized: list[Path],
|
|
105
105
|
) -> UpContext:
|
|
106
106
|
# Materialize the env file every invocation shares
|
|
107
|
-
with NamedTemporaryFile(
|
|
107
|
+
with NamedTemporaryFile(
|
|
108
|
+
"w", suffix=".env", prefix="boatyard-env-", delete=False, encoding="utf-8", newline="\n"
|
|
109
|
+
) as handle:
|
|
108
110
|
handle.write(render_env_entries(plan.env))
|
|
109
111
|
env_file = Path(handle.name)
|
|
110
112
|
materialized.append(env_file)
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import shlex
|
|
4
|
-
from collections.abc import Iterable
|
|
5
|
-
from pathlib import Path
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def compose_command(
|
|
9
|
-
root: Path,
|
|
10
|
-
compose_files: list[Path],
|
|
11
|
-
*arguments: str,
|
|
12
|
-
project_name: str,
|
|
13
|
-
env_file: Path | None = None,
|
|
14
|
-
slot_names: Iterable[str] = (),
|
|
15
|
-
) -> str:
|
|
16
|
-
# Spell the one docker compose invocation; the env -u scrub defeats compose's
|
|
17
|
-
# shell-beats-env-file precedence for every slot name.
|
|
18
|
-
quoted_arguments = [shlex.quote(argument) for argument in arguments]
|
|
19
|
-
files_argument = "".join(f" -f {shlex.quote(str(compose_file))}" for compose_file in compose_files)
|
|
20
|
-
env_argument = f" --env-file {shlex.quote(str(env_file))}" if env_file is not None else ""
|
|
21
|
-
scrub = "".join(f" -u {shlex.quote(name)}" for name in sorted(set(slot_names)))
|
|
22
|
-
prefix = (
|
|
23
|
-
f"docker compose -p {shlex.quote(project_name)}{files_argument} "
|
|
24
|
-
f"--project-directory {shlex.quote(str(root))}{env_argument}"
|
|
25
|
-
)
|
|
26
|
-
if scrub:
|
|
27
|
-
prefix = f"env{scrub} " + prefix
|
|
28
|
-
return " ".join([prefix, *quoted_arguments])
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import os
|
|
4
|
-
from pathlib import Path
|
|
5
|
-
|
|
6
|
-
from bashrun.bash import bash
|
|
7
|
-
|
|
8
|
-
CRANE_VERSION = "v0.22.1"
|
|
9
|
-
|
|
10
|
-
_installed = False
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
def install_crane() -> None:
|
|
14
|
-
global _installed
|
|
15
|
-
if _installed:
|
|
16
|
-
return
|
|
17
|
-
print(f"Install crane {CRANE_VERSION}")
|
|
18
|
-
sudo = "sudo " if os.geteuid() != 0 else ""
|
|
19
|
-
archive = "go-containerregistry_Linux_x86_64.tar.gz"
|
|
20
|
-
bash(f"curl -fsSLO https://github.com/google/go-containerregistry/releases/download/{CRANE_VERSION}/{archive}")
|
|
21
|
-
bash(f"{sudo}tar -xzf {archive} -C /usr/local/bin crane")
|
|
22
|
-
Path(archive).unlink(missing_ok=True)
|
|
23
|
-
_installed = True
|
|
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
|
|
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
|
|
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
|
{boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/gpu-cuda.tpl
RENAMED
|
File without changes
|
{boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/gpu-pod.tpl
RENAMED
|
File without changes
|
{boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/gpu-rocm.tpl
RENAMED
|
File without changes
|
|
File without changes
|
{boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/restart.tpl
RENAMED
|
File without changes
|
{boatyard-0.8.0.dev238 → boatyard-0.8.1.dev240}/src/boatyard/score_patch_templates/scale-to-zero.tpl
RENAMED
|
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
|
|
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
|
|
File without changes
|