Add pyproject.toml to support pip 23.1

pip 23.1 removed the "setup.py install" fallback for projects that do
not have pyproject.toml and now uses a pyproject.toml which is vendored
in pip. pip 25.3 will go a step further and enforce presence of this
file.

To address that, this change adds the minimal pyproject.toml to enable
pbr to be properly used to build editable wheels.

See [1] and [2] for more details on the removal of the fallback support.

[1] https://pip.pypa.io/en/stable/news/#v23-1
[2] https://github.com/pypa/pip/issues/8368

Change-Id: Icbfd8a97c99c3c5b5ac6e3ec27d41627e15dc458
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-05-13 12:18:53 +01:00
parent 599873b01f
commit ac5b939013

3
pyproject.toml Normal file
View File

@@ -0,0 +1,3 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"