|
|
|
@ -1,12 +1,10 @@
|
|
|
|
|
.PHONY: clean data lint requirements sync_data_to_s3 sync_data_from_s3 |
|
|
|
|
.PHONY: clean data lint requirements |
|
|
|
|
|
|
|
|
|
#################################################################################
|
|
|
|
|
# GLOBALS #
|
|
|
|
|
#################################################################################
|
|
|
|
|
|
|
|
|
|
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
|
BUCKET = {{ cookiecutter.s3_bucket }}
|
|
|
|
|
PROFILE = {{ cookiecutter.aws_profile }}
|
|
|
|
|
PROJECT_NAME = {{ cookiecutter.repo_name }}
|
|
|
|
|
PYTHON_INTERPRETER = {{ cookiecutter.python_interpreter }}
|
|
|
|
|
|
|
|
|
@ -38,22 +36,6 @@ clean:
|
|
|
|
|
lint: |
|
|
|
|
flake8 src
|
|
|
|
|
|
|
|
|
|
## Upload Data to S3
|
|
|
|
|
sync_data_to_s3: |
|
|
|
|
ifeq (default,$(PROFILE)) |
|
|
|
|
aws s3 sync data/ s3://$(BUCKET)/data/
|
|
|
|
|
else |
|
|
|
|
aws s3 sync data/ s3://$(BUCKET)/data/ --profile $(PROFILE)
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
## Download Data from S3
|
|
|
|
|
sync_data_from_s3: |
|
|
|
|
ifeq (default,$(PROFILE)) |
|
|
|
|
aws s3 sync s3://$(BUCKET)/data/ data/
|
|
|
|
|
else |
|
|
|
|
aws s3 sync s3://$(BUCKET)/data/ data/ --profile $(PROFILE)
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
## Set up python interpreter environment
|
|
|
|
|
create_environment: |
|
|
|
|
ifeq (True,$(HAS_CONDA)) |
|
|
|
|