Skip to content

Commit 402858f

Browse files
committedMar 16, 2023
build: more convenient cheats
1 parent 02b7599 commit 402858f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ coverage.json
2121
# Stuff in the root.
2222
build
2323
*.egg-info
24+
cheats.txt
2425
dist
2526
htmlcov
2627
MANIFEST

‎Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ clean: clean_platform ## Remove artifacts of test execution, installation, etc
3636

3737
sterile: clean ## Remove all non-controlled content, even if expensive.
3838
rm -rf .tox
39+
rm -f cheats.txt
3940

4041
help: ## Show this help.
4142
@# Adapted from https://www.thapaliya.com/en/writings/well-documented-makefiles/
@@ -158,6 +159,9 @@ REPO_OWNER = nedbat/coveragepy
158159
edit_for_release: ## Edit sources to insert release facts.
159160
python igor.py edit_for_release
160161

162+
cheats: ## Create some useful snippets for releasing.
163+
python igor.py cheats | tee cheats.txt
164+
161165
relbranch: ## Create the branch for releasing.
162166
echo git switch -c nedbat/release-$$(date +%Y%m%d)
163167

‎howto.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
- Check that the current virtualenv matches the current coverage branch.
44
- start branch for release work
55
$ make relbranch
6-
- Version number in coverage/version.py
6+
- Edit version number in coverage/version.py
77
version_info = (4, 0, 2, "alpha", 1)
88
version_info = (4, 0, 2, "beta", 1)
99
version_info = (4, 0, 2, "candidate", 1)
1010
version_info = (4, 0, 2, "final", 0)
1111
- make sure: _dev = 0
12-
- Supported Python version numbers. Search for "PYVERSIONS".
12+
- Edit supported Python version numbers. Search for "PYVERSIONS".
1313
- Update source files with release facts:
1414
$ make edit_for_release
15-
- run `python igor.py cheats` to get useful snippets for next steps.
15+
- Get useful snippets for next steps, and beyond, in cheats.txt
16+
$ make cheats
1617
- Look over CHANGES.rst
1718
- Update README.rst
1819
- "New in x.y:"

0 commit comments

Comments
 (0)
Please sign in to comment.