Skip to content

Commit 2b0f584

Browse files
committed
build: more make targets for release steps
1 parent c739564 commit 2b0f584

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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

113114
kit: ## Make the source distribution.
114115
python -m build
@@ -134,6 +135,17 @@ download_kits: ## Download the built kits from GitHub.
134135
check_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

howto.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,10 @@
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:
@@ -88,15 +86,12 @@
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

igor.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,6 @@ def do_cheats():
403403
print(head)
404404
print("-" * len(head))
405405

406-
print("\ngit 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(

0 commit comments

Comments
 (0)