Simplify release process by automating two steps
[planetfilter.git] / Makefile
blob5fc178dcf5f18189ab288907f4896d260bfbf438
1 VERSION := $(shell grep "VERSION =" planetfilter | perl -pe 's/^.+?([0-9.]+).$$/$$1/g')
3 all:
5 clean:
6 find -name "*.pyc" -delete
8 pyflakes:
9 @echo Running pyflakes...
10 @pyflakes3 planetfilter
12 pep8:
13 @echo Running pep8...
14 @pep8 planetfilter
16 test: pep8 pyflakes
18 dist: test
19 git commit -a -m "Bump version and changelog for release"
20 git tag -s planetfilter-$(VERSION) -m "$(VERSION) release"
21 python setup.py sdist
23 upload: dist
24 python setup.py sdist upload --sign