[Python] Why is Poetry complaining that `name` isn't set in pyproject.toml?

Discussão em 'Python' iniciado por Stack, Março 11, 2025.

  1. Stack

    Stack Membro Participativo

    I set up a new Python Poetry project with poetry init. I'm not creating a package, so I added this to my pyproject.toml:

    [tool.poetry]
    package-mode = false


    The Operating Modes section of the Poetry documentation says that when operating in non-package mode, the name and version fields in pyproject.toml are optional, so I removed them.

    Now when I run a Poetry command, such as poetry env list, I get this error:

    The Poetry configuration is invalid:
    - project must contain ['name'] properties


    Why is this happening?

    Continue reading...

Compartilhe esta Página