List the names of packages that are required by an EUPS table file.

    Parameters
    ----------
    table_text : `str`
        The text content of an EUPS table file.

    Returns
    -------
    names : `list` [`str`]
        List of package names that are required byy the EUPS table file.

def list_packages_in_eups_table(table_text):
    """List the names of packages that are required by an EUPS table file.

    Parameters
    ----------
    table_text : `str`
        The text content of an EUPS table file.

    Returns
    -------
    names : `list` [`str`]
        List of package names that are required byy the EUPS table file.
    """
    logger = logging.getLogger(__name__)
    # This pattern matches required product names in EUPS table files.
    pattern = re.compile(r'setupRequired\((?P<name>\w+)\)')
    listed_packages = [m.group('name') for m in pattern.finditer(table_text)]
    logger.debug('Packages listed in the table file: %r', listed_packages)
    return listed_packages