forked from DistrictDataLabs/yellowbrick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (29 loc) · 833 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
# Shell to use with Make
SHELL := /bin/bash
# Set important Paths
PROJECT := yellowbrick
LOCALPATH := $(CURDIR)/$(PROJECT)
PYTHONPATH := $(LOCALPATH)/
PYTHON_BIN := $(VIRTUAL_ENV)/bin
# Export targets not associated with files
.PHONY: test coverage pip virtualenv clean publish uml
# Clean build files
clean:
find . -name "*.pyc" -print0 | xargs -0 rm -rf
-rm -rf htmlcov
-rm -rf .coverage
-rm -rf build
-rm -rf dist
-rm -rf $(PROJECT).egg-info
-rm -rf site
-rm -rf classes_$(PROJECT).png
-rm -rf packages_$(PROJECT).png
# Targets for testing
test:
$(PYTHON_BIN)/nosetests -v --with-coverage --cover-package=$(PROJECT) --cover-inclusive --cover-erase tests
# Publish to gh-pages
publish:
git subtree push --prefix=deploy origin gh-pages
# Draw UML diagrams
uml:
pyreverse -ASmy -k -o png -p $(PROJECT) $(LOCALPATH)