Makefile (3825B)
1 requirements: 2 rm -rf package 3 pip install --platform manylinux2014_aarch64 --target=package --implementation cp --python-version 3.12 --only-binary=:all: -r requirements.txt 4 5 requirements-arm64: 6 rm -rf package 7 pip install --target=package --implementation cp --python-version 3.12 -r requirements.txt 8 9 clean-pycache: 10 rm -rvf wow_token/__pycache__ 11 rm -rvf wow_token/db/__pycache__ 12 13 token-current: 14 rm -f build/wow-token-current.zip 15 zip build/wow-token-current.zip wow-token-current.py 16 17 token-current-upload: token-current 18 openssl dgst -sha256 -binary build/wow-token-current.zip | openssl enc -base64 > build/wow-token-current.zip.sha256 19 aws s3 cp build/wow-token-current.zip s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 20 aws s3 cp build/wow-token-current.zip.sha256 s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 21 22 token-current-v2: clean-pycache 23 rm -f build/wow-token-current-v2.zip 24 zip -r build/wow-token-current-v2.zip wow_token 25 zip -g build/wow-token-current-v2.zip wow-token-current-v2.py 26 27 token-current-v2-upload: token-current-v2 28 openssl dgst -sha256 -binary build/wow-token-current-v2.zip | openssl enc -base64 > build/wow-token-current-v2.zip.sha256 29 aws s3 cp build/wow-token-current-v2.zip s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 30 aws s3 cp build/wow-token-current-v2.zip.sha256 s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 31 32 token-historical: 33 rm -f build/wow-token-historical.zip 34 zip build/wow-token-historical.zip wow-token-historical.py 35 36 token-historical-upload: token-historical 37 openssl dgst -sha256 -binary build/wow-token-historical.zip | openssl enc -base64 > build/wow-token-historical.zip.sha256 38 aws s3 cp build/wow-token-historical.zip s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 39 aws s3 cp build/wow-token-historical.zip.sha256 s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 40 41 token-historical-v2: clean-pycache 42 rm -f build/wow-token-historical-v2.zip 43 zip -r build/wow-token-historical-v2.zip wow_token 44 zip -g build/wow-token-historical-v2.zip wow-token-historical-v2.py 45 46 token-historical-v2-upload: token-historical-v2 47 openssl dgst -sha256 -binary build/wow-token-historical-v2.zip | openssl enc -base64 > build/wow-token-historical-v2.zip.sha256 48 aws s3 cp build/wow-token-historical-v2.zip s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 49 aws s3 cp build/wow-token-historical-v2.zip.sha256 s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 50 51 token-updater: requirements 52 rm -f build/wow-token-updater.zip 53 cd package && zip -qr ../build/wow-token-updater.zip . 54 zip -g build/wow-token-updater.zip wow-token-updater.py 55 56 token-updater-upload: token-updater 57 openssl dgst -sha256 -binary build/wow-token-updater.zip | openssl enc -base64 > build/wow-token-updater.zip.sha256 58 aws s3 cp build/wow-token-updater.zip s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 59 aws s3 cp build/wow-token-updater.zip.sha256 s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 60 61 token-compactor: requirements 62 rm -f build/wow-token-compactor.zip 63 zip build/wow-token-compactor.zip wow-token-compactor.py 64 65 token-compactor-upload: token-compactor 66 openssl dgst -sha256 -binary build/wow-token-compactor.zip | openssl enc -base64 > build/wow-token-compactor.zip.sha256 67 aws s3 cp build/wow-token-compactor.zip s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 68 aws s3 cp build/wow-token-compactor.zip.sha256 s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1 69 70 upload: token-current-v2-upload token-updater-upload token-historical-upload token-compactor-upload 71 72 clean: 73 rm -v build/* 74 75 all: upload 76