Skip to content

Instantly share code, notes, and snippets.

@andgineer
Created June 19, 2025 11:37
Show Gist options
  • Save andgineer/535c8d39328d562f832a0dbde1d7b04a to your computer and use it in GitHub Desktop.
Save andgineer/535c8d39328d562f832a0dbde1d7b04a to your computer and use it in GitHub Desktop.
Windows command file uploads to S3 Python wheels
@echo off
uv export --no-hashes --no-dev --frozen -o requirements.txt
uv add boto3==1.18.50
echo Clearing wheels directory if it exists...
if exist wheels rmdir /s /q wheels
echo Downloading wheels...
pip download ^
--python-version 3.9 ^
--platform manylinux2014_x86_64 ^
--only-binary :all: ^
--dest wheels ^
--index-url https://artifacts.*/artifactory/api/pypi/pypi-main/simple ^
--extra-index-url https://artifacts.*/artifactory/api/pypi/pypi-main-dev-local/simple ^
-r requirements.txt
echo Uploading wheels to S3...
aws s3 sync wheels/ s3://*/libs/ ^
--exclude "*" ^
--include "*.whl" ^
--region "us-east-1"
echo Cleaning up wheels directory...
rmdir /s /q wheels
echo Done!
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment