File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ Change log
442.0 (unreleased)
55----------------
66
7+ - Fix handling of ``tool `` section during ``pyproject.toml `` generation.
8+
79- Add support for Python 3.14.
810
911- Drop support for Python 3.9.
Original file line number Diff line number Diff line change @@ -646,6 +646,7 @@ def pyproject_toml(self):
646646
647647 # Capture some pre-transformation data
648648 old_requires = toml_doc .get ('build-system' , {}).get ('requires' , [])
649+ old_tools = toml_doc .get ('tool' , {})
649650
650651 # Apply template-dependent defaults
651652 toml_defaults = self .render_with_meta (
@@ -669,6 +670,12 @@ def pyproject_toml(self):
669670 [old_requires .remove (x ) for x in wheel_requirement ]
670671 toml_doc ['build-system' ]['requires' ].extend (old_requires )
671672
673+ # Fix up tool sections because the call to ``update`` above will
674+ # replace the entire ``tool`` mapping...
675+ for k , v in old_tools .items ():
676+ if k != 'coverage' : # `coverage` settings are handled by template
677+ toml_doc ['tool' ][k ] = v
678+
672679 # Update coverage-related data
673680 coverage = toml_doc ['tool' ]['coverage' ]
674681 add_cfg = self .meta_cfg ['coverage-run' ].get ('additional-config' , [])
You can’t perform that action at this time.
0 commit comments