

def validate_and_return_sp_dep(line):
    first_split = line.split('==')
    if (len(first_split) != 2):
        show_error_and_exit(('Spark Package dependencies must be supplied as: `:package_name==:version` in spark-package-deps.txt. Found: %s' % line))
    package_name = first_split[0]
    version = first_split[1]
    second_split = package_name.split('/')
    if (len(second_split) != 2):
        show_error_and_exit(('Spark Package names must be supplied as: `:repo_owner_name/:repo_name` in spark-package-deps.txt. Found: %s' % package_name))
    return (second_split[0], second_split[1], version)

dataset/ETHPy150Open databricks/spark-package-cmd-tool/python/spark_package/spark_package.py validate_and_return_sp_dep/original