def split_version(package_version):
    """Split version, release and build parts of a package version

    example: 1.0.3-5-2 -> (1.0.3, 5, 2)
    """
    version, sep, release_and_build = package_version.partition('-')
    release, sep, build = release_and_build.partition('-')
    return version, release, build
