Skip to content

Latest commit

 

History

History
86 lines (60 loc) · 2.84 KB

README-new-release.rst

File metadata and controls

86 lines (60 loc) · 2.84 KB

How to make a new release

Version numbering

parmap version numbering is borrowed from [1].

parmap versions use the following version numbering: MAJOR.MINOR.PATCH.DEVELOPMENT.

  • MAJOR, MINOR and PATCH follow the semantic versioning of libraries rules [2]:
    • MAJOR will only change when there is an incompatible API change.
    • MINOR will increase when functionality is added in a backwards-compatible way
    • PATCH will change for backwards-compatible bug fixes.
  • DEVELOPMENT is only used in the git repository and is removed before official releases.

Creating a new release

This is a list of things to do before a release:

  • Review the ChangeLog file and add items if necessary.
  • Bump the version in pyproject.toml to a valid release version (without DEVELOPMENT). Update the release version in docs/conf.py and in the Changelog.
  • Build the source distribution and the binary wheel
python3 -m pip install --user -U "pip" "wheel" "build" "twine"
python3 -m build .
  • Check that there are no missing files in dist/parmap-x.y.z.tar.gz and on dist/parmap-x.y.z-py2.py3-none-any.whl.
  • Check that the restructured text is valid with
twine check dist/parmap-[VERSION].tar.gz

References

[1]http://r-pkgs.had.co.nz/release.html
[2]http://semver.org
[3]https://github.com/zeehio/parmap
[4]https://github.com/zeehio/parmap/actions
[5]https://parmap.readthedocs.org/