-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathMakefile
44 lines (34 loc) · 850 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
default: all
all:
python setup.py build
install: all
python setup.py install
clean:
rm -f *.pyc
cd tests && rm -f *.pyc
cd tornadis && rm -f *.pyc
cd tests && rm -Rf htmlcov
cd docs && make clean
rm -f .coverage tests/.coverage
rm -f MANIFEST
rm -Rf build
rm -Rf dist
rm -Rf tornadis.egg-info
rm -Rf tornadis/__pycache__
rm -Rf tests/__pycache__
rm -f tests/conf.py
rm -f tests/auth.txt
sdist: clean
python setup.py sdist
doc:
cd docs && make html
test:
flake8 --exclude=docs/*,examples/* .
cd tests && nosetests
coveralls:
cd tests && nosetests --with-coverage --cover-package=tornadis && ../.coveralls.sh
upload:
python setup.py sdist register upload
coverage:
cd tests && coverage run `which nosetests` && coverage html --include='*/tornadis/tornadis/*' --omit='test_*'
release: test coverage clean upload clean