Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2223137/?format=api
{ "id": 2223137, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223137/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20260414141542.975966-1-mooz@blockos.org/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/1.1/projects/27/?format=api", "name": "Buildroot development", "link_name": "buildroot", "list_id": "buildroot.buildroot.org", "list_email": "buildroot@buildroot.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260414141542.975966-1-mooz@blockos.org>", "date": "2026-04-14T14:14:54", "name": "package/python-transitions: new package", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "b90d98c7cb93bd51c5374a8c173de61fa7f17a7e", "submitter": { "id": 92650, "url": "http://patchwork.ozlabs.org/api/1.1/people/92650/?format=api", "name": "Vincent Cruz", "email": "mooz@blockos.org" }, "delegate": { "id": 89618, "url": "http://patchwork.ozlabs.org/api/1.1/users/89618/?format=api", "username": "juju", "first_name": "Julien", "last_name": "Olivain", "email": "juju@cotds.org" }, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20260414141542.975966-1-mooz@blockos.org/mbox/", "series": [ { "id": 499854, "url": "http://patchwork.ozlabs.org/api/1.1/series/499854/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=499854", "date": "2026-04-14T14:14:54", "name": "package/python-transitions: new package", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499854/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223137/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223137/checks/", "tags": {}, "headers": { "Return-Path": "<buildroot-bounces@buildroot.org>", "X-Original-To": [ "incoming-buildroot@patchwork.ozlabs.org", "buildroot@buildroot.org" ], "Delivered-To": [ "patchwork-incoming-buildroot@legolas.ozlabs.org", "buildroot@buildroot.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=AnE6XkTD;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)" ], "Received": [ "from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fw5ss3V6Wz1yDF\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Wed, 15 Apr 2026 00:16:01 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 75AB384A6E;\n\tTue, 14 Apr 2026 14:15:59 +0000 (UTC)", "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id kGGE8BOFre00; Tue, 14 Apr 2026 14:15:58 +0000 (UTC)", "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 3AB8F84A8E;\n\tTue, 14 Apr 2026 14:15:58 +0000 (UTC)", "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists1.osuosl.org (Postfix) with ESMTP id 5A2B8283\n for <buildroot@buildroot.org>; Tue, 14 Apr 2026 14:15:56 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id 402A842771\n for <buildroot@buildroot.org>; Tue, 14 Apr 2026 14:15:56 +0000 (UTC)", "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id xbtDT6pDdwqp for <buildroot@buildroot.org>;\n Tue, 14 Apr 2026 14:15:55 +0000 (UTC)", "from smtpout6.mo534.mail-out.ovh.net\n (smtpout6.mo534.mail-out.ovh.net [54.36.140.177])\n by smtp4.osuosl.org (Postfix) with ESMTPS id 776684021A\n for <buildroot@buildroot.org>; Tue, 14 Apr 2026 14:15:53 +0000 (UTC)", "from director5.derp.mail-out.ovh.net\n (director5.derp.mail-out.ovh.net [51.68.94.138])\n by mo534.mail-out.ovh.net (Postfix) with ESMTPS id 4fw5sf4rGyz6MpX;\n Tue, 14 Apr 2026 14:15:50 +0000 (UTC)", "from director5.derp.mail-out.ovh.net\n (director5.derp.mail-out.ovh.net. [127.0.0.1])\n by director5.derp.mail-out.ovh.net (inspect_sender_mail_agent) with SMTP\n for <mooz@blockos.org>; Tue, 14 Apr 2026 14:15:50 +0000 (UTC)", "from mta3.priv.ovhmail-u1.ea.mail.ovh.net (unknown [10.110.54.159])\n by director5.derp.mail-out.ovh.net (Postfix) with ESMTPS id\n 4fw5sf2wnTz7tnn; Tue, 14 Apr 2026 14:15:50 +0000 (UTC)", "from blockos.org (unknown [10.1.6.5])\n (Authenticated sender: mooz@blockos.org)\n by mta3.priv.ovhmail-u1.ea.mail.ovh.net (Postfix) with ESMTPSA id\n 9C00C9415D3;\n Tue, 14 Apr 2026 14:15:49 +0000 (UTC)" ], "X-Virus-Scanned": [ "amavis at osuosl.org", "amavis at osuosl.org" ], "X-Comment": "SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ", "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3AB8F84A8E", "OpenDKIM Filter v2.11.0 smtp4.osuosl.org 776684021A" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1776176158;\n\tbh=X6xxT6dFF3xeoaf+pQokkw2J0DNGm0vq9vpKdzHp2cY=;\n\th=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:Cc:From;\n\tb=AnE6XkTD+iepIhFCpFZm47K5Ks3pKnn+VnmjG1G0tw5fY7UEx+nXnd9u/TwhsVF/u\n\t FspIlkpzQe4hfkqeXmFJEwJk0/ZrF669PLcNafSz3ZCED8vygnwIHJMz4+kf/R+dBe\n\t XtC4A6qnN9GVGhQxDI29J6RmVZn1inZjIDj4U87YRcOHGap/NfJG/NwfN77T26Vm16\n\t C5rrdr0YsODZZySLX62eXOKKmUE4cu5407U8m0Ep+PaAvaMn3ld/vD4yG8lYokUFVq\n\t gtf1QK2i18+j0CEen+oIF4hbKddNEDvN8XEpP+TdEARw6eS38iMXeRXqL7F/oheTbK\n\t EOuhQcLlNcJig==", "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=54.36.140.177;\n helo=smtpout6.mo534.mail-out.ovh.net; envelope-from=mooz@blockos.org;\n receiver=<UNKNOWN>", "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp4.osuosl.org 776684021A", "X-OVh-ClientIp": "213.36.7.12", "From": "Vincent Cruz <mooz@blockos.org>", "To": "buildroot@buildroot.org", "Date": "Tue, 14 Apr 2026 16:14:54 +0200", "Message-ID": "<20260414141542.975966-1-mooz@blockos.org>", "X-Mailer": "git-send-email 2.51.0", "MIME-Version": "1.0", "x-ovh-tracer-id": "5482569597051063202", "X-VR-SPAMSTATE": "OK", "X-VR-SPAMSCORE": "-100", "X-VR-SPAMCAUSE": "\n dmFkZTEpAR4jkgW9wailg971qANVaew2qfIw0Im1sCvGxh8IXdaeWNvPZzAOePYvVr/S9UcewmWnCpnEAbVN5IdOFttw8D3JF09PWVchlvSuaTZYbfMk+jSPOUFulTsws2TAcw/82ox1hDRdjUBZq/bzAczK+FSE5BZwYr/HA8C6AFUYDTvNCqrkSK8UJwr66OE+7sJ9+BlIcGGWVs4oQ9mWsgM6dYf39Iz00vzu4pofGc/TdWQjUP5ciBcxm9A8kG8G5PClrbnyMDe7+FjNjXmNGn6R8KEQftZJQc2AAdrn56AriqRBMOL+vNgn8VssJcRwBxDHJ8hAsMMdghj4EoulYAOsC+nJ5QWyM7nYI05XwYK+v2XeY/QcVnSnYuOYurkt9FYVwHQ3nHf9hviqKfmMaC9fRoOc8NU3nD1b3ltRfkzVlTNSF030GJ44nCm9G/rk16xXSrIPKD3F07flWn/Q+Hzsr1XZlsEDF75Wi7ry8XB+9RShc6alQ6Gk6eF7T1IEliqKxQCa65Q6am0nF9ro5PsCi2601ovNlXoXZLnmoaQiSDjiQ86e5XxfS4BdM1oMPEDL8mSyv3+QbGwGc805vqttH7dyb7aQlQYWm8KA3PfaBdkwwjDUn2j/Lx8xyGAzqPxofVl9Kufo3oSh2NTcMNGG3uYGkXd2K6FSJRExwFwsxA", "X-Mailman-Original-Authentication-Results": [ "smtp4.osuosl.org;\n dmarc=none (p=none dis=none)\n header.from=blockos.org", "garm.ovh; auth=pass\n (GARM-107S001307d88dc-9973-4e35-8b65-c1bda3b569db,\n 57EC06D2F55947E19987155D42FF0DD2D92A6C82) smtp.auth=mooz@blockos.org" ], "Subject": "[Buildroot] [PATCH] package/python-transitions: new package", "X-BeenThere": "buildroot@buildroot.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Discussion and development of buildroot <buildroot.buildroot.org>", "List-Unsubscribe": "<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>", "List-Archive": "<http://lists.buildroot.org/pipermail/buildroot/>", "List-Post": "<mailto:buildroot@buildroot.org>", "List-Help": "<mailto:buildroot-request@buildroot.org?subject=help>", "List-Subscribe": "<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>", "Cc": "James Hilliard <james.hilliard1@gmail.com>,\n Thomas Petazzoni <thomas.petazzoni@bootlin.com>,\n Vincent Cruz <mooz@blockos.org>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "buildroot-bounces@buildroot.org", "Sender": "\"buildroot\" <buildroot-bounces@buildroot.org>" }, "content": "Lightweight finite state machine implementation in Python.\n\nhttps://github.com/pytransitions/transitions\n\nSigned-off-by: Vincent Cruz <mooz@blockos.org>\n---\nTested with Buildroot gitlab CI:\n https://gitlab.com/v_cz/buildroot/-/pipelines/2452239577\n\n DEVELOPERS | 3 ++\n package/Config.in | 1 +\n package/python-transitions/Config.in | 7 ++++\n .../python-transitions.hash | 5 +++\n .../python-transitions/python-transitions.mk | 15 ++++++++\n .../package/sample_python_transitions.py | 34 +++++++++++++++++++\n .../tests/package/test_python_transitions.py | 28 +++++++++++++++\n 7 files changed, 93 insertions(+)\n create mode 100644 package/python-transitions/Config.in\n create mode 100644 package/python-transitions/python-transitions.hash\n create mode 100644 package/python-transitions/python-transitions.mk\n create mode 100644 support/testing/tests/package/sample_python_transitions.py\n create mode 100644 support/testing/tests/package/test_python_transitions.py", "diff": "diff --git a/DEVELOPERS b/DEVELOPERS\nindex 1ad64e876e..b20cf7d93c 100644\n--- a/DEVELOPERS\n+++ b/DEVELOPERS\n@@ -3361,6 +3361,9 @@ F:\tpackage/rtl8822cs/\n N:\tVictor Huesca <victor.huesca@bootlin.com>\n F:\tsupport/testing/tests/core/test_root_password.py\n \n+N:\tVincent Cruz <mooz@blockos.org>\n+F:\tpackage/python-transitions/\n+\n N:\tVincent Jardin <vjardin@free.fr>\n F:\tboard/nvidia/bf3/\n F:\tconfigs/nvidia_bf3_defconfig\ndiff --git a/package/Config.in b/package/Config.in\nindex 71501cea53..3aa13ec75d 100644\n--- a/package/Config.in\n+++ b/package/Config.in\n@@ -1463,6 +1463,7 @@ menu \"External python modules\"\n \tsource \"package/python-tqdm/Config.in\"\n \tsource \"package/python-trafaret/Config.in\"\n \tsource \"package/python-traitlets/Config.in\"\n+\tsource \"package/python-transitions/Config.in\"\n \tsource \"package/python-treq/Config.in\"\n \tsource \"package/python-trio/Config.in\"\n \tsource \"package/python-trio-websocket/Config.in\"\ndiff --git a/package/python-transitions/Config.in b/package/python-transitions/Config.in\nnew file mode 100644\nindex 0000000000..4289b446f5\n--- /dev/null\n+++ b/package/python-transitions/Config.in\n@@ -0,0 +1,7 @@\n+config BR2_PACKAGE_PYTHON_TRANSITIONS\n+\tbool \"python-transitions\"\n+\tselect BR2_PACKAGE_PYTHON_SIX # runtime\n+\thelp\n+\t Lightweight finite state machine implementation in Python.\n+\n+\t https://github.com/pytransitions/transitions\ndiff --git a/package/python-transitions/python-transitions.hash b/package/python-transitions/python-transitions.hash\nnew file mode 100644\nindex 0000000000..a37cc44928\n--- /dev/null\n+++ b/package/python-transitions/python-transitions.hash\n@@ -0,0 +1,5 @@\n+# From https://pypi.org/pypi/transitions/0.9.3/json\n+sha256 881fb75bb1654ed55d86060bb067f2c716f8e155f57bb73fd444e53713aafec8 transitions-0.9.3.tar.gz\n+# Locally computed\n+sha256 fd7115fc5517d1d2d042a80a33d92033532236830a9c25866112299fe33c036b transitions-0.9.3/LICENSE\n+sha256 4802901f4f7cf09d7df279c021ace21ffe4513d782eaa3fce96a7375380c9cf8 transitions-0.9.3/PKG-INFO\ndiff --git a/package/python-transitions/python-transitions.mk b/package/python-transitions/python-transitions.mk\nnew file mode 100644\nindex 0000000000..8189cebcbd\n--- /dev/null\n+++ b/package/python-transitions/python-transitions.mk\n@@ -0,0 +1,15 @@\n+################################################################################\n+#\n+# python-transitions\n+#\n+################################################################################\n+\n+PYTHON_TRANSITIONS_VERSION = 0.9.3\n+PYTHON_TRANSITIONS_SOURCE = transitions-$(PYTHON_TRANSITIONS_VERSION).tar.gz\n+PYTHON_TRANSITIONS_SITE = https://files.pythonhosted.org/packages/source/t/transitions\n+PYTHON_TRANSITIONS_SETUP_TYPE = setuptools\n+\n+PYTHON_TRANSITIONS_LICENSE = MIT\n+PYTHON_TRANSITIONS_LICENSE_FILES = LICENSE\n+\n+$(eval $(python-package))\ndiff --git a/support/testing/tests/package/sample_python_transitions.py b/support/testing/tests/package/sample_python_transitions.py\nnew file mode 100644\nindex 0000000000..ca33309998\n--- /dev/null\n+++ b/support/testing/tests/package/sample_python_transitions.py\n@@ -0,0 +1,34 @@\n+# test from https://github.com/pytransitions/transitions/blob/master/tests/test_nesting.py\n+\n+from transitions.extensions import HierarchicalMachine as Machine\n+\n+states = ['standing', 'walking', {'name': 'caffeinated', 'children': ['dithering', 'running']}]\n+transitions = [\n+ ['walk', 'standing', 'walking'],\n+ ['stop', 'walking', 'standing'],\n+ ['drink', 'caffeinated_dithering', '='],\n+ ['drink', 'caffeinated', 'caffeinated_dithering'],\n+ ['drink', '*', 'caffeinated'],\n+ ['walk', 'caffeinated', 'caffeinated_running'],\n+ ['relax', 'caffeinated', 'standing']\n+]\n+\n+machine = Machine(states=states, transitions=transitions, initial='standing', ignore_invalid_triggers=True)\n+\n+machine.walk() # Walking now\n+machine.stop() # let's stop for a moment\n+machine.drink() # coffee time\n+machine.state\n+print(machine.state)\n+machine.drink() # again!\n+print(machine.state)\n+machine.drink() # and again!\n+print(machine.state)\n+machine.walk() # we have to go faster\n+print(machine.state)\n+machine.stop() # can't stop moving!\n+machine.state\n+print(machine.state)\n+machine.relax() # leave nested state\n+machine.state # phew, what a ride\n+print(machine.state)\ndiff --git a/support/testing/tests/package/test_python_transitions.py b/support/testing/tests/package/test_python_transitions.py\nnew file mode 100644\nindex 0000000000..a22ceb4afd\n--- /dev/null\n+++ b/support/testing/tests/package/test_python_transitions.py\n@@ -0,0 +1,28 @@\n+import os\n+from tests.package.test_python import TestPythonPackageBase\n+\n+\n+class TestPythonTransitions(TestPythonPackageBase):\n+ __test__ = True\n+ config = TestPythonPackageBase.config + \\\n+ \"\"\"\n+ BR2_PACKAGE_PYTHON3=y\n+ BR2_PACKAGE_PYTHON_TRANSITIONS=y\n+ \"\"\"\n+ sample_scripts = [\"tests/package/sample_python_transitions.py\"]\n+\n+ def test_run(self):\n+ self.login()\n+ self.check_sample_scripts_exist()\n+\n+ cmd = \"%s %s\" % (self.interpreter, os.path.basename(self.sample_scripts[0]))\n+ output, exit_code = self.emulator.run(cmd, timeout=15)\n+ self.assertEqual(exit_code, 0)\n+ self.assertEqual(output, [\n+ 'caffeinated',\n+ 'caffeinated_dithering',\n+ 'caffeinated_dithering',\n+ 'caffeinated_running',\n+ 'caffeinated_running',\n+ 'standing'\n+ ])\n", "prefixes": [] }