summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-05-22 17:29:10 -0400
committerNed Batchelder <ned@nedbatchelder.com>2022-05-22 17:29:10 -0400
commit2b0f5843e28e58ac95a9c7b87de6f151625d7c78 (patch)
tree251408eaa21a1534cc6d004dfc4ce0c206d7d018
parentc7395644b8e900130251c1858079cea89964d659 (diff)
downloadpython-coveragepy-git-2b0f5843e28e58ac95a9c7b87de6f151625d7c78.tar.gz
build: more make targets for release steps
-rw-r--r--Makefile14
-rw-r--r--howto.txt11
-rw-r--r--igor.py3
3 files changed, 16 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index b8b44b77..e2f5e304 100644
--- a/Makefile
+++ b/Makefile
@@ -108,7 +108,8 @@ prebuild: css workflows cogdoc ## One command for all source prep.
##@ Kitting: making releases
-.PHONY: kit kit_upload test_upload kit_local download_kits check_kits
+.PHONY: kit kit_upload test_upload kit_local download_kits check_kits tag
+.PHONY: update_stable comment_on_fixes
kit: ## Make the source distribution.
python -m build
@@ -134,6 +135,17 @@ download_kits: ## Download the built kits from GitHub.
check_kits: ## Check that dist/* are well-formed.
python -m twine check dist/*
+tag: ## Make a git tag with the version number.
+ git tag -a -m "Version $$(python setup.py --version)" $$(python setup.py --version)
+ git push --follow-tags
+
+update_stable: ## Set the stable branch to the latest release.
+ git branch -f stable $$(python setup.py --version)
+ git push origin stable
+
+comment_on_fixes: ## Add a comment to issues that were fixed.
+ python ci/commend_on_fixes.py
+
##@ Documentation
diff --git a/howto.txt b/howto.txt
index a1e2f94e..7d821372 100644
--- a/howto.txt
+++ b/howto.txt
@@ -61,12 +61,10 @@
- upload kits:
$ make kit_upload
- Tag the tree
- $ git tag -a -m "Version 3.0.1" 3.0.1
- $ git push --follow-tags
+ $ make tag
- IF NOT PRE-RELEASE:
- update git "stable" branch to point to latest release
- $ git branch -f stable <latest-tag>
- $ git push origin stable
+ $ make update_stable
- Update GitHub releases:
$ make clean github_releases
- Bump version:
@@ -88,15 +86,12 @@
- @ https://readthedocs.org/dashboard/coverage/advanced/
- change the default version to the new version
- Visit the fixed issues on GitHub and mention the version it was fixed in.
- - python ci/comment_on_fixes.py
+ $ make comment_on_fixes
- "This is now released as part of [coverage 5.2](https://pypi.org/project/coverage/5.2)."
- Announce:
- twitter @coveragepy
- nedbatchelder.com blog post?
- things to automate:
- - git tag command
- - git stable branch update command
- - comment-on-fixes.py
- url to link to latest changes in docs
- next version.py line
diff --git a/igor.py b/igor.py
index 657cb2bc..cabf8a84 100644
--- a/igor.py
+++ b/igor.py
@@ -403,9 +403,6 @@ def do_cheats():
print(head)
print("-" * len(head))
- print("\ngit commands:")
- print(f'git tag -a -m "Version {ver}" {ver}; git push --follow-tags')
- print(f'git branch -f stable {ver}; git push origin stable')
print(f"https://coverage.readthedocs.io/en/{ver}/changes.html#changes-{anchor}")
print(