aside.version module¶
Manages the package version information.
- get_version(commit_tag: Optional[str] = None, short_sha: Optional[str] = None) → str[source]¶
Get the
versionof the currently installed aside package.When the
commit_tagandshort_shavalues are not specified, the current version is inferred frompkg_resourcesorbase_version. If the package was not built under official CI, then the string.post0+installed.from.sourceis appended to the version number.- Parameters
commit_tag – The tag of the currently building commit. It is checked to be matching with the
base_version, otherwise aRuntimeErroris raised to abort the build.short_sha – The sha of the currently building commit. If no
commit_tagwas specified, then this is a development build and theshort_shais appended to the current version using the.post0+shaextension.
- Returns
The resulting version string.
- version: str¶
Specifies the exact version of the currently installed aside package.
This value is determined from the values of
base_version, thepkg_resourcesdistribution version of the current package and theCI_COMMIT_TAGandCI_COMMIT_SHORT_SHAenvironment variables.Unlike
base_version,versionmay include extra information for development versions and source installations. Seeget_versionfor more info.