octomachinery.utils.versiontools module

Version tools set.

octomachinery.utils.versiontools.cut_local_version_on_upload(version)[source]

Return empty local version if uploading to PyPI.

octomachinery.utils.versiontools.get_self_version()[source]

Calculate the version of the dist itself.

octomachinery.utils.versiontools.get_version_from_scm_tag(*, root: str = '.', relative_to: Optional[str] = None, local_scheme: Union[Callable, str] = 'node-and-date') → str[source]

Retrieve the version from SCM tag in Git or Hg.