Skip to contentSkip to conversation

tools: Fix README file in pyproject.toml of u_boot_pylib.

PATCH In review Maxim Cournoyer 2 participants 6 messages Jul 7, 2023 – Jul 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tools: Fix README file in pyproject.toml of u_boot_pylib.

* tools/u_boot_pylib/pyproject.toml (readme): Replace README.md with README.rst.

---

 tools/u_boot_pylib/pyproject.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/u_boot_pylib/pyproject.toml +1 -1
index 3f33caf6f8..31a4c0adae 100644
@@ -9,7 +9,7 @@ authors = [
   { name="Simon Glass", email="[email protected]" },
 ]
 description = "U-Boot python library"
-readme = "README.md"
+readme = "README.rst"
 requires-python = ">=3.7"
 classifiers = [
     "Programming Language :: Python :: 3",

base-commit: 923de765ee1a5b26310f02cb42dcbad9e2b011c5

Signature · 1 line
2.40.1
#1 lore raw

PATCH 2/2 tools: Fix package discovery in pyproject.toml of u_boot_pylib.

When building from source, setuptools would complain about not finding package via its auto-discovery mechanism. Manually specify how to locate the files, relative to the package's directory.

* tools/u_boot_pylib/pyproject.toml: New tool.setuptools.packages.find section.

---

 tools/u_boot_pylib/pyproject.toml | 4 ++++
 1 file changed, 4 insertions(+)
tools/u_boot_pylib/pyproject.toml +4 -0
index 31a4c0adae..037c5d629e 100644
@@ -20,3 +20,7 @@ classifiers = [
 [project.urls]
 "Homepage" = "https://u-boot.readthedocs.io"
 "Bug Tracker" = "https://source.denx.de/groups/u-boot/-/issues"
+
+[tool.setuptools.packages.find]
+where = [".."]
+include = ["u_boot_pylib*"]
Signature · 1 line
2.40.1
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] tools: Fix package discovery in pyproject.toml of u_boot_pylib.

Quoted 5 lines · Maxim Cournoyer

When building from source, setuptools would complain about not finding package via its auto-discovery mechanism. Manually specify how to locate the files, relative to the package's directory.

Quoted 8 lines

* tools/u_boot_pylib/pyproject.toml: New tool.setuptools.packages.find section.

---

 tools/u_boot_pylib/pyproject.toml | 4 ++++
 1 file changed, 4 insertions(+)
Reviewed-by
#3 lore raw

Re: [PATCH 2/2] tools: Fix package discovery in pyproject.toml of u_boot_pylib.

Quoted 5 lines · Maxim Cournoyer

When building from source, setuptools would complain about not finding package via its auto-discovery mechanism. Manually specify how to locate the files, relative to the package's directory.

Quoted 8 lines

* tools/u_boot_pylib/pyproject.toml: New tool.setuptools.packages.find section.

---

 tools/u_boot_pylib/pyproject.toml | 4 ++++
 1 file changed, 4 insertions(+)

Applied to u-boot-dm, thanks!