]> git.cworth.org Git - turbot/blobdiff - Makefile
Add notes on how to update the Google sheets credentials
[turbot] / Makefile
index de0462c485bbcecf62317d5d78f5a0f21ee3717c..3b62ba8846018f83abd3257ec1141992bbadd771 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,10 @@ ifndef VIRTUAL_ENV
        $(error "No virtualenv active. Try '. ./env/bin/activate'")
 endif
 
+.PHONY: flake
+flake:
+       flake8 --exclude=env,.deploy*
+
 .PHONY: bootstrap
 bootstrap:
        @echo "=== Creating python virtual environment ==="
@@ -76,9 +80,10 @@ deploy-flask:
 deploy-lambda:
        rm -rf .deploy-lambda-source
        git clone . .deploy-lambda-source
+       make -C .deploy-lambda-source flake
        make -C .deploy-lambda-source bootstrap
        (cd .deploy-lambda-source; . env/bin/activate; make reqs)
-       (cd .deploy-lambda-source/env/lib/python3.8/site-packages; zip -r ../../../../turbot.zip .)
+       (cd .deploy-lambda-source/env/lib/python*/site-packages; zip -r ../../../../turbot.zip .)
        (cd .deploy-lambda-source/turbot_lambda; zip ../turbot.zip turbot_lambda.py)
        (cd .deploy-lambda-source; zip turbot.zip $$(git ls-files -- turbot))
        (cd .deploy-lambda-source; \