From db97a9f322a136604bdcf6846a2c4020cecdc868 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Wed, 30 Apr 2025 13:24:50 -0700 Subject: [PATCH] Add pyproject.toml pip 23.1 removed the "setup.py install" fallback for projects that do not have pyproject.toml. This change adds the minimal pyproject.toml to enable pbr to be properly used to build editable wheels. [1] https://docs.openstack.org/pbr/latest/user/using.html#pyproject-toml Change-Id: Ie14fb4db0da3b20daadfd55647c8563e65a338d2 Closes-Bug: #2109645 --- pyproject.toml | 3 +++ setup.py | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000..2a38d6bc75 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["pbr>=6.1.1"] +build-backend = "pbr.build" diff --git a/setup.py b/setup.py index f63cc23c52..0be93a5f6e 100644 --- a/setup.py +++ b/setup.py @@ -13,9 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT import setuptools -setuptools.setup( - setup_requires=['pbr>=2.0.0'], - pbr=True) +setuptools.setup(pbr=True)