File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Expand file tree Collapse file tree 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.
108108
109109# #@ Kitting: making releases
110110
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
112113
113114kit : # # Make the source distribution.
114115 python -m build
@@ -134,6 +135,17 @@ download_kits: ## Download the built kits from GitHub.
134135check_kits : # # Check that dist/* are well-formed.
135136 python -m twine check dist/*
136137
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+
137149
138150# #@ Documentation
139151
Original file line number Diff line number Diff line change 6161 - upload kits:
6262 $ make kit_upload
6363- Tag the tree
64- $ git tag -a -m "Version 3.0.1" 3.0.1
65- $ git push --follow-tags
64+ $ make tag
6665 - IF NOT PRE-RELEASE:
6766 - 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
7068- Update GitHub releases:
7169 $ make clean github_releases
7270- Bump version:
8886 - @ https://readthedocs.org/dashboard/coverage/advanced/
8987 - change the default version to the new version
9088- 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
9290 - "This is now released as part of [coverage 5.2](https://pypi.org/project/coverage/5.2)."
9391- Announce:
9492 - twitter @coveragepy
9593 - nedbatchelder.com blog post?
9694- things to automate:
97- - git tag command
98- - git stable branch update command
99- - comment-on-fixes.py
10095 - url to link to latest changes in docs
10196 - next version.py line
10297
Original file line number Diff line number Diff line change @@ -403,9 +403,6 @@ def do_cheats():
403403 print (head )
404404 print ("-" * len (head ))
405405
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' )
409406 print (f"https://coverage.readthedocs.io/en/{ ver } /changes.html#changes-{ anchor } " )
410407
411408 print (
You can’t perform that action at this time.
0 commit comments