Source

coverage.py / Makefile

Ned Batchelder 78faac4 
Ned Batchelder 744a7e9 



Ned Batchelder 9c447e8 

Ned Batchelder 744a7e9 

Ned Batchelder f433e7f 

Ned Batchelder 9c447e8 
Ned Batchelder a81ab3e 
Ned Batchelder 2f77b00 


Ned Batchelder 60e439e 
Ned Batchelder 454f1c7 
Ned Batchelder bd50fb2 
Ned Batchelder 744a7e9 
Ned Batchelder d49a4c7 
Ned Batchelder 744a7e9 
Ned Batchelder 9c447e8 
Ned Batchelder bb16cf0 
Ned Batchelder 9433196 
Ned Batchelder 744a7e9 
Ned Batchelder dc4e96a 
Ned Batchelder 9433196 
Ned Batchelder dc4e96a 
Ned Batchelder 9c447e8 
Ned Batchelder ee4f680 

Ned Batchelder d7df0af 
Ned Batchelder 0a2f56d 
Ned Batchelder a0c7e26 
Ned Batchelder 744a7e9 
Ned Batchelder 93f09e2 


Ned Batchelder 9c447e8 
Ned Batchelder 785ada5 
Ned Batchelder 50228ea 
Ned Batchelder 61ee162 
Ned Batchelder 785ada5 
Ned Batchelder bc6c58e 

Ned Batchelder b54739b 
Ned Batchelder ed5aca3 


Ned Batchelder be6bb95 


Ned Batchelder 5429bbb 
Ned Batchelder 744a7e9 
Ned Batchelder 5429bbb 
Ned Batchelder 744a7e9 
Ned Batchelder 5429bbb 

Ned Batchelder 61ee162 
Ned Batchelder 744a7e9 





Ned Batchelder 0291aa2 

Ned Batchelder ee4f680 
Ned Batchelder cc6764d 
Ned Batchelder 744a7e9 




Ned Batchelder 708f594 
Ned Batchelder ed5aca3 

Ned Batchelder 708f594 

Ned Batchelder d04c520 
Ned Batchelder 708f594 

Ned Batchelder c5d7b64 
Ned Batchelder be7f68e 
Ned Batchelder 753f838 
Ned Batchelder 708f594 





Ned Batchelder be7f68e 
Ned Batchelder 708f594 



Ned Batchelder b97fe9d 
Ned Batchelder c5d7b64 
Ned Batchelder b97fe9d 
Ned Batchelder 048bdd6 
Ned Batchelder b97fe9d 
Ned Batchelder 1a5f4cf 
Ned Batchelder 048bdd6 
Ned Batchelder 1a5f4cf 
# Makefile for utility work on Coverage.

default:
	@echo "* No default action *"

TEST_ZIP = tests/zipmods.zip
TEST_EGG = tests/eggsrc/dist/covtestegg1-0.0.0-py*.egg

clean:
	-rm -f *.pyd */*.pyd
	-rm -f *.so */*.so
	PYTHONPATH=. python tests/test_farm.py clean
	-rm -rf build coverage.egg-info dist htmlcov
	-rm -f *.pyc */*.pyc */*/*.pyc */*/*/*.pyc */*/*/*/*.pyc */*/*/*/*/*.pyc
	-rm -f *.pyo */*.pyo */*/*.pyo */*/*/*.pyo */*/*/*/*.pyo */*/*/*/*/*.pyo
	-rm -f *.bak */*.bak */*/*.bak */*/*/*.bak */*/*/*/*.bak */*/*/*/*/*.bak
	-rm -f *$$py.class */*$$py.class */*/*$$py.class */*/*/*$$py.class */*/*/*/*$$py.class */*/*/*/*/*$$py.class
	-rm -rf __pycache__ */__pycache__ */*/__pycache__ */*/*/__pycache__ */*/*/*/__pycache__ */*/*/*/*/__pycache__
	-rm -f coverage/*,cover
	-rm -f MANIFEST
	-rm -f .coverage .coverage.* coverage.xml
	-rm -f $(TEST_ZIP)
	-rm -rf tests/eggsrc/build tests/eggsrc/dist tests/eggsrc/*.egg-info
	-rm -f setuptools-*.egg distribute-*.egg distribute-*.tar.gz
	-rm -rf doc/_build

sterile: clean
	-rm -rf .tox*

LINTABLE = coverage igor.py setup.py tests

lint:
	-pylint $(LINTABLE)
	python -m tabnanny $(LINTABLE)
	python igor.py check_eol

pep8:
	pep8 --filename=*.py --ignore=E401,E301 --repeat coverage

test:
	tox -e py27 $(ARGS)

metacov:
	COVERAGE_COVERAGE=yes tox $(ARGS)

metahtml:
	python igor.py combine_html

# Kitting

# For kitting on Windows:
# SDIST_CMD = python setup.py sdist --keep-temp --formats=gztar fixtar --owner=ned --group=coverage --clean
SDIST_CMD = python setup.py sdist --formats=gztar

kit:
	$(SDIST_CMD)

kit_upload:
	$(SDIST_CMD) upload

pypi:
	python setup.py register

install:
	python setup.py install

DEVINST_FILE = coverage.egg-info/PKG-INFO
devinst: $(DEVINST_FILE)
$(DEVINST_FILE): coverage/tracer.c
	-rm coverage/tracer.pyd
	python setup.py develop

uninstall:
	-rm -rf $(PYHOME)/lib/site-packages/coverage*
	-rm -rf $(PYHOME)/scripts/coverage*

# Documentation

SPHINXBUILD = sphinx-build
SPHINXOPTS = -a -E doc
WEBHOME = ~/web/stellated/pages/code/coverage

px:
	$(SPHINXBUILD) -b px $(SPHINXOPTS) doc/_build/px
	rm doc/_build/px/search.px
	python doc/_ext/px_cleaner.py doc/_build/px/*.px

dochtml:
	$(SPHINXBUILD) -b html $(SPHINXOPTS) doc/_build/html
	@echo
	@echo "Build finished. The HTML pages are in doc/_build/html."

publish: px
	rm -f $(WEBHOME)/*.px
	cp doc/_build/px/*.px $(WEBHOME)
	rm -f $(WEBHOME)/sample_html/*.*
	cp doc/sample_html/*.* $(WEBHOME)/sample_html

publishbeta: px
	rm -f $(WEBHOME)/beta/*.px
	mkdir -p $(WEBHOME)/beta
	cp doc/_build/px/*.px $(WEBHOME)/beta
	rm -f $(WEBHOME)/sample_html_beta/*.*
	mkdir -p $(WEBHOME)/sample_html_beta
	cp doc/sample_html_beta/*.* $(WEBHOME)/sample_html_beta