Skip to content

Commit

Permalink
pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
samster25 committed Dec 15, 2023
1 parent b336d2d commit 73f4c32
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/generate_whl_html_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@

s3 = boto3.client("s3")

response = s3.list_objects_v2(Bucket="github-actions-artifacts-bucket")
all_objects = []

all_objects = response["Contents"]
paginator = s3.get_paginator("list_objects_v2")
pages = paginator.paginate(Bucket="github-actions-artifacts-bucket")

for page in pages:
for obj in page["Contents"]:
all_objects.append(obj)

all_wheels = [obj["Key"] for obj in all_objects if obj["Key"].endswith(".whl")]

Expand Down

0 comments on commit 73f4c32

Please sign in to comment.