|
|
@ -1,4 +1,14 @@ |
|
|
|
.PHONY: clean data requirements sync_data_to_s3 sync_data_from_s3 |
|
|
|
.PHONY: clean data lint requirements sync_data_to_s3 sync_data_from_s3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#################################################################################
|
|
|
|
|
|
|
|
# GLOBALS #
|
|
|
|
|
|
|
|
#################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BUCKET = {{ cookiecutter.s3_bucket }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#################################################################################
|
|
|
|
|
|
|
|
# COMMANDS #
|
|
|
|
|
|
|
|
#################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
requirements: |
|
|
|
requirements: |
|
|
|
pip install -r requirements.txt
|
|
|
|
pip install -r requirements.txt
|
|
|
@ -9,8 +19,15 @@ data: requirements |
|
|
|
clean: |
|
|
|
clean: |
|
|
|
find . -name "*.pyc" -exec rm {} \;
|
|
|
|
find . -name "*.pyc" -exec rm {} \;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lint: |
|
|
|
|
|
|
|
flake8 .
|
|
|
|
|
|
|
|
|
|
|
|
sync_data_to_s3: |
|
|
|
sync_data_to_s3: |
|
|
|
s3cmd sync --recursive data/ s3://{{ cookiecutter.s3_bucket }}/data/
|
|
|
|
s3cmd sync --recursive data/ s3://$( BUCKET )/data/
|
|
|
|
|
|
|
|
|
|
|
|
sync_data_from_s3: |
|
|
|
sync_data_from_s3: |
|
|
|
s3cmd sync --recursive s3://{{ cookiecutter.s3_bucket }}/data/ data/
|
|
|
|
s3cmd sync --recursive s3://$( BUCKET )/data/ data/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#################################################################################
|
|
|
|
|
|
|
|
# PROJECT RULES #
|
|
|
|
|
|
|
|
#################################################################################
|
|
|
|