From: Markus Heidelberg via ptxdist <ptxdist@pengutronix.de>
To: <ptxdist@pengutronix.de>
Cc: Markus Heidelberg <m.heidelberg@cab.de>
Subject: [ptxdist] [PATCH 5/5] python3-statemachine: new package
Date: Mon, 1 Dec 2025 18:43:47 +0100 [thread overview]
Message-ID: <20251201174347.129488-6-m.heidelberg@cab.de> (raw)
In-Reply-To: <20251201174347.129488-1-m.heidelberg@cab.de>
State machine diagrams can be drawn via optional pydot package.
Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de>
---
rules/python3-statemachine.in | 10 ++++++
rules/python3-statemachine.make | 55 +++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
create mode 100644 rules/python3-statemachine.in
create mode 100644 rules/python3-statemachine.make
diff --git a/rules/python3-statemachine.in b/rules/python3-statemachine.in
new file mode 100644
index 000000000..c4d62d041
--- /dev/null
+++ b/rules/python3-statemachine.in
@@ -0,0 +1,10 @@
+## SECTION=python3
+
+config PYTHON3_STATEMACHINE
+ tristate
+ select HOST_PYTHON3_HATCHLING
+ select HOST_PYTHON3_PYBUILD
+ select PYTHON3
+ prompt "statemachine"
+ help
+ Python finite-state machines made easy.
diff --git a/rules/python3-statemachine.make b/rules/python3-statemachine.make
new file mode 100644
index 000000000..adbcfd966
--- /dev/null
+++ b/rules/python3-statemachine.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by Markus Heidelberg <m.heidelberg@cab.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_STATEMACHINE) += python3-statemachine
+
+#
+# Paths and names
+#
+PYTHON3_STATEMACHINE_VERSION := 2.5.0
+PYTHON3_STATEMACHINE_MD5 := 04598d34159bedc13a4998e6a045f0d0
+PYTHON3_STATEMACHINE := python_statemachine-$(PYTHON3_STATEMACHINE_VERSION)
+PYTHON3_STATEMACHINE_SUFFIX := tar.gz
+PYTHON3_STATEMACHINE_URL := $(call ptx/mirror-pypi, python-statemachine, $(PYTHON3_STATEMACHINE).$(PYTHON3_STATEMACHINE_SUFFIX))
+PYTHON3_STATEMACHINE_SOURCE := $(SRCDIR)/$(PYTHON3_STATEMACHINE).$(PYTHON3_STATEMACHINE_SUFFIX)
+PYTHON3_STATEMACHINE_DIR := $(BUILDDIR)/$(PYTHON3_STATEMACHINE)
+PYTHON3_STATEMACHINE_LICENSE := MIT
+PYTHON3_STATEMACHINE_LICENSE_FILES := \
+ file://pyproject.toml;startline=7;endline=7;md5=623437efa8fb3f31009255ea0c4227b4 \
+ file://LICENSE;md5=18e79b33e7b579ebf7950c6d066248ff
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_STATEMACHINE_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-statemachine.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-statemachine)
+ @$(call install_fixup, python3-statemachine,PRIORITY,optional)
+ @$(call install_fixup, python3-statemachine,SECTION,base)
+ @$(call install_fixup, python3-statemachine,AUTHOR,"Markus Heidelberg <m.heidelberg@cab.de>")
+ @$(call install_fixup, python3-statemachine,DESCRIPTION,missing)
+
+ @$(call install_glob, python3-statemachine, 0, 0, -, \
+ $(PYTHON3_SITEPACKAGES),, *.py)
+
+ @$(call install_finish, python3-statemachine)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.43.0
prev parent reply other threads:[~2025-12-01 17:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 17:43 [ptxdist] [PATCH 0/5] new python3-statemachine package + new/updated dependencies Markus Heidelberg via ptxdist
2025-12-01 17:43 ` [ptxdist] [PATCH 1/5] python3-pyparsing: version bump 2.4.7 -> 3.2.5 Markus Heidelberg via ptxdist
2025-12-01 17:43 ` [ptxdist] [PATCH 2/5] python3-packaging: version bump 23.1 -> 25.0 Markus Heidelberg via ptxdist
2025-12-01 17:43 ` [ptxdist] [PATCH 3/5] python3-setuptools: version bump 71.1.0 -> 80.9.0 Markus Heidelberg via ptxdist
2025-12-01 17:43 ` [ptxdist] [PATCH 4/5] python3-pydot: new package Markus Heidelberg via ptxdist
2025-12-01 17:43 ` Markus Heidelberg via ptxdist [this message]
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=20251201174347.129488-6-m.heidelberg@cab.de \
--to=ptxdist@pengutronix.de \
--cc=m.heidelberg@cab.de \
/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