summaryrefslogtreecommitdiff
path: root/evals/drill/setup.py
diff options
context:
space:
mode:
authorDrew Ritter <drew@primeradiant.com>2026-05-13 12:07:30 -0700
committerDrew Ritter <drew@primeradiant.com>2026-05-13 12:15:16 -0700
commitad2db13001d57250f109a251fbbf199d1d5660b3 (patch)
tree93316d4b2061e6f06c4b114bf590eb3bb1c968ee /evals/drill/setup.py
parent3d6dc90c6d2b28ec449df94ff60f43797d1cfad6 (diff)
Move eval harness to submodulecodex/sup-251-superpowers-evals-submodule
Diffstat (limited to 'evals/drill/setup.py')
-rw-r--r--evals/drill/setup.py43
1 files changed, 0 insertions, 43 deletions
diff --git a/evals/drill/setup.py b/evals/drill/setup.py
deleted file mode 100644
index 74ea1ef..0000000
--- a/evals/drill/setup.py
+++ /dev/null
@@ -1,43 +0,0 @@
-from __future__ import annotations
-
-import subprocess
-from pathlib import Path
-
-from setup_helpers import HELPER_REGISTRY
-from setup_helpers.base import create_base_repo
-
-
-def clone_template(template_dir: Path, workdir: Path) -> None:
- """Clone (or build) template_dir into workdir with full git history."""
- create_base_repo(workdir, template_dir)
-
-
-def run_helpers(helper_names: list[str], workdir: Path, fixtures_dir: Path) -> None:
- for name in helper_names:
- helper = HELPER_REGISTRY.get(name)
- if helper is None:
- raise ValueError(f"Unknown setup helper: {name}")
- if name == "create_base_repo":
- helper(workdir, fixtures_dir / "template-repo") # ty: ignore[invalid-argument-type, too-many-positional-arguments, missing-argument]
- elif name == "symlink_superpowers":
- import os
-
- helper(workdir, os.environ["SUPERPOWERS_ROOT"]) # ty: ignore[invalid-argument-type, too-many-positional-arguments, missing-argument]
- else:
- helper(workdir) # ty: ignore[invalid-argument-type, missing-argument]
-
-
-def run_assertions(assertions: list[str], workdir: Path) -> None:
- for assertion in assertions:
- result = subprocess.run(
- assertion,
- shell=True,
- cwd=workdir,
- capture_output=True,
- text=True,
- )
- if result.returncode != 0:
- raise AssertionError(
- f"Setup assertion failed: {assertion}\n"
- f"stdout: {result.stdout}\nstderr: {result.stderr}"
- )