DevOps - Release a new version¶
How to release a new version of mmg_toolbox
The following steps must be completed.
Prepare¶
- Merge active+complete PRs into the main branch
- Ensure all tests pass locally on a DLS computer (most tests require the DLS file system)
- Update the version number and date in
mmg_toolbox/__init__.py - Add any new packages or requirements to
pyproject.toml - sometimes. Check versions of GitHub actions in
pypi-publish.yml, upgrade if required.
Release¶
- At GitHub, click Releases and Draft New Release
- Create a new tag matching the version number, add details of the new features and changes, select latest and click Release.
- Wait for the actions to complete successfully. This will publish the package to PyPI.
Release at DLS¶
- Pull the latest version:
cd /dls_sw/apps/mmg_toolbox/latest/mmg_toolbox&&git pull - For a major version, create a new folder:
Update Workflows image¶
- At magnetic-materials-workflows, click Releases and Draft New Release
- Create a new tag, add details including the mmg_toolbox version number, select latest and click Release.
- This will create a new set of images that can be used in Workflows.