def apply_configuration(dist: "Distribution", filepath: _Path) -> "Distribution":
    """Apply the configuration from a ``setup.cfg`` file into an existing
    distribution object.
    """
    _apply(dist, filepath)
    dist._finalize_requires()
    return dist
Apply the configuration from a ``setup.cfg`` file into an existing
    distribution object.
    
product/gradle-plugin/src/main/python/setuptools/config/setupcfg.py