Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 2 KB

RELEASE.md

File metadata and controls

49 lines (33 loc) · 2 KB

Release process

Pre-release

Ensure that CHANGELOG.rst is up-to-date with the correct version number and release date.

Perform the release

To create a new published release, follow the instructions here. Ensure you create the new tag to correspond with the release as required.

  1. Go to the Releases page
  2. Click 'Draft a new release'
  3. Choose or create a new tag
  4. Choose the desired branch (if not main)
  5. Check 'Set as a pre-release' or 'Set as the latest release' as appropriate
  6. Generate release notes if desired.
  7. Click 'Publish release'

The release github workflow will run and publish the release binaries to both test.pypi.org and pypi.org.

Check readthedocs

readthedocs integration is used to publish documentation. The webhook endpoint on readthedocs is configured using these instructions.

This is implemented using a Webhook defined in the Github repo (Settings / Webhooks).

readthedocs should be checked after each release to ensure that the docs have built correctly. Login to readthedocs.org to check that the build ran OK (click on 'Builds' tab).

For pre-releases, the release version has to be activated via the readthedocs UI before it can be built.

Troubleshooting

The build can fail on 'publish to PyPI' with errors such as:

`long_description` has syntax errors in markup and would not be rendered on PyPI.

This is because the README.rst contains syntax errors and cannot be rendered. You can check this with:

pip install readme_renderer
python setup.py check -r -s

If there are duplicate target names, you can correct this with underscores.