summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--howto.txt5
2 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7f695920..ce3772c8 100644
--- a/Makefile
+++ b/Makefile
@@ -158,6 +158,15 @@ REPO_OWNER = nedbat/coveragepy
edit_for_release: ## Edit sources to insert release facts.
python igor.py edit_for_release
+relbranch: ## Create the branch for releasing.
+ echo git switch -c nedbat/release-$$(date +%Y%m%d)
+
+relcommit1: ## Commit the first release changes.
+ git commit -am "docs: prep for $$(python setup.py --version)"
+
+relcommit2: ## Commit the latest sample HTML report.
+ git commit -am "docs: sample HTML for $$(python setup.py --version)"
+
kit: ## Make the source distribution.
python -m build
diff --git a/howto.txt b/howto.txt
index b0d58c62..4125ec77 100644
--- a/howto.txt
+++ b/howto.txt
@@ -2,6 +2,7 @@
- Check that the current virtualenv matches the current coverage branch.
- start branch for release work
+ $ make relbranch
- Version number in coverage/version.py
version_info = (4, 0, 2, "alpha", 1)
version_info = (4, 0, 2, "beta", 1)
@@ -26,12 +27,14 @@
- Check that the docs build correctly:
$ tox -e doc
- commit the release-prep changes
+ $ make relcommit1
- Generate new sample_html to get the latest, incl footer version number:
- IF PRE-RELEASE:
$ make sample_html_beta
- IF NOT PRE-RELEASE:
$ make sample_html
- check in the new sample html
+ - check in the new sample html
+ $ make relcommit2
- Done with changes to source files
- check them in on the release prep branch
- wait for ci to finish