Debian Codegraph @

core/docs/source/workflows/releases.rst

raw
1 .. highlight:: console
2
3 Releases
4 ========
5
6 Release workflow
7 ----------------
8
9 When enough changes and additions or time important fixes have accumulated on the
10 ``main`` branch its time for a new release. The exact time is subject to the
11 judgment of the maintainer(s).
12
13
14 .. note::
15
16 Before starting the process of creating a new release make sure that all CI pipelines
17 are green for the current commit.
18
19 #. Check if the ``CHANGELOG.md`` is up-to-date and all changes are noted.
20
21 #. Run ``prep_release.py`` script to bump version, finalize ``CHANGELOG.md``,
22 commit the changes and create a new git tag::
23
24 $ python3 prep_release.py <TYPE>
25
26 For the increase type there are three options:
27
28 - ``patch`` / ``bugfix``:
29 for changes that **do not** add new functionality and are backwards compatible
30 - ``minor`` / ``feature``:
31 for changes that **do** add new functionality and are backwards compatible
32 - ``major`` / ``breaking``:
33 for changes that are **not** backwards compatible
34
35 #. Build the sdist and wheel::
36
37 $ python -m build
38
39 #. Publish package::
40
41 $ twine upload dist/*
42
43 #. Push the commit and tag to github::
44
45 $ git push --follow-tags
46
47 .. highlight:: default