

def register_package(name, user, token):
    homepage = ('https://github.com/' + name)
    short_desc = get_description(('Please supply a short (one line) description of your package.' + ' You may also provide a file containing the short description:\n'))
    long_desc = get_description(('Please supply a long description of your package.' + ' You may also provide a file containing the long description:\n'))
    new_hpg = input(('Homepage of your package (%s): ' % homepage))
    if (len(new_hpg.strip()) > 0):
        homepage = new_hpg
    check_homepage(homepage)
    resp = register_package_http(name, user, token, short_desc, long_desc, homepage)
    if (resp.status_code == 201):
        print(('\nSUCCESS: %s' % resp.text))
    else:
        print(('\nERROR: %s' % resp.text))

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