Merge lp:~james-w/pkgme-devportal/release-0.4.11 into lp:pkgme-devportal

Proposed by James Westby
Status: Merged
Approved by: James Westby
Approved revision: 143
Merged at revision: 143
Proposed branch: lp:~james-w/pkgme-devportal/release-0.4.11
Merge into: lp:pkgme-devportal
Diff against target: 55 lines (+22/-4)
3 files modified
Makefile (+19/-1)
NEWS (+2/-2)
devportalbinary/__init__.py (+1/-1)
To merge this branch: bzr merge lp:~james-w/pkgme-devportal/release-0.4.11
Reviewer Review Type Date Requested Status
James Westby Approve
Review via email: mp+131954@code.launchpad.net

Commit message

Prepare for 0.4.11 release.

Description of the change

Hi,

This prepares the release of 0.4.11. I also added the release automation.

Thanks,

James

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Self-approve.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2012-08-15 14:24:43 +0000
3+++ Makefile 2012-10-29 16:38:22 +0000
4@@ -20,4 +20,22 @@
5 acceptance: $(PY)
6 $(PY) -m testtools.run devportalbinary.acceptance.tests
7
8-.PHONY: acceptance
9+
10+PROJECT_NAME=pkgme-devportal
11+VERSION_FILE=devportalbinary/__init__.py
12+NEWS_FILE=NEWS
13+LP_PROJECT=pkgme-devportal
14+VERSION=$(shell grep "^__version__ " "$(VERSION_FILE)" | sed -e "s/.*=\s*'\([^']\+\)'.*/\1/")
15+
16+release:
17+ @echo Releasing version $(VERSION)
18+ @(bzr tags | grep -vq "^$(VERSION)\s") || (echo "Tag already exists for $(VERSION), remove it and run again" && exit 1)
19+ @grep -q "^$(VERSION)\s" "$(NEWS_FILE)" || (echo "No entry for $(VERSION) in NEWS" && exit 1)
20+ python setup.py sdist upload --sign
21+ bzr tag "$(VERSION)"
22+ bzr push lp:$(LP_PROJECT)
23+ cp "dist/$(PROJECT_NAME)-$(VERSION).tar.gz" $(CA_DOWNLOAD_CACHE_DIR)/dist
24+ bzr add "$(CA_DOWNLOAD_CACHE_DIR)/dist/$(PROJECT_NAME)-$(VERSION).tar.gz"
25+ bzr ci "$(CA_DOWNLOAD_CACHE_DIR)/dist/$(PROJECT_NAME)-$(VERSION).tar.gz" -m "Add $(PROJECT_NAME) $(VERSION)."
26+
27+.PHONY: acceptance release
28
29=== modified file 'NEWS'
30--- NEWS 2012-10-26 13:57:22 +0000
31+++ NEWS 2012-10-29 16:38:22 +0000
32@@ -2,8 +2,8 @@
33 NEWS for pkgme-devportal
34 ========================
35
36-NEXT
37-====
38+0.4.11 (2012-10-29)
39+===================
40
41 Changes
42 -------
43
44=== modified file 'devportalbinary/__init__.py'
45--- devportalbinary/__init__.py 2012-10-23 13:56:33 +0000
46+++ devportalbinary/__init__.py 2012-10-29 16:38:22 +0000
47@@ -9,7 +9,7 @@
48 ]
49
50
51-__version__ = '0.4.10'
52+__version__ = '0.4.11'
53
54
55 def get_backends_path():

Subscribers

People subscribed via source and target branches