define_07_publish

Publish to Python repository related automation.

class pywf_internal_proprietary.define_07_publish.PyWfPublish[source]

Namespace class for publishing to Python repository related automation.

bump_version(major: bool = False, minor: bool = False, patch: bool = False, real_run: bool = True, verbose: bool = False)[source]

Bump a semantic version. The current version has to be in x.y.z format, where x, y, z are integers.

Parameters:
  • major – bump major version.

  • minor – bump minor version.

  • patch – bump patch version.

  • minor_start_from – if bumping major version, minor start from this number.

  • micro_start_from – if bumping minor version, micro start from this number.

publish_to_github_release(real_run: bool = True, verbose: bool = True)[source]

Create a GitHub Release using the current version based on main branch.

Returns:

a boolean flag to indicate whether the operation is performed.