PureOne's picture
Release SÆLQIR-M1 v1.0.0 research and executable-weight prototype
ecdbd89 verified
Raw History Blame Contribute Delete
856 Bytes
#!/usr/bin/env python3
"""Verify the prepared repository and its unchanged source without network I/O."""
from pathlib import Path
import subprocess
import sys
from upload_to_hf import load_release, ReleaseError
ROOT = Path(__file__).resolve().parents[1]
def main():
try:
payload = load_release(ROOT)
except (ReleaseError, OSError) as error:
print(f"FAIL: {error}", file=sys.stderr)
return 1
print(f"PASS: {len(payload)} prepared files match the complete upload inventory.")
result = subprocess.run([sys.executable, str(ROOT / 'research/verify_release.py')], check=False)
if result.returncode:
return result.returncode
print("PASS: preserved original research and prepared repository both verify. No network access performed.")
return 0
if __name__ == '__main__':
raise SystemExit(main())