From c3abda504d3810addacddaad0d55399e2c8c3ab6 Mon Sep 17 00:00:00 2001 From: Francois Marier Date: Sun, 22 Feb 2015 20:50:05 +1300 Subject: [PATCH] Simplify release process by automating two steps --- Makefile | 4 ++++ RELEASING | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 72e627a..5fc178d 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +VERSION := $(shell grep "VERSION =" planetfilter | perl -pe 's/^.+?([0-9.]+).$$/$$1/g') + all: clean: @@ -14,6 +16,8 @@ pep8: test: pep8 pyflakes dist: test + git commit -a -m "Bump version and changelog for release" + git tag -s planetfilter-$(VERSION) -m "$(VERSION) release" python setup.py sdist upload: dist diff --git a/RELEASING b/RELEASING index 190e2c4..b14b516 100644 --- a/RELEASING +++ b/RELEASING @@ -1,9 +1,7 @@ - bump the version number in `setup.py` and `planetfilter` - add an entry to `Changelog.txt` -- commit: `git commit -a -m "Bump version and changelog for release"` - build a new tarball: `make dist` - upload to PyPI: `make upload` -- tag the release: `git tag -s planetfilter-VERSION -m "VERSION release"` - push the branch and tag: `git push ; git push --tags` - add a new announcement on Launchpad: https://launchpad.net/planetfilter/+announce -- 2.11.4.GIT