Debian Codegraph @

doc/RELEASE.rst

raw
1 Step by step guide to releasing a new labgrid version.
2 labgrid follows the `calver <https://calver.org>`_ versioning scheme
3 ``YY.MINOR[.MICRO]``.
4 The ``MINOR`` number starts at 0.
5 The ``MICRO`` number for stable releases starts at 1.
6
7 1. Check for relevant PRs that need a merge
8 ===========================================
9
10 - `Milestones <https://github.com/labgrid-project/labgrid/milestones>`_
11 - `Fixes <https://github.com/labgrid-project/labgrid/pulls?q=label%3Afix>`_
12 - `Fixes for stable <https://github.com/labgrid-project/labgrid/issues?q=label%3A%22fix+for+stable%22>`_
13
14 2. Update CHANGES.rst
15 =====================
16
17 Update the `CHANGES.rst` file.
18 Ensure that no incompatibilities are unlisted and that all major features are
19 described in a separate section.
20 It's best to compare against the git log.
21
22 Add new sections including the version number for the release in `CHANGES.rst`
23 (if not already done).
24 Set the release date.
25
26 If you are bumping the ``MINOR`` number, import the changes from the latest stable
27 branch and add a new (unreleased) section for the next release.
28 Also add a new section into ``debian/changelog``.
29
30 3. Create a tag
31 ===============
32
33 Wait for the CI to succeed on the commit you are about to tag.
34
35 Now create a (signed) tag of the new release.
36 If it should be signed (``-s``), your PGP-key has to be available on the
37 computer.
38 The release tag should start with a lower case ``v``, e.g. ``v24.0`` or
39 ``v24.0.1``.
40
41 .. code-block:: bash
42
43 git tag -s $VERSION
44
45 If you're happy with it, push it:
46
47 .. code-block:: bash
48
49 git push upstream $VERSION
50
51 The CI should take care of the rest.
52 Make sure it succeeds and the new release is available on PyPi.
53
54 4. Draft a release
55 ==================
56
57 On GitHub, draft a new release, add the changes in Markdown format and create a
58 discussion for the release:
59 https://github.com/labgrid-project/labgrid/releases/new
60
61 5. Create new stable branch
62 ===========================
63
64 If you are bumping the ``MINOR`` number, push a new stable branch
65 ``stable-YY.MINOR`` based on the release tag.