-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (38 loc) · 1.16 KB
/
Makefile
File metadata and controls
51 lines (38 loc) · 1.16 KB
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
49
50
51
VENV_DIR := venv
prepare-venv:
@command -v pyenv >/dev/null 2>&1 || { echo "pyenv not installed"; exit 1; }
pyenv install -s
python -m venv $(VENV_DIR)
$(VENV_DIR)/bin/pip install --upgrade pip
@echo "In order to use venv python, please run 'source venv/bin/activate', then install dependencies by running \
'make install-dev'."
prepare-web:
pip install -r web/requirements.txt
cp web/.env.example web/.env
python ./web/manage.py migrate
python ./web/manage.py createsuperuser
install-dev:
pip install -r requirements.txt
install-scispacy:
pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.4/en_core_sci_lg-0.5.4.tar.gz
start:
python ./web/manage.py runserver
import-wikidata:
python ./web/manage.py import_wikidata
clear-db:
python ./web/manage.py clear_wikidata
compute-concepts:
python ./web/manage.py compute_concepts
categorize:
python ./web/manage.py categorize --limit 10
fix-files:
pip install -r requirements.txt
python3 -m black .
python3 -m isort .
python3 -m flake8 .
create-migrations:
python ./web/manage.py makemigrations
migrate:
python ./web/manage.py migrate
import-lmfdb:
python ./web/manage.py import_lmfdb