oc_orchestrator
Loading...
Searching...
No Matches
worktree_env.py File Reference

Go to the source code of this file.

Classes

class  oc_orchestrator.worktree_env.WorktreeEnvError
class  oc_orchestrator.worktree_env.EditablePackage
class  oc_orchestrator.worktree_env.PrepareRequest
class  oc_orchestrator.worktree_env.PrepareResult
class  oc_orchestrator.worktree_env._Verification
class  oc_orchestrator.worktree_env.TeardownResult

Namespaces

namespace  oc_orchestrator
namespace  oc_orchestrator.worktree_env

Functions

Any oc_orchestrator.worktree_env._default_oct_hook (str target)
OctHook oc_orchestrator.worktree_env.use_oct_hook (OctHook|None hook)
subprocess.CompletedProcess[str] oc_orchestrator.worktree_env._run_git (Path repo_root, *str args, bool check=True)
bool oc_orchestrator.worktree_env._branch_exists (Path repo_root, str branch)
bool oc_orchestrator.worktree_env._same_path (Path left, Path right)
list[tuple[Path, str|None]] oc_orchestrator.worktree_env.worktree_entries (Path repo_root)
None oc_orchestrator.worktree_env.ensure_branch_and_worktree (Path repo_root, str branch, Path worktree, *, str|None base_sha=None)
Path oc_orchestrator.worktree_env.venv_scripts_dir (Path venv)
Path oc_orchestrator.worktree_env.venv_python (Path venv)
Path oc_orchestrator.worktree_env.venv_site_packages (Path venv)
str oc_orchestrator.worktree_env._drive_of (Path path)
tuple[EditablePackage,...] oc_orchestrator.worktree_env.discover_packages (Path root)
Path oc_orchestrator.worktree_env.sitecustomize_source (Path worktree)
str oc_orchestrator.worktree_env._resolve_uv (str executable)
Path oc_orchestrator.worktree_env._resolve_cache_dir (PrepareRequest request, Path worktree)
dict[str, str] oc_orchestrator.worktree_env._uv_env (Path cache)
subprocess.CompletedProcess[str] oc_orchestrator.worktree_env._run_uv (str uv, list[str] args, Path cache, *, str context)
dict[str, object] oc_orchestrator.worktree_env._stamp_payload (tuple[EditablePackage,...] packages, Path worktree, Path interpreter)
dict[str, object]|None oc_orchestrator.worktree_env._read_stamp (Path venv)
str oc_orchestrator.worktree_env._link_mode (str install_output, *, bool installed)
dict[str, str] oc_orchestrator.worktree_env._clean_env ()
_Verification oc_orchestrator.worktree_env._verify_imports (Path python, tuple[EditablePackage,...] packages, Path worktree, Path venv)
tuple[str,...] oc_orchestrator.worktree_env._run_smoke (Path python, Path worktree)
str oc_orchestrator.worktree_env._describe_stale (dict[str, object] previous, dict[str, object] current)
list[object] oc_orchestrator.worktree_env._stamp_specs (dict[str, object] stamp)
 oc_orchestrator.worktree_env._engine_timing (Path repo_root, str stage, str plan, *, OctHook|None oct_hook=None)
PrepareResult oc_orchestrator.worktree_env.prepare_worktree (PrepareRequest request)
list[str] oc_orchestrator.worktree_env._editable (list[str] specs)
tuple[str,...] oc_orchestrator.worktree_env._ensure_sitecustomize (Path venv, Path worktree)
TeardownResult oc_orchestrator.worktree_env.teardown_worktree (Path repo_root, Path worktree, *, str|None branch=None)

Variables

 oc_orchestrator.worktree_env.tomllib = None
 oc_orchestrator.worktree_env.OctHook = Callable[[str], Any]
tuple oc_orchestrator.worktree_env.OCT_HOOK_TARGETS = ("timed_stage",)
OctHook oc_orchestrator.worktree_env._oct_hook = _default_oct_hook
str oc_orchestrator.worktree_env.STAMP_FILENAME = ".oc_prepare.json"
int oc_orchestrator.worktree_env.STAMP_VERSION = 1
str oc_orchestrator.worktree_env.UV_CACHE_DIRNAME = ".uv-cache"
tuple oc_orchestrator.worktree_env.SMOKE_CHECKS
tuple oc_orchestrator.worktree_env._UV_INSTALL_HINT
str oc_orchestrator.worktree_env._HARDLINK_FALLBACK_MARKER = "failed to hardlink"