Michael Merickel
2017-01-25 263308594666398bf2a9edb6ee2fac9ddc71bfdf
commit | author | age
66fcbf 1 Releasing Pyramid
CM 2 =================
3
589431 4 - For clarity, we define releases as follows.
SP 5
6   - Alpha, beta, dev and similar statuses do not qualify whether a release is
7     major or minor. The term "pre-release" means alpha, beta, or dev.
8
9   - A release is final when it is no longer pre-release.
10
11   - A *major* release is where the first number either before or after the
12     first dot increases. Examples: 1.6 to 1.7a1, or 1.8 to 2.0.
13
14   - A *minor* or *bug fix* release is where the number after the second dot
15     increases. Example: 1.6 to 1.6.1.
16
17 Prepare new release branch
18 --------------------------
19
20 - Create a new release branch, incrementing the version number.
21
22 - Do any necessary branch merges (e.g., master to branch, branch to master).
629d19 23
CM 24 - On release branch:
25
26   $ git pull
ad508e 27
47a6bb 28 - Do platform test via tox:
CM 29
629d19 30   $ tox -r
47a6bb 31
aa1c9b 32   Make sure statement coverage is at 100% (the test run will fail if not).
66fcbf 33
fd9110 34 - Run tests on Windows if feasible.
66fcbf 35
170486 36 - Make sure all scaffold tests pass (Py 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, pypy, and
aa1c9b 37   pypy3 on UNIX; this doesn't work on Windows):
d6cc11 38
aa1c9b 39   $ ./scaffoldtests.sh
d6cc11 40
66fcbf 41 - Ensure all features of the release are documented (audit CHANGES.txt or
CM 42   communicate with contributors).
43
589431 44 - Change CHANGES.txt heading to reflect the new version number.
SP 45
66fcbf 46 - Copy relevant changes (delta bug fixes) from CHANGES.txt to
d0a4db 47   docs/whatsnew-X.X (if it's a major release).  Minor releases should
SP 48   include a link under "Bug Fix Releases" to the minor feature
589431 49   changes in CHANGES.txt.
66fcbf 50
e4593c 51 - Update README.rst to use correct versions of badges and URLs according to
bbbcfb 52   each branch and context, i.e., RTD "latest" == GitHub/Travis "1.x-branch".
SP 53
fa16cb 54 - Update whatsnew-X.X.rst in docs to point at change log entries for individual
CM 55   releases if applicable.
56
589431 57 - For major version releases, in contributing.md, update branch descriptions.
SP 58
e4593c 59 - For major version releases, in docs/conf.py, update values under
SP 60   html_theme_options for in_progress and outdated across master, releasing
788600 61   branch, and previously released branch. Also in the previously released
SP 62   branch only, uncomment the sections to enable pylons_sphinx_latesturl.
e4593c 63
589431 64 - Change setup.py version to the release version number.
66fcbf 65
CM 66 - Make sure PyPI long description renders (requires ``collective.dist``
67   installed into your Python)::
68
629d19 69   $ python setup.py check -r
66fcbf 70
CM 71 - Create a release tag.
72
589431 73 - Make sure your Python has ``setuptools-git``, ``twine``, and ``wheel``
b9298c 74   installed and release to PyPI::
66fcbf 75
b9298c 76   $ python setup.py sdist bdist_wheel
MM 77   $ twine upload dist/pyramid-X.X-*
589431 78
SP 79 - Configure RTD to publish the new release version of the docs.
80
81 Prepare master for further development (major releases only)
82 ------------------------------------------------------------
83
84 - Checkout master.
85
86 - In CHANGES.txt, preserve headings but clear out content. Add heading
87   "unreleased" for the version number.
88
89 - From the release branch, forward port the changes in CHANGES.txt to
90   HISTORY.txt.
91
92 - In contributing.md, forward port branch descriptions from release branch.
93
94 - In docs/conf.py, add a commented line under
95   pylons_sphinx_latesturl_pagename_overrides for the release.
96
97 - Change setup.py version to the next version number.
98
99 Update previous version (final releases only)
100 ---------------------------------------------
101
102 - In docs/conf.py, update values under html_theme_options for in_progress and
103   outdated. Uncomment the sections to enable pylons_sphinx_latesturl.
104
105 - Configure RTD to point the "latest" alias to the new release version of the
106   docs.
107
108 Marketing and communications
109 ----------------------------
66fcbf 110
205bf8 111 - Edit Pylons/pylonshq/templates/home/home.mako.
d0a4db 112
205bf8 113 - Edit Pylons/pylonshq/templates/home/inside.rst for major releases only.
d0a4db 114
205bf8 115 - Edit Pylons/trypyramid.com/src/templates/resources.html for major releases
d0a4db 116   only.
SP 117
205bf8 118 - Edit Pylons/pylonsrtd/pylonsrtd/docs/pyramid.rst for major releases only.
d0a4db 119
66fcbf 120 - Edit `http://wiki.python.org/moin/WebFrameworks
CM 121   <http://wiki.python.org/moin/WebFrameworks>`_.
122
589431 123 - Announce to Twitter.
SP 124
125 ```
126 Pyramid 1.x released.
127
128 PyPI
129 https://pypi.python.org/pypi/pyramid/1.x
130
131 === One time only for new version, first pre-release ===
132 What's New
133 http://docs.pylonsproject.org/projects/pyramid/en/1.X-branch/whatsnew-1.X.html
134 === For all subsequent pre-releases ===
135 Changes
136 http://docs.pylonsproject.org/projects/pyramid/en/1.X-branch/changes.html#version-yyyy-mm-dd
137
138 Issues
139 https://github.com/Pylons/pyramid/issues
140 ```
66fcbf 141
CM 142 - Announce to maillist.
143
589431 144 ```
170486 145 Pyramid 1.X.X has been released.
5aeb91 146
CM 147 Here are the changes:
148
149 <<changes>>
150
589431 151 What's New In Pyramid 1.X:
SP 152 http://docs.pylonsproject.org/projects/pyramid/en/1.X-branch/whatsnew-1.X.html
5aeb91 153
589431 154 1.X release documentation (across all alphas and betas, as well as when it gets
SP 155 to final release):
156 http://docs.pylonsproject.org/projects/pyramid/en/1.X-branch/
5aeb91 157
CM 158 You can install it via PyPI:
159
589431 160   pip install Pyramid==1.X
5aeb91 161
CM 162 Enjoy, and please report any issues you find to the issue tracker at
163 https://github.com/Pylons/pyramid/issues
164
165 Thanks!
166
589431 167 - Pyramid core developers
SP 168 ```