-
-
Notifications
You must be signed in to change notification settings - Fork 437
/
howto.txt
103 lines (93 loc) · 3.29 KB
/
howto.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
* Release checklist
- Check that the current virtualenv matches the current coverage branch.
- start branch for release work
$ make relbranch
- check version number in coverage/version.py
- IF PRE-RELEASE:
- edit to look like one of these:
version_info = (4, 0, 2, "alpha", 1)
version_info = (4, 0, 2, "beta", 1)
version_info = (4, 0, 2, "candidate", 1)
version_info = (4, 0, 2, "final", 0)
- IF NOT PRE-RELEASE:
$ make release_version
- Update source files with release facts, and get useful snippets:
$ make edit_for_release cheats
- Edit supported Python version numbers. Search for "PYVERSIONS".
- Especially README.rst and doc/index.rst
- Look over CHANGES.rst
- Update README.rst
- "New in x.y:"
- Update docs
- IF PRE-RELEASE:
- Version of latest stable release in doc/index.rst
- Make sure the docs are cogged:
$ make prebuild
- Don't forget the man page: doc/python-coverage.1.txt
- 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
$ make relcommit2
- Build and publish docs:
- IF PRE-RELEASE:
$ make publishbeta
- ELSE:
$ make publish
- commit and publish nedbatchelder.com
- Done with changes to source files
$ g puo; gshipit
- check them in on the release prep branch
- wait for ci to finish
- merge to master
- git push
- Start the kits:
$ opvars github
- Trigger the kit GitHub Action
$ make build_kits
- Kits:
- Wait for kits to finish:
- https://github.com/nedbat/coveragepy/actions/workflows/kit.yml
- test the pypi upload:
$ make test_upload
- approve the action
- https://github.com/nedbat/coveragepy/actions/workflows/publish.yml
- upload kits:
$ make pypi_upload
- approve the action
- https://github.com/nedbat/coveragepy/actions/workflows/publish.yml
- Tag the tree, update GitHub releases and comment on issues:
$ make clean tag github_releases comment_on_fixes
- Bump version:
$ make bump_version
- Update readthedocs
- IF PRE-RELEASE
- find the latest tag in the inactive list, edit it, make it active.
- keep just the latest version of each x.y release, make the rest active but hidden.
- pre-releases should be hidden
- IF NOT PRE-RELEASE:
$ opvars
$ make update_rtd
$ deopvars
- Once CI passes, merge the bump-version branch to master and push it
$ gshipit
* Testing
- Testing of Python code is handled by tox.
- Create and activate a virtualenv
- pip install -r requirements/dev.pip
- $ tox
- For complete coverage testing:
$ make metacov
This will run coverage.py under its own measurement. You can do this in
different environments (Linux vs. Windows, for example), then copy the data
files (.metacov.*) to one machine for combination and reporting. To
combine and report:
$ make metahtml
- To run the Javascript tests:
open tests/js/index.html in variety of browsers.