-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (30 loc) · 829 Bytes
/
Makefile
File metadata and controls
44 lines (30 loc) · 829 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
include common.mk
MODULES=getm
SCRIPTS=dev_scripts
tests:=$(wildcard tests/test_*.py)
test: lint mypy shared_memory_37 $(tests)
coverage combine
rm -f .coverage.*
# A pattern rule that runs a single test script
$(tests): %.py :
coverage run -p --source=getm $*.py --verbose
lint:
flake8 $(MODULES) $(SCRIPTS) *.py
mypy:
mypy --ignore-missing-imports $(MODULES)
benchmark:
python tests/benchmark.py
version: getm/version.py
getm/version.py: setup.py
echo "__version__ = '$$(python setup.py --version)'" > $@
clean:
git clean -dfx
build: clean version
python setup.py bdist_wheel
shared_memory_37:
python setup.py build_ext --inplace
sdist: clean version
python setup.py sdist
install: build
pip install --upgrade dist/*.whl
.PHONY: $(tests) benchmark getm/version.py clean build shared_memory_37 install