forked from capitalone/giraffez
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (29 loc) · 834 Bytes
/
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
.PHONY: all clean build test cover docs
PYMODULE=giraffez
all: clean install
build:
@echo "Building giraffez extension..."
@python setup.py build --force
install:
@echo "Installing giraffez..."
@python setup.py install
wheel:
@echo "Building giraffez wheel..."
@python setup.py bdist_wheel
clean:
@echo "Cleaning up existing build files..."
@rm -rf build MANIFEST *.egg-info htmlcov tests/tmp .cache .benchmarks .coverage .eggs
@rm -f $(PYMODULE)/*.so $(PYMODULE)/*.pyd $(PYMODULE)/*.pyc
test: wheel
@echo "Running unit tests..."
@py.test tests/
bench:
@echo "Running benchmark tests..."
@py.test tests/benchmarks.py
cover: wheel
@echo "Analyzing coverage (html)"
@py.test --cov $(PYMODULE) --cov-report html
upload: test
@python setup.py bdist_wheel upload
docs:
@cd docs && sphinx-build -a -b html src .