Skip to content

Commit

Permalink
Merge pull request #1714 from pre-commit/sha256sum_pyz
Browse files Browse the repository at this point in the history
also produce sha256sum of pyz on creation
  • Loading branch information
asottile committed Nov 25, 2020
2 parents c4f2c6d + 0bd6dfc commit b5baf5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testing/zipapp/make
Expand Up @@ -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


Expand Down

0 comments on commit b5baf5c

Please sign in to comment.