Skip to content

Commit 4a66c23

Browse files
committed
Update release script
1 parent 788f10b commit 4a66c23

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

scripts/release

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
#!/usr/bin/env python
2+
"""Script to manage releases.
3+
4+
* Create release branches
5+
* Version bump setup.py, docs/conf.py, etc.
6+
* Tag the releases
7+
* Merge to master
8+
* Push everything up to github.
9+
10+
The only thing this script doesn't do are the pypi uploads.
11+
You'll need to do those yourself.
12+
13+
14+
Usage::
15+
16+
scripts/release 1.0.0
17+
18+
"""
219
import argparse
320
from subprocess import check_call, check_output
421

@@ -25,7 +42,7 @@ def no_outstanding_changes():
2542
output = check_output(
2643
'git status --short', shell=True).strip().decode('utf8')
2744
if output:
28-
raise AssertionError("Can't have any pending changes: %s" % output)
45+
raise AssertionError("Can't have any pending changes:\n%s" % output)
2946

3047

3148
def create_release_branch(version):
@@ -45,7 +62,7 @@ def merge_to_master(version):
4562

4663

4764
def tag_release(version):
48-
run('git tag -a %s' % version)
65+
run('git tag -s -m "Tagging %s release" %s' % (version, version))
4966

5067

5168
def merge_to_develop(version):

0 commit comments

Comments
 (0)