1. Bernhard Biskup
  2. araldo

Source

araldo / Makefile

# NOT: pylint needs to be installed in the virtualenv regardless of whether
# it is available in system-wide; otherwise imports will fail
BUILD_DEPS='mock >= 1.0.0' 'Sphinx >= 1.1.3' 'nose >= 1.2.1' 'yolk >= 0.4.3'\
		   'pylint'  'pyflakes >= 0.5.0'  'pep8' 'nose-cov >= 1.6'\
		   'pytest >= 2.3.2' 'pytest-cov >= 1.6' 'pytest-xdist >= 1.8'\
		   'ipdb >= 0.7', 'pytest-capturelog >= 0.7' 'pytest-pep8 >= 1.0.2'\
		   'pytest-codecheckers >= 0.2' 'ipython >= 0.10.2'



develop: setup-develop ensure-build-deps

ensure-build-deps:
	pip install ${BUILD_DEPS}

upgrade-build-deps:
	pip install --upgrade ${BUILD_DEPS}

#create-virtualenv:
#	virtualenv virtualenv

#activate-virtualenv:
#	. virtualenv/bin/activate

setup-develop:
	python setup.py develop

check: check-pylint-errors check-pep8 check-pyflakes

check-pylint:
	pylint setup.py araldo test

check-pylint-errors:
	pylint --errors-only setup.py araldo test

check-pep8:
	pep8 setup.py araldo test

check-pyflakes:
	pyflakes setup.py araldo

clean:
	rm -rf build dist virtualenv

documentation:
	(cd doc && make html)

on-commit:
	${MAKE} test-pytest-quick

test-pytest-full:
	py.test --verbose --doctest-modules -n 4 --cov araldo --cov-report=html test/

test-pytest-quick:
	py.test --verbose --doctest-modules -n 4 test/

test-pytest-quick-loop:
	py.test  --looponfail  test/

test-quick:
	nosetests --with-doctest  araldo

test-full:
	nosetests --with-doctest --with-coverage --cover-html araldo

install-deps-debian:
	sudo apt-get install libevent-dev