summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-03-27 14:57:25 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-03-27 15:57:25 +0100
commit91f9960726a7a73f1009ec3adeace04f4dd6c66c (patch)
tree6151e0da1110a1410ece8f08c7d05eca4c31d8d1
parentb760e946dc794f145b507a1512d7ff7138c06ae8 (diff)
downloadpython-setuptools-git-91f9960726a7a73f1009ec3adeace04f4dd6c66c.tar.gz
Make sure apply function remains private
-rw-r--r--setuptools/config/pyprojecttoml.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/setuptools/config/pyprojecttoml.py b/setuptools/config/pyprojecttoml.py
index d2c6c9c5..0ee1b8f9 100644
--- a/setuptools/config/pyprojecttoml.py
+++ b/setuptools/config/pyprojecttoml.py
@@ -9,7 +9,8 @@ from typing import TYPE_CHECKING, Callable, Dict, Optional, Mapping, Union
from setuptools.errors import FileError, OptionError
from . import expand as _expand
-from ._apply_pyprojecttoml import apply, _PREVIOUSLY_DEFINED, _WouldIgnoreField
+from ._apply_pyprojecttoml import apply as _apply
+from ._apply_pyprojecttoml import _PREVIOUSLY_DEFINED, _WouldIgnoreField
if TYPE_CHECKING:
from setuptools.dist import Distribution # noqa
@@ -44,13 +45,15 @@ def validate(config: dict, filepath: _Path):
def apply_configuration(
- dist: "Distribution", filepath: _Path, ignore_option_errors=False,
+ 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)
+ return _apply(dist, config, filepath)
def read_configuration(