From e27fbcd56bd6f734b6780dcef97ab2d795956d87 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 18 Nov 2024 17:29:39 +0800 Subject: 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 Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-flask_3.0.3.bb | 38 ---------------------- .../recipes-devtools/python/python3-flask_3.1.0.bb | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 38 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-flask_3.0.3.bb create mode 100644 meta-python/recipes-devtools/python/python3-flask_3.1.0.bb (limited to 'meta-python/recipes-devtools') diff --git a/meta-python/recipes-devtools/python/python3-flask_3.0.3.bb b/meta-python/recipes-devtools/python/python3-flask_3.0.3.bb deleted file mode 100644 index de755dc294..0000000000 --- a/meta-python/recipes-devtools/python/python3-flask_3.0.3.bb +++ /dev/null @@ -1,38 +0,0 @@ -SUMMARY = "A microframework based on Werkzeug, Jinja2 and good intentions" -DESCRIPTION = "\ -Flask is a microframework for Python based on Werkzeug, Jinja 2 and good \ -intentions. And before you ask: It’s BSD licensed!" -HOMEPAGE = "https://github.com/mitsuhiko/flask/" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ffeffa59c90c9c4a033c7574f8f3fb75" - -SRC_URI[sha256sum] = "ceb27b0af3823ea2737928a4d99d125a06175b8512c445cbd9a9ce200ef76842" - -SRC_URI += " \ - file://run-ptest \ -" - -UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/Flask" -UPSTREAM_CHECK_REGEX = "/Flask/(?P(\d+[\.\-_]*)+)" - -inherit pypi python_setuptools_build_meta ptest - -CLEANBROKEN = "1" - -RDEPENDS:${PN} = " \ - python3-blinker \ - python3-click \ - python3-itsdangerous \ - python3-jinja2 \ - python3-profile \ - python3-werkzeug \ -" - -RDEPENDS:${PN}-ptest += "\ - python3-pytest \ - python3-unittest-automake-output \ -" -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} 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 @@ +SUMMARY = "A microframework based on Werkzeug, Jinja2 and good intentions" +DESCRIPTION = "\ +Flask is a microframework for Python based on Werkzeug, Jinja 2 and good \ +intentions. And before you ask: It’s BSD licensed!" +HOMEPAGE = "https://github.com/mitsuhiko/flask/" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ffeffa59c90c9c4a033c7574f8f3fb75" + +SRC_URI[sha256sum] = "5f873c5184c897c8d9d1b05df1e3d01b14910ce69607a117bd3277098a5836ac" + +SRC_URI += " \ + file://run-ptest \ +" + +UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/Flask" +UPSTREAM_CHECK_REGEX = "/Flask/(?P(\d+[\.\-_]*)+)" + +inherit pypi python_setuptools_build_meta ptest + +CLEANBROKEN = "1" + +RDEPENDS:${PN} = " \ + python3-blinker \ + python3-click \ + python3-itsdangerous \ + python3-jinja2 \ + python3-profile \ + python3-werkzeug \ +" + +RDEPENDS:${PN}-ptest += "\ + python3-pytest \ + python3-unittest-automake-output \ +" +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} -- cgit v1.2.3-54-g00ecf