@@ -66,6 +66,11 @@ def main():
66
66
subprocess .check_call (['git' , 'remote' , 'set-url' , 'origin' , new_url ])
67
67
branch_spec = 'origin/%s' % branch_name .decode ('utf-8' ).strip ()
68
68
subprocess .check_call (['git' , 'branch' , '--set-upstream-to' , branch_spec ])
69
+ print ('Generating a release package' )
70
+ subprocess .check_call (
71
+ [ 'python' , 'setup.py' , 'clean' , '--all' , 'bdist_wheel' , '--dist-dir' , 'release-dist' ])
72
+ print ('Uploading to PyPI' )
73
+ subprocess .check_call (['python' , '-m' , 'twine' , 'upload' , 'release-dist/*' ])
69
74
print ('Committing the changelog & version' )
70
75
subprocess .check_call (['git' , 'add' , VERSION_FILE ])
71
76
subprocess .check_call (['git' , 'add' , 'CHANGELOG.md' ])
@@ -79,13 +84,7 @@ def main():
79
84
print ('Marking this commit as latest' )
80
85
subprocess .check_call (['git' , 'tag' , '-f' , 'latest' ])
81
86
subprocess .check_call (['git' , 'push' , '-f' , '--tags' ])
82
- print ('Generating a release package' )
83
- subprocess .check_call (
84
- [ 'python' , 'setup.py' , 'clean' , '--all' , 'bdist_wheel' , '--dist-dir' , 'release-dist' ])
85
- print ('Uploading to PyPI' )
86
- subprocess .check_call (['python' , '-m' , 'twine' , 'upload' , 'release-dist/*' ])
87
87
print ('Done.' )
88
88
89
-
90
89
if __name__ == '__main__' :
91
90
main ()
0 commit comments