swcheckin.utils.versiontools module

Version tools set.

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

Retrieve the version from SCM tag in Git or Hg.

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

Return empty local version if uploading to PyPI.

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

Calculate the version of the dist itself.