From 698c6699295ea4436bdc39ed15c21fe8cc8cf517 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 1 Jan 2022 16:26:17 +0000 Subject: [PATCH] Use PBR as a PEP 517 build backend Recent versions of PBR are now capable of being integrated as a build backend per the PEP 517 specification, so that the setup.py script no longer needs to be invoked directly by anything. Declaring setup_requires is now done via a new pyproject.toml file instead. This allows us to avoid some recent deprecations in SetupTools, though the file itself needs to be retained as a stub for now since it still gets imported by PBR's wrapper of the SetupTools build_meta hooks. --- LICENSE | 2 +- pyproject.toml | 7 +++++++ setup.py | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 pyproject.toml diff --git a/LICENSE b/LICENSE index 54ec971..4b8d86e 100644 --- a/LICENSE +++ b/LICENSE @@ -10,7 +10,7 @@ preferred license of many projects (OpenBSD, for example). copyright notice ---------------- -Copyright (c) 2004-2021 Jeremy Stanley and other +Copyright (c) 2004-2022 Jeremy Stanley and other mudpy authors listed in the Git history or AUTHORS file. permission notice diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fefddad --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +# Copyright (c) 2022 mudpy authors. Permission to use, copy, +# modify, and distribute this software is granted under terms +# provided in the LICENSE file distributed with this software. + +[build-system] +requires = ["pbr>=5.8.0", "setuptools>=36.6.0", "wheel"] +build-backend = "pbr.build" diff --git a/setup.py b/setup.py index 0ee8be3..d404fc1 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ -# Copyright (c) 2016-2019 mudpy authors. Permission to use, copy, +# Copyright (c) 2016-2022 mudpy authors. Permission to use, copy, # modify, and distribute this software is granted under terms # provided in the LICENSE file distributed with this software. import setuptools -setuptools.setup(setup_requires=['pbr>=5'], pbr=True) +setuptools.setup(pbr=True) -- 2.11.0