-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (32 loc) · 842 Bytes
/
Makefile
File metadata and controls
58 lines (32 loc) · 842 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
49
50
51
52
53
54
55
56
57
58
.DEFAULT_GOAL=
VIRTUALENV_PATH=.venv
API_DOCS_PATH=docs/source/api
venv:
test -d $(VIRTUALENV_PATH) || virtualenv $(VIRTUALENV_PATH) -p python3
venv.clean:
rm -rf $(VIRTUALENV_PATH)
deps.install:
pip install -r requirements/requirements-dev.txt
pip install -r requirements/requirements-docs.txt
pip install -r requirements/requirements-optional.txt
link:
pip install -e .
prepare: deps.install link
typecheck:
mypy .
mypy.clean:
rm -rf .mypy_cache
.PHONY: test
test: typecheck
python -m unittest discover -s tests/ --verbose
.PHONY: docs
docs:
mkdir -p $(API_DOCS_PATH)
sphinx-apidoc stackholm -f -M -o $(API_DOCS_PATH)
python docs/source/_postprocessors/_run.py
cd docs && make html
.PHONY: docs.clean
docs.clean:
cd docs && make clean
rm -rf $(API_DOCS_PATH)
clean: venv.clean mypy.clean docs.clean