Skip to content

Making a Release

Matthew Hambley edited this page Nov 28, 2023 · 10 revisions

Making a Release

Some notes on process for making releases

Feature Release

This covers major and minor version number bumps.

  • Create a release branch
  • Create development branch from it

Bug fix release

This covers patch version number bumps only.

  • Create development branch from appropriate release branch

Make the Release

  • Update source/stylist/__init__.py with release version number
  • Update README.md
  • Create packages python3 -m build . --sdist --wheel
  • Check package creation python3 -m twine check dist/*
  • Create and merge change request
  • Tag release

Documentation for the release will be generated automatically but you will have to edit index.html by hand.

Distribute Release

  • Upload to PyPI python3 -m twine upload dist/*
  • Update source/stylist/__init__.py with development version number

CondaForge will detect the package has changed on PyPI and automatically create a patch.

An attempt was made to capture this in a GitHub workflow but it looks like it might well be more trouble than it's worth.

Clone this wiki locally