Skip to content

Commit

Permalink
fix: Txt files will not be uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-kocka committed Jan 16, 2024
1 parent ed444da commit 20734b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion create_index_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@
DL_BUCKET,
f'pypi/{name}/index.html',
ExtraArgs={'ACL': 'public-read', 'ContentType':'text/html'})
# TODO index.html in wheel URL is pointing on the same URL and should not be or maybe it can be deleted
9 changes: 4 additions & 5 deletions upload_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
if match:
wheel_name = match.group(1)

wheel_name = wheel_name.lower()
wheel_name = wheel_name.replace('_', '-')
wheel_name = wheel_name.lower()
wheel_name = wheel_name.replace('_', '-')

BUCKET.upload_file(f'{WHEELS_DIR}{os.sep}{subdir}{os.sep}{wheel}', f'pypi/{wheel_name}/{wheel}')
print(f'Uploaded {wheel}')
# TODO dependent_requirements.txt files should not be uploaded
BUCKET.upload_file(f'{WHEELS_DIR}{os.sep}{subdir}{os.sep}{wheel}', f'pypi/{wheel_name}/{wheel}')
print(f'Uploaded {wheel}')

0 comments on commit 20734b6

Please sign in to comment.