Skip to content

Commit 98d410a

Browse files
committed
build: slightly more release automation
1 parent a567057 commit 98d410a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,15 @@ REPO_OWNER = nedbat/coveragepy
158158
edit_for_release: ## Edit sources to insert release facts.
159159
python igor.py edit_for_release
160160

161+
relbranch: ## Create the branch for releasing.
162+
echo git switch -c nedbat/release-$$(date +%Y%m%d)
163+
164+
relcommit1: ## Commit the first release changes.
165+
git commit -am "docs: prep for $$(python setup.py --version)"
166+
167+
relcommit2: ## Commit the latest sample HTML report.
168+
git commit -am "docs: sample HTML for $$(python setup.py --version)"
169+
161170
kit: ## Make the source distribution.
162171
python -m build
163172

howto.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Check that the current virtualenv matches the current coverage branch.
44
- start branch for release work
5+
$ make relbranch
56
- Version number in coverage/version.py
67
version_info = (4, 0, 2, "alpha", 1)
78
version_info = (4, 0, 2, "beta", 1)
@@ -26,12 +27,14 @@
2627
- Check that the docs build correctly:
2728
$ tox -e doc
2829
- commit the release-prep changes
30+
$ make relcommit1
2931
- Generate new sample_html to get the latest, incl footer version number:
3032
- IF PRE-RELEASE:
3133
$ make sample_html_beta
3234
- IF NOT PRE-RELEASE:
3335
$ make sample_html
34-
check in the new sample html
36+
- check in the new sample html
37+
$ make relcommit2
3538
- Done with changes to source files
3639
- check them in on the release prep branch
3740
- wait for ci to finish

0 commit comments

Comments
 (0)