Skip to content

Make it explicit that functions to parse pyproject.toml are not part of the API #3232

@abravalheri

Description

@abravalheri

setuptools does not explicitly list which functions are part of the exposed API and therefore users tend to consider everything public.

As pointed out in #3231, some users might try to reach out for a function to parse the TOML file.

Since pyproject.toml uses a data format that maps directly to Python builtin types (dicts, arrays, etc), it can be directly parsed by a TOML library, such as tomli or future tomllib.

Therefore my opinion is that we can explicitly sign that the modules used to parse pyproject.toml are internal by prefixing them with _.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions