Skip to content

Commit ac415a2

Browse files
committed
Adding checksum to aws package uploads
1 parent ac9a717 commit ac415a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/create_download_tracker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ def upload_package(dryrun=False):
156156
if file_name not in links:
157157
filepath = os.path.join('dist', file_name)
158158
file_hash = _get_file_hash(filepath)
159-
s3_client.upload_file(filepath, BUCKET, dest)
159+
s3_client.upload_file(
160+
filepath, BUCKET, dest, ExtraArgs={'ChecksumAlgorithm': 'SHA256'}
161+
)
160162
files_to_hashes[file_name] = file_hash
161163
else:
162164
raise RuntimeError(f'The file {file_name} is already in this package index.')

0 commit comments

Comments
 (0)