google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Add pyproject.toml to all libraries

Open plamut opened this issue 5 years ago • 2 comments

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. :slightly_smiling_face:

plamut avatar Jan 13 '21 08:01 plamut

@plamut any news on this?

jamierpond avatar Dec 18 '22 19:12 jamierpond

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

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

plamut avatar Dec 19 '22 05:12 plamut