From: Rob Woolley <rob.woolley@windriver.com>
To: <bitbake-devel@lists.openembedded.org>
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: [PATCH 4/5] Add Python packaging files
Date: Tue, 20 Jan 2026 18:47:22 -0800 [thread overview]
Message-ID: <20260121024723.2634264-5-rob.woolley@windriver.com> (raw)
In-Reply-To: <20260121024723.2634264-1-rob.woolley@windriver.com>
This enables creating a pip package for PyPI with:
python3 -m build
Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
---
pyproject.toml | 3 +++
setup.cfg | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+)
create mode 100644 pyproject.toml
create mode 100644 setup.cfg
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 00000000..4aff98bb
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["setuptools>=61.0.0", "wheel"]
+build-backend = "setuptools.build_meta"
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 00000000..3eaa3c49
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,40 @@
+[metadata]
+name = bitbake-setup
+version = 2.16.0a1
+author = OpenEmbedded BitBake Developers
+author_email = bitbake-devel@lists.openembedded.org
+description = bitbake-setup
+long_description = file: README.md
+long_description_content_type = text/markdown
+url = https://github.com/openembedded/bitbake.git
+license = "GPL-2.0-only and MIT"
+classifiers =
+ Programming Language :: Python :: 3
+ License :: OSI Approved :: MIT License
+ License :: OSI Approved :: GNU General Public License v2 (GPLv2)
+ Operating System :: POSIX :: Linux
+
+[options]
+package_dir =
+ = lib
+packages = find:
+include_package_data = True
+zip_safe = False
+python_requires = >=3.6
+py_modules = codegen
+
+install_requires =
+ ; List any non-standard dependencies BitBake needs
+ ; BitBake is mostly self-contained, but check its documentation
+
+[options.packages.find]
+where = lib
+include =
+ bb*
+ bs4*
+ ply
+ bitbake_setup
+
+[options.entry_points]
+console_scripts =
+ bitbake-setup = bitbake_setup.__main__:main
--
2.49.0
next prev parent reply other threads:[~2026-01-21 2:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 2:47 [PATCH 0/5] Package bitbake-setup for PyPI Rob Woolley
2026-01-21 2:47 ` [PATCH 1/5] gitignore: ignore Python packaging files Rob Woolley
2026-01-21 2:47 ` [PATCH 2/5] bitbake-setup: Move into Python module Rob Woolley
2026-01-21 2:47 ` [PATCH 3/5] bitbake-setup: Add wrapper script for bitbake_setup module Rob Woolley
2026-01-21 9:29 ` [bitbake-devel] " Alexander Kanavin
2026-01-21 2:47 ` Rob Woolley [this message]
2026-01-21 9:41 ` [bitbake-devel] [PATCH 4/5] Add Python packaging files Alexander Kanavin
2026-01-21 10:01 ` Quentin Schulz
2026-01-21 10:07 ` Alexander Kanavin
2026-02-11 14:40 ` Rob Woolley
2026-02-12 11:38 ` Alexander Kanavin
2026-02-12 12:50 ` Quentin Schulz
2026-01-21 9:47 ` Quentin Schulz
2026-01-21 10:01 ` Antonin Godard
2026-01-21 2:47 ` [PATCH 5/5] bitbake-setup: Add the conditional script stanza Rob Woolley
2026-01-21 9:34 ` [bitbake-devel] [PATCH 0/5] Package bitbake-setup for PyPI Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260121024723.2634264-5-rob.woolley@windriver.com \
--to=rob.woolley@windriver.com \
--cc=alex@linutronix.de \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox