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
104
105
106
|
* Making a working tree
mkvirtualenv -p /usr/local/pythonz/pythons/CPython-2.7.11/bin/python coverage
pip install -U pip
pip install -r requirements/dev.pip
* Release checklist
- Version number in coverage/version.py
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)
- Python version number in classifiers in setup.py
- Copyright date in NOTICE.txt
- Update CHANGES.rst, including release date.
- Update README.rst, including "New in x.y:"
- Update docs
- Version, date, and changes in doc/changes.rst
- Version, date and python versions in doc/index.rst
- Version and copyright date in doc/conf.py
- Don't forget the man page: doc/python-coverage.1.txt
- Check that the docs build correctly:
$ tox -e doc
- Done with changes to source files, check them in.
- hg push
- Generate new sample_html to get the latest, incl footer version number:
pip install -e .
cd ~/cog/trunk
rm -rf htmlcov
coverage run --branch --source=cogapp -m nose cogapp/test_cogapp.py:CogTestsInMemory
coverage combine
coverage html
- IF BETA:
rm -f ~/coverage/trunk/doc/sample_html_beta/*.*
cp -r htmlcov/ ~/coverage/trunk/doc/sample_html_beta/
- ELSE:
rm -f ~/coverage/trunk/doc/sample_html/*.*
cp -r htmlcov/ ~/coverage/trunk/doc/sample_html/
cd ~/coverage/trunk
check in the new sample html
- IF BETA:
- Build and publish docs:
$ make publishbeta
- ELSE:
- Build and publish docs:
$ make publish
- Kits:
- Source kit and wheels:
- $ make clean kit wheel
- Windows kits
- wait for over an hour for Appveyor to build kits.
- https://ci.appveyor.com/project/nedbat/coveragepy
- $ make download_appveyor
- examine the dist directory, and remove anything that looks malformed.
- Update PyPi:
- $ make pypi
- upload kits:
- $ make kit_upload
- Visit http://pypi.python.org/pypi?%3Aaction=pkg_edit&name=coverage :
- show/hide the proper versions.
- Tag the tree
- hg tag -m "Coverage 3.0.1" coverage-3.0.1
- Update nedbatchelder.com
- Blog post?
- Update readthedocs
- visit https://readthedocs.org/projects/coverage/versions/
- find the latest tag in the inactive list, edit it, make it active.
- IF NOT BETA:
- visit https://readthedocs.org/dashboard/coverage/advanced/
- change the default version to the new version
- Update bitbucket:
- Issue tracker should get new version number in picker.
# Note: don't delete old version numbers: it marks changes on the tickets
# with that number.
- Announce on coveragepy-announce@googlegroups.com .
- Announce on TIP.
* Building
- Create PythonXX\Lib\distutils\distutils.cfg::
[build]
compiler = mingw32
* 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.
|