add pyproject.toml to support pip 23.1

pip 23.1 removed the "setup.py install" for projects that do not have
their own pyproject.toml by having a hardcoded one within pip.

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

See https://pip.pypa.io/en/stable/news/#v23-1
and https://github.com/pypa/pip/issues/8368 for more info.

Change-Id: I73982059cca0411fb1ed6c64f03031b8dcd668d4
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein 2024-10-18 12:17:22 -05:00
parent 185e6c105c
commit 1d62d4e961
No known key found for this signature in database
3 changed files with 5 additions and 2 deletions

3
pyproject.toml Normal file
View file

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

View file

@ -9,7 +9,7 @@ oslo.log>=3.36.0 # Apache-2.0
oslo.utils>=3.40.2 # Apache-2.0
oslo.messaging>=5.29.0 # Apache-2.0
oslo.service>=1.40.2 # Apache-2.0
pbr>=3.1.1 # Apache-2.0
pbr>=6.0.0 # Apache-2.0
openstacksdk>=0.31.2 # Apache-2.0
tooz>=2.5.1 # Apache-2.0
neutron>=14.0.0.0b1 # Apache-2.0

View file

@ -16,5 +16,5 @@
import setuptools
setuptools.setup(
setup_requires=['pbr>=2.0.0'],
setup_requires=['pbr>=6.0.0'],
pbr=True)