summaryrefslogtreecommitdiff
path: root/setuptools/config
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-03-22 18:39:35 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-03-22 18:39:35 +0000
commitbb01ab7c7470dc9ccd5c7196e727a8046ef88250 (patch)
tree332266f6e1e0eb4dda65e57c9fcedb786f697b2e /setuptools/config
parent88504d3d755d3a5e0e95ab84b5df41953cb4f016 (diff)
downloadpython-setuptools-git-bb01ab7c7470dc9ccd5c7196e727a8046ef88250.tar.gz
Fix default include-package-data with 'pyproject.toml'
Diffstat (limited to 'setuptools/config')
-rw-r--r--setuptools/config/pyprojecttoml.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/setuptools/config/pyprojecttoml.py b/setuptools/config/pyprojecttoml.py
index 9a7c9fe6..e0a8946f 100644
--- a/setuptools/config/pyprojecttoml.py
+++ b/setuptools/config/pyprojecttoml.py
@@ -103,6 +103,7 @@ def read_configuration(
# `ini2toml` backfills include_package_data=False when nothing is explicitly given,
# therefore setting a default here is backwards compatible.
tool_table.setdefault("include-package-data", True)
+ asdict.setdefault("tool", {})["setuptools"] = tool_table # persist changes
with _ignore_errors(ignore_option_errors):
# Don't complain about unrelated errors (e.g. tools not using the "tool" table)