Skip to content

Commit 608a2d1

Browse files
committed
Beginning to add code to update index
1 parent 0be4957 commit 608a2d1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/create_download_tracker.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,20 @@ def build_package():
3131
build.ProjectBuilder(PROJECT_PATH).build('sdist', 'dist')
3232

3333

34+
def _update_index_html(files, s3_client):
35+
pass
36+
37+
3438
def upload_package():
3539
"""Uploads the built package to the S3 bucket."""
3640
s3_client = boto3.client('s3')
37-
for file_name in os.listdir('dist'):
41+
files = os.listdir('dist')
42+
for file_name in files:
3843
dest = f'{S3_PACKAGE_PATH}/{file_name}'
3944
s3_client.upload_file(os.path.join('dist', file_name), BUCKET, dest)
4045

46+
_update_index_html(files, s3_client)
47+
4148

4249
if __name__ == '__main__':
4350
build_package()

0 commit comments

Comments
 (0)