← Về thư mục
scripts/release_pipeline.py
- _sandbox_posture · function · L97-L125 — def _sandbox_posture( *, linux_boundary: Mapping[str, Any] | None = None ) -> dict[str, Any]
- default_shell_assets · function · L141-L190 — def default_shell_assets(document: bytes) -> tuple[list[str], list[str]]
- shipped · function · L152-L164 — def shipped(ref: str, suffix: str) -> bool
- Assets · class · L166-L183 — class Assets(HTMLParser)
- init · method · L167-L170 — def init(self) -> None
- handle_starttag · method · L172-L183 — def handle_starttag( self, tag: str, attrs: list[tuple[str, str | None]] ) -> None
- dmg_present · function · L193-L199 — def dmg_present(assets: Sequence[Path]) -> bool
- required_receipt_kinds · function · L213-L230 — def required_receipt_kinds(assets: Sequence[Path]) -> tuple[str, ...]
- signing_state · function · L303-L319 — def signing_state(signature: Mapping[str, Any] | None) -> str
- ReleaseError · class · L341-L342 — class ReleaseError(RuntimeError)
- StepResult · class · L346-L358 — class StepResult
- public · method · L352-L358 — def public(self) -> dict[str, Any]
- _run · function · L361-L367 — def _run(argv: Sequence[str], cwd: Path | None = None)
- sha256_file · function · L370-L375 — def sha256_file(path: Path) -> str
- parse_checksums · function · L378-L393 — def parse_checksums(text: str) -> dict[str, str]
- _asset_version · function · L396-L414 — def _asset_version(filename: str) -> str | None
- wheel_components · function · L422-L459 — def wheel_components(wheel: Path) -> list[dict[str, str]]
- sidecar_components · function · L462-L502 — def sidecar_components( assets: Sequence[Path], ) -> tuple[list[dict[str, str]], list[str]]
- canonical_source_uri · function · L505-L553 — def canonical_source_uri(runner: Callable[..., Any] = _run) -> str
- build_sbom · function · L556-L616 — def build_sbom( assets: list[Path], *, version: str, packages: list[dict], unread: Sequence[str] = (), ) -> dict
- build_provenance · function · L619-L653 — def build_provenance(assets: list[Path], *, version: str, source: dict) -> dict
- build_quality_receipt · function · L660-L679 — def build_quality_receipt( source_sha: str, gates: list[dict], checks: list[dict] | None = None, *, platform_checks: list[dict] | None = None, ) -> dict
- verify_quality_receipt · function · L682-L710 — def verify_quality_receipt(path: Path, *, expected_sha: str) -> dict
- read_signature · function · L713-L810 — def read_signature(dmg: Path, runner: Callable[..., Any] = _run) -> dict[str, Any]
- Pipeline · class · L813-L2341 — class Pipeline
- init · method · L816-L879 — def init( self, version: str, *, mode: str = "local", dry_run: bool = False, assets_dir: Path | None = None, runner: Callable[..., Any] | None = None, gh: Callable[[Sequence[str]], Any] | None = None, from_artifacts: bool = False, stop_after: str | None = None, only: str | None = None, pypi_check: Callable[[str, str], bool] | None = None, pypi_digests: Callable[[str, str], dict[str, str]] | None = None, smoke: Callable[[Path], str] | None = None, source_sha: str = "", attestation: Path | None = None, workflow_run_id: str = "", workflow_inputs: Mapping[str, Any] | None = None, ) -> None
- step_build · method · L882-L932 — def step_build(self) -> StepResult
- _build_frontend · method · L934-L942 — def _build_frontend(self)
- step_test · method · L944-L1050 — def step_test(self) -> StepResult
- _head_sha · method · L1052-L1056 — def _head_sha(self) -> str
- _frozen_sha · method · L1058-L1082 — def _frozen_sha(self) -> str
- step_assets · method · L1084-L1115 — def step_assets(self) -> StepResult
- step_smoke · method · L1117-L1136 — def step_smoke(self) -> StepResult
- _install_and_exercise · method · L1138-L1182 — def _install_and_exercise(self, wheel: Path) -> str
- _smoke_daemon · method · L1184-L1239 — def _smoke_daemon(self, python: Path, root: Path, env: dict[str, str]) -> str
- _stop_installed_daemon · method · L1242-L1303 — def _stop_installed_daemon( python: Path, root: Path, env: dict[str, str], daemon: subprocess.Popen, ) -> str
- _probe_installed_daemon · method · L1306-L1455 — def _probe_installed_daemon( python: Path, root: Path, env: dict[str, str], base_url: str, ) -> None
- load · function · L1397-L1404 — def load(url: str) -> tuple[int, str, str, bytes]
- step_sbom · method · L1457-L1476 — def step_sbom(self) -> StepResult
- step_provenance · method · L1478-L1499 — def step_provenance(self) -> StepResult
- step_evidence · method · L1501-L1579 — def step_evidence(self) -> StepResult
- step_checksums · method · L1581-L1601 — def step_checksums(self) -> StepResult
- step_verify · method · L1603-L1795 — def step_verify(self) -> StepResult
- step_draft · method · L1797-L1819 — def step_draft(self) -> StepResult
- step_upload · method · L1821-L1840 — def step_upload(self) -> StepResult
- step_reverify · method · L1842-L1963 — def step_reverify(self) -> StepResult
- _download_asset · method · L1965-L1987 — def _download_asset(self, name: str, dest_dir: Path) -> Path
- _revalidate_draft_from_checksums · method · L1989-L2098 — def _revalidate_draft_from_checksums(self) -> dict[str, str]
- step_publish · method · L2100-L2220 — def step_publish(self) -> StepResult
- planned_steps · method · L2223-L2238 — def planned_steps(self) -> tuple[str, ...]
- run · method · L2240-L2262 — def run(self) -> dict[str, Any]
- _seal_stopped_run · method · L2264-L2277 — def _seal_stopped_run(self, report: Mapping[str, Any]) -> None
- report · method · L2279-L2341 — def report( self, stopped_at: str | None = None, planned: Sequence[str] = STEPS, *, sealing: bool = False, ) -> dict[str, Any]
- seal_evidence_bundle · function · L2344-L2402 — def seal_evidence_bundle( destination: Path, payload: Mapping[str, Any], *, files: Sequence[Path] = () ) -> dict[str, Any]
- _pypi_has_version · function · L2405-L2421 — def _pypi_has_version(project: str, version: str) -> bool
- _pypi_file_digests · function · L2424-L2448 — def _pypi_file_digests(project: str, version: str) -> dict[str, str]
- main · function · L2451-L2540 — def main() -> int