[PATCH 1/2] pyproject.toml: add setuptools to requires; fix project structure
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <[email protected]> |
From: Chris Laplante <[email protected]> setuptools is listed as the build backend but wasn't in 'requires'. We also need to tell setuptools to look for our modules in 'lib' since otherwise it chokes on our non-standard layout with: [stderr] error: Multiple top-level packages discovered in a flat-layout: ['lib', 'conf', 'vendor', 'contrib', 'classes']. With these changes, 'uv sync' works and IDEs such as PyCharm can properly analyze the project. Signed-off-by: Chris Laplante <[email protected]> --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 93508d92e..886753f14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,17 @@ [build-system] -requires = [] +requires = ["setuptools>=64"] build-backend = "setuptools.build_meta" [project] name = "bitbake" version = "2.19.0" +requires-python = ">= 3.9" + +[tool.setuptools] +package-dir = {"" = "lib"} + +[tool.setuptools.packages.find] +where = ["lib"] [tool.vendoring] destination = "lib/bb/_vendor" -- 2.43.0