(source_dir: Path)
| 99 | |
| 100 | |
| 101 | def _get_source_mtime(source_dir: Path) -> float: |
| 102 | max_mtime = 0.0 |
| 103 | for path in source_dir.rglob("*"): |
| 104 | if "dist" in path.parts: |
| 105 | continue |
| 106 | if path.is_file(): |
| 107 | max_mtime = max(max_mtime, path.stat().st_mtime) |
| 108 | return max_mtime |
| 109 | |
| 110 | |
| 111 | def _compute_dir_hash(directory: Path) -> str: |