-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (33 loc) · 778 Bytes
/
Makefile
File metadata and controls
49 lines (33 loc) · 778 Bytes
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
36
37
38
39
40
41
42
43
44
45
46
47
48
VENV_NAME?=venv
PYTHON=$(PWD)/$(VENV_NAME)/bin/python
PIP=$(PWD)/$(VENV_NAME)/bin/pip
export DATA_DIR = $(PWD)/data
data: $(EXTRACTIONS)
$(PYTHON) preprocessing_scripts/full_pipeline.py $<
venv:
test -d $(VENV_NAME) || python3 -m venv $(VENV_NAME)
. $(VENV_NAME)/bin/activate
install: venv config
$(PIP) install .
@cd app/react-app; npm install
@pip install -U -e .\[tests\]
@$(PYTHON) -m spacy download en_core_web_sm
@unzip data/tripadvisor_hotels.zip -d data
build: venv
npm build app/react-app
test: venv
nosetests tests/*.py
server: venv
cd app; $(PYTHON) app.py
ui: venv
cd app/react-app; npm start
config: keys
./scripts/config.sh
/bin/bash ./app/react-app/.env
keys:
./scripts/keys.sh
gitclean:
#TODO
uninstall:
#TODO
$(EXTRACTIONS):