Skip to content

Commit 4069685

Browse files
committed
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 pypa/pip#8368 for more info. Change-Id: I7f922a97db4bfab374172db7db3e60db9d0b7940 Signed-off-by: Doug Goldstein <doug.goldstein@rackspace.com>
1 parent 43102ab commit 4069685

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["pbr>=6.0.0", "setuptools>=64.0.0"]
3+
build-backend = "pbr.build"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
import setuptools
1717

1818
setuptools.setup(
19-
setup_requires=['pbr>=2.0.0'],
19+
setup_requires=['pbr>=6.0.0'],
2020
pbr=True)

0 commit comments

Comments
 (0)