forked from ftupas/dbt-spotify-analytics
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
28 lines (23 loc) · 874 Bytes
/
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
build: requirements.txt
@echo "--CREATING virtual enviroment venv--";
@python3 -m venv venv;
@echo "--INSTALLING dependencies--";
@. venv/bin/activate; pip install -r requirements.txt;
run:
@echo "--GETTING data from Spotify--";
@. venv/bin/activate; python3 app/main.py;
clean-all:
@echo "--DELETING venv, pycache, log files and csv files--";
@rm -r venv; find . | grep -E "(.cache|debug.log|.csv)" | xargs rm -rf;
@find . | grep -E "(__pycache__|.pytest_cache)" | xargs rm -rf;
clean:
@echo "--DELETING venv and pycache--";
@rm -r venv; find . | grep -E "(.cache)" | xargs rm -rf;
@find . | grep -E "(__pycache__|.pytest_cache)" | xargs rm -rf;
up-dbt:
@echo "--initializing db and dbt containers--";
@docker compose up postgres dbt -d;
debug-dbt:
@echo "--initializing db and dbt containers--";
@docker compose down;
@docker compose up postgres dbt;