-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
29 lines (24 loc) · 977 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
29
# META ]------------------------------------------------------------------------
help:
@echo "test Return status of source files."
@echo "config Make config file for Spotify API."
@echo "deps Make dependencies."
@echo "server Create server to view visualization."
@echo "clean Remove artifacts and standardize repo."
# CORE ]------------------------------------------------------------------------
test: deps
. venv/bin/activate ;\
black --check . --exclude venv
config:
touch spotitude.config && \
printf "[DEFAULT]\nUSERNAME=\nSCOPE=user-top-read playlist-modify-private\nREDIRECT_URI=http://localhost:8080\nCLIENT_ID=\nCLIENT_SECRET=" > spotitude.config
deps: requirements.txt
test -d venv || (python3 -m venv venv && \
venv/bin/pip3 install -r requirements.txt && \
touch venv/bin/activate)
server:
python3 -m http.server 8080
clean: deps
. venv/bin/activate ;\
black . --exclude venv && \
rm -rf *.html *.csv .cache-* __pycache__ venv/