summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-flask_3.1.0.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2024-11-18 17:29:39 +0800
committerKhem Raj <raj.khem@gmail.com>2024-11-19 16:59:13 -0800
commite27fbcd56bd6f734b6780dcef97ab2d795956d87 (patch)
tree5cec4996283c1f85e9af4800cfa9e94b3534813c /meta-python/recipes-devtools/python/python3-flask_3.1.0.bb
parentc5b7601e0b15d4b970c1e9f7b1fa4de784930dd9 (diff)
downloadmeta-openembedded-e27fbcd56bd6f734b6780dcef97ab2d795956d87.tar.gz
python3-flask: upgrade 3.0.3 -> 3.1.0
Changelog: ============== - Drop support for Python 3.8. - Update minimum dependency versions to latest feature releases. Werkzeug >= 3.1, ItsDangerous >= 2.2, Blinker >= 1.9. - Provide a configuration option to control automatic option responses. - Flask.open_resource/open_instance_resource and Blueprint.open_resource take an encoding parameter to use when opening in text mode. It defaults to utf-8. - Request.max_content_length can be customized per-request instead of only through the MAX_CONTENT_LENGTH config. Added MAX_FORM_MEMORY_SIZE and MAX_FORM_PARTS config. Added documentation about resource limits to the security page. - Add support for the Partitioned cookie attribute (CHIPS), with the SESSION_COOKIE_PARTITIONED config. - -e path takes precedence over default .env and .flaskenv files. load_dotenv loads default files in addition to a path unless load_defaults=False is passed. - Support key rotation with the SECRET_KEY_FALLBACKS config, a list of old secret keys that can still be used for unsigning. Extensions will need to add support. - Fix how setting host_matching=True or subdomain_matching=False interacts with SERVER_NAME. Setting SERVER_NAME no longer restricts requests to only that domain. - Request.trusted_hosts is checked during routing, and can be set through the TRUSTED_HOSTS config. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-flask_3.1.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-flask_3.1.0.bb38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-flask_3.1.0.bb b/meta-python/recipes-devtools/python/python3-flask_3.1.0.bb
new file mode 100644
index 0000000000..f1b18b075c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-flask_3.1.0.bb
@@ -0,0 +1,38 @@
1SUMMARY = "A microframework based on Werkzeug, Jinja2 and good intentions"
2DESCRIPTION = "\
3Flask is a microframework for Python based on Werkzeug, Jinja 2 and good \
4intentions. And before you ask: It’s BSD licensed!"
5HOMEPAGE = "https://github.com/mitsuhiko/flask/"
6LICENSE = "BSD-3-Clause"
7LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ffeffa59c90c9c4a033c7574f8f3fb75"
8
9SRC_URI[sha256sum] = "5f873c5184c897c8d9d1b05df1e3d01b14910ce69607a117bd3277098a5836ac"
10
11SRC_URI += " \
12 file://run-ptest \
13"
14
15UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/Flask"
16UPSTREAM_CHECK_REGEX = "/Flask/(?P<pver>(\d+[\.\-_]*)+)"
17
18inherit pypi python_setuptools_build_meta ptest
19
20CLEANBROKEN = "1"
21
22RDEPENDS:${PN} = " \
23 python3-blinker \
24 python3-click \
25 python3-itsdangerous \
26 python3-jinja2 \
27 python3-profile \
28 python3-werkzeug \
29"
30
31RDEPENDS:${PN}-ptest += "\
32 python3-pytest \
33 python3-unittest-automake-output \
34"
35do_install_ptest() {
36 install -d ${D}${PTEST_PATH}/tests
37 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
38}