Skip to content

Conversation

@dataflake
Copy link
Member

Our templates for pyproject.toml contain several tool.coverage sections. Unfortunately, merging those defaults into the contents of the package's own pyproject.toml will simply replace everything under the tool key with the tool contents from our template.

This change captures the tool sections from the package's own pyproject.toml and re-adds all keys under tool with the exception of coverage, which is taken from our template.

Use case where I saw the issue: When moving namespace package discovery settings from setup.py to pyproject.toml a key [tool.setuptools.packages.find] is needed, which was simply gone after running config-package.

@dataflake dataflake requested a review from icemac October 24, 2025 08:24
@dataflake dataflake self-assigned this Oct 24, 2025
@dataflake dataflake added the bug Something isn't working label Oct 24, 2025
@icemac icemac merged commit b6fb1ec into master Oct 28, 2025
13 checks passed
@icemac icemac deleted the dataflake/fix_tool_handling branch October 28, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants