PEP 518: clarify scope of [tool] section?

(Ethan Smith) #1

Hello, hopefully this is an ok place to post this. I apologize if this has already been brought up, but I can’t find any discussion about it in the usual places.

PEP 518 has a section about tools. It seems that there is some confusion about whether this is meant for build tools only (also is there a good definition of a build tool), or if any tool is allowed/supposed to use this section. I can see it both ways, and I have seen others read it both ways. Some tools like black have already started using this section, so if they are not supposed to be, it would be good to clarify this.

Thank you all for working on advancing Python packaging :slight_smile:

(Nathaniel J. Smith) #2

The intention was to make pyproject.toml usable for any configuration related to your python project, not just build tools specifically.

1 Like
(Ethan Smith) #3

Thank you for the quick reply! That is what I thought, but I’ve seen several people say it was only meant for build tools. So perhaps a wording change or addendum would be in order?

(Nathaniel J. Smith) #4

Want to submit a PR to the peps repo?

1 Like
(Nathaniel J. Smith) #5

Done here: