Skip to content

Correct pyproject.toml build-backend specification #118

@nchepanov

Description

@nchepanov

Currently:

[build-system]
requires = ["poetry>=1,<2"]
build-backend = "poetry.masonry.api"

According to https://python-poetry.org/docs/pyproject/#poetry-and-pep-517

If your pyproject.toml file still references poetry directly as a build backend, you should update it to reference poetry_core instead.

Should be updated to,

[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

This will significantly speed up the package installation process, since the entire poetry dependency cone is currently being installed during isolated build per PEP517.

I can submit a PR if no objections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions