Skip to content

Commit

Permalink
added doc on how to release
Browse files Browse the repository at this point in the history
  • Loading branch information
fxjung committed Apr 18, 2024
1 parent 3398573 commit 10d5dfc
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/howto/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ How to...
Report an issue <report-an-issue>
Obtain support <obtain-support>
Write a dispatcher <write-a-dispatcher>
Release a new RidePy version <release-ridepy>
36 changes: 36 additions & 0 deletions doc/howto/release-ridepy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Releasing a new version of RidePy
===============================

Note that this document is intended for project maintainers.

Prerequisites
-------------

- The ``master`` branch must be checked out.
- There must be no uncommitted changes.
- The version in ``pyproject.toml`` must match the latest git tag (this should be the case by default).
- The new version must be greater than the current one (only important if the new version is chosen explicitly).
- The ``gh`` (github CLI client) command must be available and authenticated.
- Git push access to the upstream RidePy repository including the protected ``master`` branch must be available using the SSH agent credentials.
- A private PGP key must be available to sign the commit.

Steps
-----

Automatic versioning works like this:

.. code:: bash
ridepy dev publish-release <version to bump>
Here, ``version to bump`` is the semantiv versions part to bump: ``major``, ``minor``, or ``patch``.

Alternatively, the new version may be specified manually:

.. code:: bash
ridepy dev publish-release --version <new version>
This will update the version in the ``pyproject.toml`` file, create a release commit and a corresponding git tag, push it to the upstream repository, and create a corresponding release on GitHub.

Finally, the command also sports a ``--dry-run`` flag for testing.

0 comments on commit 10d5dfc

Please sign in to comment.