def apply_configuration(
    dist: "Distribution",
    filepath: _Path,
    ignore_option_errors=False,
) -> "Distribution":
    """Apply the configuration from a ``pyproject.toml`` file into an existing
    distribution object.
    """
    config = read_configuration(filepath, True, ignore_option_errors, dist)
    return _apply(dist, config, filepath)
Apply the configuration from a ``pyproject.toml`` file into an existing
    distribution object.
    
product/gradle-plugin/src/main/python/setuptools/config/pyprojecttoml.py