TRIAL := $(shell which trial) BRANCH := $(shell git rev-parse --abbrev-ref HEAD) export PYTHONPATH=$(PWD) test: coverage run --branch $(TRIAL) --reporter=text tests rm -rf htmlcov && coverage html -s3cmd sync -P htmlcov/ s3://static.scrapy.org/coverage-scrapy-$(BRANCH)/ build: git describe --tags --match '[0-9]*' |sed 's/-/.post/;s/-g/+g/' >scrapy/VERSION debchange -m -D unstable --force-distribution -v \ $$(python setup.py --version |sed -r 's/([0-9]+.[0-9]+.[0-9]+)(a|b|rc|dev)([0-9]*)/\1~\2\3/')-$$(date +%s) \ "Automatic build" debuild -us -uc -b clean: git checkout debian scrapy/VERSION git clean -dfq pypi: umask 0022 && chmod -R a+rX . && python setup.py sdist upload .PHONY: clean test build