Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

394 makefile fixes #395

Merged
merged 2 commits into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions {{ cookiecutter.repo_name }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/ \
Expand All @@ -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/
Expand Down Expand Up @@ -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 %}

#################################################################################
Expand Down
Loading