import configparser


def setupcfg_has_metadata(setup_cfg_filename='setup.cfg'):
    """Parse the setup.cfg and return True if it has a metadata section"""
    config = configparser.ConfigParser()
    config.read(setup_cfg_filename)
    if 'metadata' in config.sections():
        return True
    return False