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-flask: new package
Date: Fri, 23 May 2025 13:49:51 +0200 [thread overview]
Message-ID: <20250523114951.1747739-6-m.heidelberg@cab.de> (raw)
In-Reply-To: <20250523114951.1747739-1-m.heidelberg@cab.de>
A more recent version 3.1.1 exists, but needs flit-core >= 3.11.0
to support the changed 'license' keyword type in pyproject.toml
(see PEP 639) and avoid this error in compile stage:
flit_core.config.ConfigError: license field should be <class 'dict'>, not <class 'str'>
Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de>
---
rules/python3-flask.in | 17 ++++++++++++
rules/python3-flask.make | 58 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 75 insertions(+)
create mode 100644 rules/python3-flask.in
create mode 100644 rules/python3-flask.make
diff --git a/rules/python3-flask.in b/rules/python3-flask.in
new file mode 100644
index 000000000..809f36d56
--- /dev/null
+++ b/rules/python3-flask.in
@@ -0,0 +1,17 @@
+## SECTION=python3
+
+config PYTHON3_FLASK
+ tristate
+ select HOST_PYTHON3_PYBUILD
+ select HOST_PYTHON3_INSTALLER
+ select PYTHON3
+ select PYTHON3_BLINKER if RUNTIME
+ select PYTHON3_CLICK if RUNTIME
+ select PYTHON3_ITSDANGEROUS if RUNTIME
+ select PYTHON3_JINJA2 if RUNTIME
+ select PYTHON3_MARKUPSAFE if RUNTIME
+ select PYTHON3_SSL if RUNTIME
+ select PYTHON3_WERKZEUG if RUNTIME
+ prompt "flask"
+ help
+ Flask is a lightweight WSGI web application framework.
diff --git a/rules/python3-flask.make b/rules/python3-flask.make
new file mode 100644
index 000000000..cb859b44b
--- /dev/null
+++ b/rules/python3-flask.make
@@ -0,0 +1,58 @@
+# -*-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_FLASK) += python3-flask
+
+#
+# Paths and names
+#
+PYTHON3_FLASK_VERSION := 3.1.0
+PYTHON3_FLASK_MD5 := c95d81666442bf04f7de7db7edbe2aff
+PYTHON3_FLASK := flask-$(PYTHON3_FLASK_VERSION)
+PYTHON3_FLASK_SUFFIX := tar.gz
+PYTHON3_FLASK_URL := $(call ptx/mirror-pypi, flask, $(PYTHON3_FLASK).$(PYTHON3_FLASK_SUFFIX))
+PYTHON3_FLASK_SOURCE := $(SRCDIR)/$(PYTHON3_FLASK).$(PYTHON3_FLASK_SUFFIX)
+PYTHON3_FLASK_DIR := $(BUILDDIR)/$(PYTHON3_FLASK)
+PYTHON3_FLASK_LICENSE := BSD-3-Clause
+PYTHON3_FLASK_LICENSE_FILES := \
+ file://docs/license.rst;md5=9c09fd3983d581cb05598a19742ff5df \
+ file://pyproject.toml;startline=6;endline=6;md5=b5e378dbc689d60085f38e2fc52fc318 \
+ file://LICENSE.txt;md5=ffeffa59c90c9c4a033c7574f8f3fb75
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_FLASK_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-flask.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-flask)
+ @$(call install_fixup, python3-flask,PRIORITY,optional)
+ @$(call install_fixup, python3-flask,SECTION,base)
+ @$(call install_fixup, python3-flask,AUTHOR,"Markus Heidelberg <m.heidelberg@cab.de>")
+ @$(call install_fixup, python3-flask,DESCRIPTION,missing)
+
+ @$(call install_glob, python3-flask, 0, 0, -, \
+ $(PYTHON3_SITEPACKAGES),, *.py)
+
+ @$(call install_copy, python3-flask, 0, 0, 0755, -, /usr/bin/flask)
+
+ @$(call install_finish, python3-flask)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.43.0
next prev parent reply other threads:[~2025-05-23 11:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 11:49 [ptxdist] [PATCH 0/5] Add Flask package and missing dependencies Markus Heidelberg via ptxdist
2025-05-23 11:49 ` [ptxdist] [PATCH 1/5] python3-werkzeug: new package Markus Heidelberg via ptxdist
2025-06-03 10:38 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-05-23 11:49 ` [ptxdist] [PATCH 2/5] python3-click: " Markus Heidelberg via ptxdist
2025-06-03 10:38 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-05-23 11:49 ` [ptxdist] [PATCH 3/5] python3-blinker: " Markus Heidelberg via ptxdist
2025-06-03 10:38 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-05-23 11:49 ` [ptxdist] [PATCH 4/5] python3-itsdangerous: " Markus Heidelberg via ptxdist
2025-06-03 10:38 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-05-23 11:49 ` Markus Heidelberg via ptxdist [this message]
2025-06-03 10:39 ` [ptxdist] [APPLIED] python3-flask: " Michael Olbrich
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=20250523114951.1747739-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