[PATCH 08/15] patman: Add support for building a patmanu PyPi package

Simon Glass sjg at chromium.org
Sun Feb 19 15:51:16 CET 2023


Create the necessary files to build this new package.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 Makefile                     |  1 +
 tools/patmanu/pyproject.toml | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 tools/patmanu/pyproject.toml

diff --git a/Makefile b/Makefile
index 9f008dea0ec..afa6a7eb127 100644
--- a/Makefile
+++ b/Makefile
@@ -2282,6 +2282,7 @@ pip pip_test pip_release: _pip
 
 _pip:
 	scripts/make_pip.sh u_boot_pylib ${PIP_ARGS}
+	scripts/make_pip.sh patmanu ${PIP_ARGS}
 
 help:
 	@echo  'Cleaning targets:'
diff --git a/tools/patmanu/pyproject.toml b/tools/patmanu/pyproject.toml
new file mode 100644
index 00000000000..5e9b47b1b4c
--- /dev/null
+++ b/tools/patmanu/pyproject.toml
@@ -0,0 +1,29 @@
+[build-system]
+requires = ["setuptools>=61.0"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "patmanu"
+version = "0.0.1"
+authors = [
+  { name="Simon Glass", email="sjg at chromium.org" },
+]
+dependencies = ["u_boot_pylib"]
+description = "Patman patch manager"
+readme = "README.rst"
+requires-python = ">=3.7"
+classifiers = [
+    "Programming Language :: Python :: 3",
+    "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
+    "Operating System :: OS Independent",
+]
+
+[project.urls]
+"Homepage" = "https://u-boot.readthedocs.io/en/latest/develop/patman.html"
+"Bug Tracker" = "https://source.denx.de/groups/u-boot/-/issues"
+
+[project.scripts]
+patman = "patmanu.__main__:run_patman"
+
+[tool.setuptools.package-data]
+patmanu = ["*.rst"]
-- 
2.39.2.637.g21b0678d19-goog



More information about the U-Boot mailing list