(raw_version, options=None)
return transformed
:param raw_version: raw version in str format
        :param options: keyword arguments to pass to any defined transformer
:param raw_version: raw version in str format
        :param options: keyword arguments to pass to any defined transformer
: param raw_version : raw version in str format : param options : keyword arguments to pass to any defined transformer
def transform_version(raw_version, options=None):
        """
        :param raw_version: raw version in str format
        :param options: keyword arguments to pass to any defined transformer
        """
        version = VersionUtils.parse_version(raw_version)
        transformed = {
            'version.major': str(version.major),
            'version.minor': str(version.minor),
            'version.patch': str(version.patch),
            'version.raw': raw_version,
            'version.scheme': 'semver',
        }
        if version.prerelease:
            transformed['version.release'] = version.prerelease
        return transformed
def transform_version ( raw_version , options = None ) : version = VersionUtils . parse_version ( raw_version ) transformed = { 'version.major' : str ( version . major ) , 'version.minor' : str ( version . minor ) , 'version.patch' : str ( version . patch ) , 'version.raw' : raw_version , 'version.scheme' : 'semver' , } if version . prerelease : transformed [ 'version.release' ] = version . prerelease return transformed