Skip to content

Commit b5baf5c

Browse files
authored
Merge pull request pre-commit#1714 from pre-commit/sha256sum_pyz
also produce sha256sum of pyz on creation
2 parents c4f2c6d + 0bd6dfc commit b5baf5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/zipapp/make

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def main() -> int:
9999
shebang = '/usr/bin/env python3'
100100
zipapp.create_archive(tmpdir, filename, interpreter=shebang)
101101

102+
with open(f'{filename}.sha256sum', 'w') as f:
103+
subprocess.check_call(('sha256sum', filename), stdout=f)
104+
102105
return 0
103106

104107

0 commit comments

Comments
 (0)