Skip to content

Commit

Permalink
build: more make targets for release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed May 22, 2022
1 parent c739564 commit 2b0f584
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
11 changes: 3 additions & 8 deletions howto.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down
3 changes: 0 additions & 3 deletions igor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2b0f584

Please sign in to comment.