(directory: Path)
| 109 | |
| 110 | |
| 111 | def _compute_dir_hash(directory: Path) -> str: |
| 112 | digest = hashlib.md5(usedforsecurity=False) |
| 113 | for file_path in sorted(p for p in directory.rglob("*") if p.is_file()): |
| 114 | digest.update(str(file_path.relative_to(directory)).encode("utf-8")) |
| 115 | digest.update(file_path.read_bytes()) |
| 116 | return digest.hexdigest() |
| 117 | |
| 118 | |
| 119 | def _has_required_static_dist_assets(dist_dir: Path) -> bool: |
no test coverage detected