-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
35 lines (29 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
all : commands
## commands : show all commands.
commands :
@grep -E '^##' Makefile | sed -e 's/## //g'
## requirements : creates requirements.txt from environment.yml
.PHONY: requirements
requirements:
python scripts/env_conda2pip.py
## setup_env : set up the conda environment using the environment.yml
.PHONY: setup_env
setup:
conda activate base
conda remove --name db_covid19 --all # removes the env if it already exists
conda config --add channels conda-forge # adds conda forge as default channel
conda config --set channel_priority strict
conda env create --file environmet.yml
## update_env : updates the conda environment using the environment.yml
.PHONY: update_env
update:
conda activate db_covid19
conda env update --file environment.yml
## data_kaggle : downloads he kaggle source data for the repository
.PHONY: data_kaggle
data_kaggle:
kaggle datasets download allen-institute-for-ai/CORD-19-research-challenge -p ./data/db/original/kaggle --unzip
## data_kgl_text : parses the kaggle json files
.PHONY: data_kgl_text
data_kgl_text:
python ./analysis/db/kaggle/01-combine_documents.py