Skip to content

Add pyproject.toml to all libraries #10528

Closed as duplicate
Closed as duplicate

Description

@plamut

We should add a pyproject.toml file to all libraries to explicitly specify what build tools they need. At the time of writing, the implicit default assumed by pip is setuptools, but we can make this explicit with pyproject.toml.

As per blog post linked below, if a project uses setuptools, the contents of pyproject.toml should be the following (which is what pip currently assumes if that file is missing):

[build-system]
requires = ["setuptools >= 40.6.0", "wheel"]
build-backend = "setuptools.build_meta"

Resources:

  • PEP 518 - defines a standard way for the libraries to define their build system dependencies (in the abovementioned pyproject.toml file).
  • PEP 517 - defines how build tools should be executed for a project that provides pyproject.toml.
  • Blog post by one of the CPython core developers explaining all this in plain English. 🙂

Activity

  1. added
    type: processA process-related concern. May include testing, release, or the like.
    on Jan 13, 2021
  2. jamierpond commented on Dec 18, 2022

    @jamierpond

    @plamut any news on this?

  3. plamut commented on Dec 19, 2022

    @plamut
    ContributorAuthor

    @jamierpond I no longer maintain these libraries, thus cannot really say, sorry.

    @busunkim96 Do you perhaps know, if this has been considered yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions