Merge pull request #1714 from pre-commit/sha256sum_pyz

also produce sha256sum of pyz on creation
This commit is contained in:
Anthony Sottile
2020-11-25 14:09:42 -08:00
committed by GitHub

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