sdbus++: convert from setup.py to pyproject.toml

Python setup.py files are deprecated in favor of newer pyproject.toml
and with later versions of Python this is both a warning and can be
a failure due to incorrect SPDX license directives.  Convert to
pyproject robotically by using:

```
uvx setuptools-py2cfg >> setup.cfg
uvx ini2toml[full] setup.cfg >> pyproject.toml
```

Tested: Ran `uv build --sdist` with `setup.py` and `pyproject.toml` and
confirmed same results (other than obvious changes due to install of
the setuptools directives).

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Id62a63c3d9f061d632eab504a76b0c13be8a8b08
diff --git a/tools/README.md b/tools/README.md
new file mode 100644
index 0000000..93d843a
--- /dev/null
+++ b/tools/README.md
@@ -0,0 +1,3 @@
+# sdbus++
+
+`sdbus++` tools and templates
diff --git a/tools/pyproject.toml b/tools/pyproject.toml
new file mode 100644
index 0000000..b87bd65
--- /dev/null
+++ b/tools/pyproject.toml
@@ -0,0 +1,20 @@
+[build-system]
+requires = ["setuptools>=61.2"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "sdbusplus"
+version = "1.0"
+license = "Apache-2.0"
+urls = { Homepage = "http://github.com/openbmc/sdbusplus" }
+dependencies = ["inflection", "mako", "pyyaml"]
+
+[tool.setuptools]
+script-files = ["sdbus++", "sdbus++-gen-meson"]
+include-package-data = false
+
+[tool.setuptools.packages]
+find = { namespaces = false }
+
+[tool.setuptools.package-data]
+sdbusplus = ["schemas/*.yaml", "templates/*.mako"]
diff --git a/tools/setup.py b/tools/setup.py
deleted file mode 100755
index 9c25e2c..0000000
--- a/tools/setup.py
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env python3
-from setuptools import find_packages, setup
-
-setup(
-    name="sdbusplus",
-    version="1.0",
-    packages=find_packages(),
-    install_requires=["inflection", "mako", "pyyaml"],
-    scripts=["sdbus++", "sdbus++-gen-meson"],
-    package_data={"sdbusplus": ["schemas/*.yaml", "templates/*.mako"]},
-    url="http://github.com/openbmc/sdbusplus",
-    classifiers=["License :: OSI Approved :: Apache Software License"],
-)