[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.
Signed-off-by: Maxim Cournoyer maxim.cournoyer@gmail.com ---
tools/u_boot_pylib/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/u_boot_pylib/pyproject.toml b/tools/u_boot_pylib/pyproject.toml index 3f33caf6f8..31a4c0adae 100644 --- a/tools/u_boot_pylib/pyproject.toml +++ b/tools/u_boot_pylib/pyproject.toml @@ -9,7 +9,7 @@ authors = [ { name="Simon Glass", email="sjg@chromium.org" }, ] description = "U-Boot python library" -readme = "README.md" +readme = "README.rst" requires-python = ">=3.7" classifiers = [ "Programming Language :: Python :: 3",
base-commit: 923de765ee1a5b26310f02cb42dcbad9e2b011c5

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.
Signed-off-by: Maxim Cournoyer maxim.cournoyer@gmail.com ---
tools/u_boot_pylib/pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/tools/u_boot_pylib/pyproject.toml b/tools/u_boot_pylib/pyproject.toml index 31a4c0adae..037c5d629e 100644 --- a/tools/u_boot_pylib/pyproject.toml +++ b/tools/u_boot_pylib/pyproject.toml @@ -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*"]

On Fri, 7 Jul 2023 at 15:17, Maxim Cournoyer maxim.cournoyer@gmail.com wrote:
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.
Signed-off-by: Maxim Cournoyer maxim.cournoyer@gmail.com
tools/u_boot_pylib/pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org

On Fri, 7 Jul 2023 at 15:17, Maxim Cournoyer maxim.cournoyer@gmail.com wrote:
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.
Signed-off-by: Maxim Cournoyer maxim.cournoyer@gmail.com
tools/u_boot_pylib/pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-dm, thanks!

On Fri, 7 Jul 2023 at 15:17, Maxim Cournoyer maxim.cournoyer@gmail.com wrote:
- tools/u_boot_pylib/pyproject.toml (readme): Replace README.md with
README.rst.
Signed-off-by: Maxim Cournoyer maxim.cournoyer@gmail.com
tools/u_boot_pylib/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org

On Fri, 7 Jul 2023 at 15:17, Maxim Cournoyer maxim.cournoyer@gmail.com wrote:
- tools/u_boot_pylib/pyproject.toml (readme): Replace README.md with
README.rst.
Signed-off-by: Maxim Cournoyer maxim.cournoyer@gmail.com
tools/u_boot_pylib/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot-dm, thanks!
participants (2)
-
Maxim Cournoyer
-
Simon Glass