Release Process#

All releases are PGP signed with one of the keys listed in the installation page. Before releasing please make sure your PGP key is listed there, and preferably signed by one of the other key holders.

If your key is not signed by one of the other key holders, please make sure the PR that added your key to the Security page was approved by at least one other maintainer.

After that is done, you may release the project by following these steps:

  1. Release to the Git repository
    1. Create the release commit
      1. Bump the versions in and mesonpy/

      2. Create CHANGELOG.rst section for the new release and fill it

      Release commit format

      The commit message should follow the release X.Y.Z format.

    2. Create a signed tag for the release
      $ git tag -s X.Y.Z

      Release commit format

      The tag title should follow the meson-python X.Y.Z format, and the tag body should be a plain text version of the change-log for the current release.

      Converting the change-log text to plain text

      To easily get a plain text version of the change-log, you can push the release commit and then copy the text from rendered version of the change-log in Github.

    3. Push the commit and tag to the repository
      $ git push
      $ git push --tags
  2. Release to PyPI
    1. Build the Python artifacts
      $ python -m build
    2. Sign and push the artifacts to PyPI
      $ twine upload -s dist/*

If you have any questions, please look at previous releases and/or ping the other maintainers.