-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 1 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
36
37
38
39
40
41
42
.EXPORT_ALL_VARIABLES:
PYTHONPATH=./annotator
PYTHON=./venv/bin/python3.7
PIP=./venv/bin/pip3.7
SOURCE_VENV=./venv/bin/activate
clean-pyc:
find . -name "*.pyc" -exec rm -f {} \;
clean-build:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache
install:
source $(SOURCE_VENV); \
$(PIP) install -r requirements.txt
test: clean-pyc clean-build
#source $(SOURCE_VENV) && py.test --verbose --color=yes ./annotator
source $(SOURCE_VENV) && py.test --verbose --color=yes ./pipeline
run:
source $(SOURCE_VENV) && $(PYTHON) $(PYTHONPATH)/manage.py runserver
celery:
source $(SOURCE_VENV) && celery -A annotator worker -l info --concurrency=4 --workdir $(PYTHONPATH)
migratedb:
source $(SOURCE_VENV); \
$(PYTHON) $(PYTHONPATH)/manage.py makemigrations; \
$(PYTHON) $(PYTHONPATH)/manage.py migrate; \
create_cartoon_images:
source $(SOURCE_VENV); \
$(PYTHON) $(PYTHONPATH)/manage.py create_cartoon_images;
export_dataset:
source $(SOURCE_VENV); \
$(PYTHON) $(PYTHONPATH)/manage.py export_dataset;