From cd47b9c2a0845c912070cf3daca0cc6bc7431012 Mon Sep 17 00:00:00 2001 From: Peter Bull Date: Fri, 12 Jul 2024 09:41:32 -0700 Subject: [PATCH] 394 makefile fixes (#395) * fix sync commands * fix dataset path --- {{ cookiecutter.repo_name }}/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/{{ cookiecutter.repo_name }}/Makefile b/{{ cookiecutter.repo_name }}/Makefile index 529e43cc0..b331c77ec 100644 --- a/{{ cookiecutter.repo_name }}/Makefile +++ b/{{ cookiecutter.repo_name }}/Makefile @@ -48,7 +48,7 @@ format: .PHONY: sync_data_down sync_data_down: {% if cookiecutter.dataset_storage.s3 -%} - aws s3 sync s3://{{ cookiecutter.dataset_storage.s3.bucket }}/data/\ + aws s3 sync s3://{{ cookiecutter.dataset_storage.s3.bucket }}/data/ \ data/ {% if cookiecutter.dataset_storage.s3.aws_profile != 'default' %} --profile {{ cookiecutter.dataset_storage.s3.aws_profile }}{% endif %} {% elif cookiecutter.dataset_storage.azure -%} az storage blob download-batch -s {{ cookiecutter.dataset_storage.azure.container }}/data/ \ @@ -61,8 +61,8 @@ sync_data_down: .PHONY: sync_data_up sync_data_up: {% if cookiecutter.dataset_storage.s3 -%} - aws s3 sync s3://{{ cookiecutter.dataset_storage.s3.bucket }}/data/ data/\ - {% if cookiecutter.dataset_storage.s3.aws_profile %} --profile $(PROFILE){% endif %} + aws s3 sync data/ \ + s3://{{ cookiecutter.dataset_storage.s3.bucket }}/data {% if cookiecutter.dataset_storage.s3.aws_profile != 'default' %} --profile {{ cookiecutter.dataset_storage.s3.aws_profile }}{% endif %} {% elif cookiecutter.dataset_storage.azure -%} az storage blob upload-batch -d {{ cookiecutter.dataset_storage.azure.container }}/data/ \ -s data/ @@ -100,7 +100,7 @@ create_environment: ## Make Dataset .PHONY: data data: requirements - $(PYTHON_INTERPRETER) {{ cookiecutter.module_name }}/data/make_dataset.py + $(PYTHON_INTERPRETER) {{ cookiecutter.module_name }}/dataset.py {% endif %} #################################################################################