-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (35 loc) · 773 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
.PHONY: testall
testall: requirements
tox
.PHONY: test
test: install
LANG=en_us.UTF-8 NOSE_COVER_PACKAGE=charmander nosetests -s --nologcapture --with-coverage
.PHONY: clean
clean:
rm -rf build dist charmander.egg-info
.PHONY: run
run: install
bin/charmander
.PHONY: repl
repl: install
bin/charmander -t
# non-empty if we're on python 2.6
PYTHON2_6 = $(shell python --version 2>&1 | grep 2.6)
.PHONY: requirements
requirements:
pip install -r requirements.txt
ifneq ($(PYTHON2_6), )
pip install -r requirements-2.6.txt
endif
.PHONY: install
install: requirements
python setup.py install
make clean
.PHONY: publish
publish:
pandoc -s -w rst README.md -o README.rs
python setup.py sdist upload
rm README.rs
.PHONY: flake8
flake8:
flake8 charmander test