refactor: consolidate CI pipeline, remove third-party deps

This commit is contained in:
Abdessamad Derraz
2026-03-17 12:33:10 +01:00
parent e6ea0484a8
commit 3453f89d9d
34 changed files with 206 additions and 2091 deletions

View File

@@ -7,6 +7,7 @@ and file resolution - eliminates DRY violations across scripts.
from __future__ import annotations
import hashlib
import json
import os
import zipfile
import zlib
@@ -38,6 +39,12 @@ def compute_hashes(filepath: str | Path) -> dict[str, str]:
}
def load_database(db_path: str) -> dict:
"""Load database.json and return parsed dict."""
with open(db_path) as f:
return json.load(f)
def md5sum(filepath: str | Path) -> str:
"""Compute MD5 of a file - matches Batocera's md5sum()."""
h = hashlib.md5()