File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ Emit a warning when ``[tools.setuptools] `` is present in ``pyproject.toml `` and will be ignored. -- by user:`SnoopJ `
Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ def read_configuration(
108
108
if not asdict or not (project_table or setuptools_table ):
109
109
return {} # User is not using pyproject to configure setuptools
110
110
111
+ if "setuptools" in asdict .get ("tools" , {}):
112
+ # let the user know they probably have a typo in their metadata
113
+ _ToolsTypoInMetadata .emit ()
114
+
111
115
if "distutils" in tool_table :
112
116
_ExperimentalConfiguration .emit (subject = "[tool.distutils]" )
113
117
@@ -439,3 +443,9 @@ class _ExperimentalConfiguration(SetuptoolsWarning):
439
443
"`{subject}` in `pyproject.toml` is still *experimental* "
440
444
"and likely to change in future releases."
441
445
)
446
+
447
+
448
+ class _ToolsTypoInMetadata (SetuptoolsWarning ):
449
+ _SUMMARY = (
450
+ "Ignoring [tools.setuptools] in pyproject.toml, did you mean [tool.setuptools]?"
451
+ )
You can’t perform that action at this time.
0 commit comments