-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 728 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (26 loc) · 728 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
# Makefile for EvoLib API maintenance
PYTHON := python3
TOOLS_DIR := tools
SRC_DIR := evolib
API_FILE := $(SRC_DIR)/api.py
.PHONY: all api clean init check-api
all: api
init:
@echo "Generating __init__.py in all submodules..."
python tools/gen_init.py evolib
@echo "Submodule __init__.py files updated."
api: init
@echo "Generating api.py and evolib/__init__.py ..."
python tools/gen_api_module.py evolib
@echo "API ready."
check-api:
git diff --exit-code evolib/api.py evolib/__init__.py
clean:
find evolib -name '__pycache__' -type d -exec rm -r {} +
find evolib -name '*.pyc' -delete
test:
python -m pytest tests/
coverage:
pytest --cov=evolib --cov-report=term-missing tests/
docs:
cd docs && make htm