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
commit b5baf5c807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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