File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 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+ """
219import argparse
320from 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
3148def create_release_branch (version ):
@@ -45,7 +62,7 @@ def merge_to_master(version):
4562
4663
4764def tag_release (version ):
48- run ('git tag -a %s ' % version )
65+ run ('git tag -s -m "Tagging %s release" %s ' % ( version , version ) )
4966
5067
5168def merge_to_develop (version ):
You can’t perform that action at this time.
0 commit comments