File tree 3 files changed +16
-12
lines changed 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ prebuild: css workflows cogdoc ## One command for all source prep.
108
108
109
109
# #@ Kitting: making releases
110
110
111
- .PHONY : kit kit_upload test_upload kit_local download_kits check_kits
111
+ .PHONY : kit kit_upload test_upload kit_local download_kits check_kits tag
112
+ .PHONY : update_stable comment_on_fixes
112
113
113
114
kit : # # Make the source distribution.
114
115
python -m build
@@ -134,6 +135,17 @@ download_kits: ## Download the built kits from GitHub.
134
135
check_kits : # # Check that dist/* are well-formed.
135
136
python -m twine check dist/*
136
137
138
+ tag : # # Make a git tag with the version number.
139
+ git tag -a -m " Version $$ (python setup.py --version)" $$(python setup.py --version )
140
+ git push --follow-tags
141
+
142
+ update_stable : # # Set the stable branch to the latest release.
143
+ git branch -f stable $$(python setup.py --version )
144
+ git push origin stable
145
+
146
+ comment_on_fixes : # # Add a comment to issues that were fixed.
147
+ python ci/commend_on_fixes.py
148
+
137
149
138
150
# #@ Documentation
139
151
Original file line number Diff line number Diff line change 61
61
- upload kits:
62
62
$ make kit_upload
63
63
- Tag the tree
64
- $ git tag -a -m "Version 3.0.1" 3.0.1
65
- $ git push --follow-tags
64
+ $ make tag
66
65
- IF NOT PRE-RELEASE:
67
66
- update git "stable" branch to point to latest release
68
- $ git branch -f stable <latest-tag>
69
- $ git push origin stable
67
+ $ make update_stable
70
68
- Update GitHub releases:
71
69
$ make clean github_releases
72
70
- Bump version:
88
86
- @ https://readthedocs.org/dashboard/coverage/advanced/
89
87
- change the default version to the new version
90
88
- Visit the fixed issues on GitHub and mention the version it was fixed in.
91
- - python ci/ comment_on_fixes.py
89
+ $ make comment_on_fixes
92
90
- "This is now released as part of [coverage 5.2](https://pypi.org/project/coverage/5.2)."
93
91
- Announce:
94
92
- twitter @coveragepy
95
93
- nedbatchelder.com blog post?
96
94
- things to automate:
97
- - git tag command
98
- - git stable branch update command
99
- - comment-on-fixes.py
100
95
- url to link to latest changes in docs
101
96
- next version.py line
102
97
Original file line number Diff line number Diff line change @@ -403,9 +403,6 @@ def do_cheats():
403
403
print (head )
404
404
print ("-" * len (head ))
405
405
406
- print ("\n git commands:" )
407
- print (f'git tag -a -m "Version { ver } " { ver } ; git push --follow-tags' )
408
- print (f'git branch -f stable { ver } ; git push origin stable' )
409
406
print (f"https://coverage.readthedocs.io/en/{ ver } /changes.html#changes-{ anchor } " )
410
407
411
408
print (
You can’t perform that action at this time.
0 commit comments