-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
19 lines (17 loc) · 884 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
help:
@echo "make help -- print this help"
@echo "make generate -- regenerate the json"
@echo "make update -- upload the json and index.html to s3"
generate:
wget https://hugovk.github.io/top-pypi-packages/top-pypi-packages-365-days.min.json -O top-pypi-packages.json
python3 generate.py
update:
/usr/local/bin/s3cmd put index.html s3://wheelpackages/index.html --cf-invalidate \
--add-header='Cache-Control: max-age=30' \
--add-header='Date: `date -u +"%a, %d %b %Y %H:%M:%S GMT"`'
/usr/local/bin/s3cmd put results.json s3://wheelpackages/results.json --cf-invalidate \
--add-header='Cache-Control: max-age=30' \
--add-header='Date: `date -u +"%a, %d %b %Y %H:%M:%S GMT"`'
/usr/local/bin/s3cmd put wheel.svg s3://wheelpackages/wheel.svg --cf-invalidate \
--add-header='Cache-Control: max-age=30' \
--add-header='Date: `date -u +"%a, %d %b %Y %H:%M:%S GMT"`'