debian-python-raven/Makefile

28 lines
576 B
Makefile
Raw Normal View History

2013-03-03 22:14:44 +01:00
bootstrap:
2015-12-02 02:33:53 +01:00
pip install -e "file://`pwd`#egg=raven[tests]"
2013-09-14 02:27:50 +02:00
make setup-git
2012-11-23 22:04:13 +01:00
2013-04-04 09:05:09 +02:00
test: bootstrap lint
2012-11-23 22:04:13 +01:00
@echo "Running Python tests"
2013-07-02 06:56:11 +02:00
py.test -x tests
2012-11-23 22:04:13 +01:00
@echo ""
lint:
@echo "Linting Python files"
2013-09-14 03:04:42 +02:00
PYFLAKES_NODOCTEST=1 flake8 raven || exit 1
2012-11-23 22:04:13 +01:00
@echo ""
2012-06-03 22:35:12 +02:00
coverage:
2012-05-12 20:21:49 +02:00
coverage run runtests.py --include=raven/* && \
coverage html --omit=*/migrations/* -d cover
2013-09-14 02:27:50 +02:00
setup-git:
git config branch.autosetuprebase always
cd .git/hooks && ln -sf ../../hooks/* ./
2013-11-13 16:58:11 +01:00
publish:
rm -rf dist build
2015-08-31 23:30:53 +02:00
python setup.py sdist bdist_wheel upload
2013-11-13 16:58:11 +01:00
.PHONY: bootstrap test lint coverage setup-git publish