Skip to content

Commit

Permalink
example Makefile updates
Browse files Browse the repository at this point in the history
  • Loading branch information
amancevice committed Aug 4, 2023
1 parent c25bc42 commit bc85bf4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ __pycache__/
*.coverage
*.env
*.iid
*.whl
*.zip
.python-version
.terraform.lock.hcl
Expand Down
17 changes: 11 additions & 6 deletions example/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BUCKET := serverless-pypi-us-west-2
BUCKET := us-west-2-serverless-pypi
ENDPOINT := $(shell terraform output -raw endpoint)

curl:
curl -s $(ENDPOINT)/requests-iamauth/ | prettier --parser html | bat -l html
curl -s $(ENDPOINT)requests-iamauth/ | prettier --parser html | bat -l html

logs:
aws logs describe-log-groups --region us-west-2 \
Expand All @@ -11,8 +11,13 @@ logs:
| fzf --no-info --reverse \
| xargs aws logs tail --follow

upload:
curl -so- https://files.pythonhosted.org/packages/d0/d5/a2263aede309463cec2a1a5046b9e5b314b7ed4a8273c7c214af619700bb/requests-iamauth-0.3.0.tar.gz#sha256=189cc26ccf641afb8e7f1ec4a16f902f70bf57d818075c08412d0d86d4b04729 \
| aws s3 cp - s3://$(BUCKET)/requests-iamauth/requests-iamauth-0.3.0.tar.gz
ls:
aws s3 ls s3://$(BUCKET)/ --recursive

.PHONY: curl logs upload
upload: requests_iamauth-0.7.0-py3-none-any.whl
aws s3 cp $< s3://$(BUCKET)/requests-iamauth/$<

.PHONY: curl logs ls upload

requests_iamauth-%-py3-none-any.whl:
pip download --no-deps requests-iamauth==$*

0 comments on commit bc85bf4

Please sign in to comment.