(repo: Path, files: dict[str, str])
| 51 | |
| 52 | |
| 53 | def write_package(repo: Path, files: dict[str, str]) -> None: |
| 54 | shutil.rmtree(repo / PACKAGE_DIR, ignore_errors=True) |
| 55 | for name, text in {"__init__.py": "", **files}.items(): |
| 56 | path = repo / PACKAGE_DIR / name |
| 57 | path.parent.mkdir(parents=True, exist_ok=True) |
| 58 | path.write_text(text) |
| 59 | |
| 60 | |
| 61 | def reported_names(repo: Path, *, baseline: dict[str, str], tip: dict[str, str]) -> list[str]: |