also produce sha256sum of pyz on creation

This commit is contained in:
Anthony Sottile
2020-11-25 13:45:22 -08:00
parent c4f2c6d24d
commit 0bd6dfc1a2

View File

@@ -99,6 +99,9 @@ def main() -> int:
shebang = '/usr/bin/env python3'
zipapp.create_archive(tmpdir, filename, interpreter=shebang)
with open(f'{filename}.sha256sum', 'w') as f:
subprocess.check_call(('sha256sum', filename), stdout=f)
return 0