Skip to content

Using a top-level table for pytest in pyproject.toml offends PEP 518 #4

@abravalheri

Description

@abravalheri

Hi @jaraco, I am under the impression that using a top-level pytest table is not allowed under PEP 518.

with open(filename) as strm:
defn = toml.load(strm)
return defn["pytest"]["enabler"]

The PEP specifies the tool namespace, so I suppose the best would be reading from tool.pytest.enabler (or tool.pytest-enabler)?

I noticed this issue when I was working on the PEP 621 support for setuptools (and trying to convert setuptools' own setup.cfg file to pyproject.toml).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions