-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathMakefile
44 lines (30 loc) · 903 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
41
42
43
44
# Config
OSNAME := $(shell uname)
ifeq ($(OSNAME), Linux)
OPEN_COMMAND := gnome-open
else
OPEN_COMMAND := open
endif
all: install_deps test
filename=sure-`python -c 'import sure;print sure.version'`.tar.gz
export PYTHONPATH := ${PWD}:${PYTHONPATH}
export SURE_NO_COLORS := true
install_deps:
@pip install -r development.txt
test:
@python setup.py develop
@nosetests --rednose -vv --with-coverage --cover-package=sure
clean:
@printf "Cleaning up files that are already in .gitignore... "
@for pattern in `cat .gitignore`; do rm -rf $$pattern; find . -name "$$pattern" -exec rm -rf {} \;; done
@echo "OK!"
publish:
@python setup.py sdist register upload
release: clean test publish
@printf "Exporting to $(filename)... "
@tar czf $(filename) sure setup.py README.rst COPYING
@echo "DONE!"
.PHONY: docs
docs:
@(cd docs && make html)
$(OPEN_COMMAND) docs/build/html/index.html