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 1
1
#!/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
+ """
2
19
import argparse
3
20
from subprocess import check_call , check_output
4
21
@@ -25,7 +42,7 @@ def no_outstanding_changes():
25
42
output = check_output (
26
43
'git status --short' , shell = True ).strip ().decode ('utf8' )
27
44
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 )
29
46
30
47
31
48
def create_release_branch (version ):
@@ -45,7 +62,7 @@ def merge_to_master(version):
45
62
46
63
47
64
def tag_release (version ):
48
- run ('git tag -a %s ' % version )
65
+ run ('git tag -s -m "Tagging %s release" %s ' % ( version , version ) )
49
66
50
67
51
68
def merge_to_develop (version ):
You can’t perform that action at this time.
0 commit comments