File size: 493 Bytes
ad8a35e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all:

upload:
	rm -r dist
	python setup.py sdist
	twine upload dist/*

test:
	# For some reason the import changes for Python 3 caused the Python 2 test
	# loader to give up without loading any tests. So we discover them ourselves.
	# python -m unittest
	find chumpy -name 'test_*.py' | sed -e 's/\.py$$//' -e 's/\//./' | xargs python -m unittest

coverage: clean qcov
qcov: all
	env LD_PRELOAD=$(PRELOADED) coverage run --source=. -m unittest discover -s .
	coverage html
	coverage report -m