'Return license filename from a license-file key in setup.cfg, or None.'

def license_file(self):

    metadata = self.distribution.get_option_dict('metadata')
    if (not ('license_file' in metadata)):
        return None
    return metadata['license_file'][1]
