mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
Merge pull request #1714 from pre-commit/sha256sum_pyz
also produce sha256sum of pyz on creation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user