Check if the license name on the PyPI licenses list. Prepends 'OSI
    Approved :: ' if required. If the license is 'Other/Proprietary License' or
    unknow, asummes that is a private license.

def _parse_license_name(long_name):
    ''' Check if the license name on the PyPI licenses list. Prepends 'OSI
    Approved :: ' if required. If the license is 'Other/Proprietary License' or
    unknow, asummes that is a private license.
    '''
    licenses_path = utils.get_data_dir() / 'license_list.txt'
    with licenses_path.open('rt') as f:
        licenses = [line.strip() for line in f.readlines()]

    if long_name in licenses:
        return long_name, long_name == PRIVATE_LICENSE_NAME

    osi_name = 'OSI Approved :: {}'.format(long_name)
    if osi_name in licenses:
        return osi_name, False

    logging.warn('License "{}" is not a valid PyPI classifier'.format(long_name))

    return long_name, True