File: release_guide.rst

package info (click to toggle)
python-cheroot 11.1.2%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,236 kB
  • sloc: python: 6,969; makefile: 10
file content (83 lines) | stat: -rw-r--r-- 3,070 bytes parent folder | download
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
*************
Release Guide
*************

Welcome to the |project| Release Guide!

This page contains information on how to release a new version
of |project| using the automated Continuous Delivery pipeline.

.. tip::

    The intended audience for this document is maintainers
    and core contributors.


Pre-release activities
======================

1. Check if there are any open Pull Requests that could be
   desired in the upcoming release. If there are any — merge
   them. If some are incomplete, try to get them ready.
   Don't forget to review the enclosed change notes per our
   guidelines.
2. Visually inspect the draft section of the :ref:`Change log`
   page. Make sure the content looks consistent, uses the same
   writing style, targets the end-users and adheres to our
   documented guidelines.
   Most of the change log sections will typically use the past
   tense or another way to relay the effect of the changes for
   the users, since the previous release.
   It should not target core contributors as the information
   they are normally interested in is already present in the
   Git history.
   Update the change log fragments if you see any problems with
   this change log section.
3. If you are satisfied with the above, inspect the change log
   section categories in the draft. Presence of the breaking
   changes or features will hint you what version number
   segment to bump for the release.

.. seealso::

   :ref:`Adding change notes with your PRs`
       Writing beautiful change logs for humans


The release stage
=================

1. Open the `GitHub Actions CI/CD workflow page <GitHub Actions
   CI/CD workflow_>`_ in your web browser.
2. Click the gray button :guilabel:`Run workflow` in the blue
   banner at the top of the workflow runs list.
3. In the form that appears, enter the version you used in the
   preparation steps, into the mandatory field. Do not prepend
   a leading-``v``. Just use the raw version number as per
   :pep:`440`.
4. Now, click the green button :guilabel:`Run workflow`.
5. At some point, the workflow gets to the job for publishing
   to the "production" PyPI and stops there. You will see a
   banner informing you that a deployment approval is needed.
   You will also get an email notification with the same
   information and a link to the deployment approval view.
6. While the normal PyPI upload hasn't happened yet, the
   TestPyPI one proceeds. This gives you a chance to optionally
   verify what got published there and decide if you want to
   abort the process.
7. Approve the deployment and wait for the workflow to complete.
8. Verify that the following things got created:

   - a PyPI release
   - a Git tag
   - a GitHub Releases page
   - a GitHub Discussions page
   - a release pull request on GitHub

9. Merge that pull request using the natural ``git merge`` strategy
   avoiding squash or rebase.
10. Tell everyone you released a new version of |project| :)


.. _GitHub Actions CI/CD workflow:
   https://github.com/cherrypy/cheroot/actions/workflows/ci-cd.yml