stubber.publish.bump

Bump a version number to a next version

Module Contents

Functions

bump_version(→ packaging.version.Version)

Increases a version number

stubber.publish.bump.bump_version(current: packaging.version.Version, *, major_bump: bool = False, minor_bump: bool = False, micro_bump: bool = False, version_bump: bool = False, post_bump: bool = False, rc: int = 0) packaging.version.Version

Increases a version number

This allows for a new stub-release to be published while still using the Major.Minor.Patch version numbers of Micropython if rc = 0(default) : bump post release

format: x.y.z.post1, x.y.z.post2 …

if rec specified:

drop the post release and set the release candidate number

ref: https://peps.python.org/pep-0440/

Parameters:
  • current (packaging.version.Version) –

  • major_bump (bool) –

  • minor_bump (bool) –

  • micro_bump (bool) –

  • version_bump (bool) –

  • post_bump (bool) –

  • rc (int) –

Return type:

packaging.version.Version