From a436443bea27bcaa5f6dfa616644bd0bc1f7bbf3 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 27 May 2021 00:32:43 +0300 Subject: python3-flask: Upgrade 1.1.2 -> 2.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upgrade to release 2.0.1: - Re-add the filename parameter in send_from_directory. The filename parameter has been renamed to path, the old name is deprecated. - Mark top-level names as exported so type checking understands imports in user projects. - Fix type annotation for g and inform mypy that it is a namespace object that has arbitrary attributes. - Fix some types that weren’t available in Python 3.6.0. - Improve typing for send_file, send_from_directory, and get_send_file_max_age. - Show an error when a blueprint name contains a dot. The . has special meaning, it is used to separate (nested) blueprint names and the endpoint name. - Combine URL prefixes when nesting blueprints that were created with a url_prefix value. - Roll back a change to the order that URL matching was done. The URL is again matched after the session is loaded, so the session is available in custom URL converters. - Re-add deprecated Config.from_json, which was accidentally removed early. - Improve typing for some functions using Callable in their type signatures, focusing on decorator factories. - Nested blueprints are registered with their dotted name. This allows different blueprints with the same name to be nested at different locations. - register_blueprint takes a name option to change the (pre-dotted) name the blueprint is registered with. This allows the same blueprint to be registered multiple times with unique names for url_for. Registering the same blueprint with the same name multiple times is deprecated. #1091 - Improve typing for stream_with_context. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../recipes-devtools/python/python3-flask_2.0.1.bb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-flask_2.0.1.bb (limited to 'meta-python/recipes-devtools/python/python3-flask_2.0.1.bb') diff --git a/meta-python/recipes-devtools/python/python3-flask_2.0.1.bb b/meta-python/recipes-devtools/python/python3-flask_2.0.1.bb new file mode 100644 index 0000000000..2c94f82daa --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-flask_2.0.1.bb @@ -0,0 +1,17 @@ +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.rst;md5=ffeffa59c90c9c4a033c7574f8f3fb75" + +SRC_URI[sha256sum] = "1c4c257b1892aec1398784c63791cbaa43062f1f7aeb555c4da961b20ee68f55" + +PYPI_PACKAGE = "Flask" + +inherit pypi setuptools3 + +CLEANBROKEN = "1" + +RDEPENDS_${PN} = "${PYTHON_PN}-werkzeug ${PYTHON_PN}-jinja2 ${PYTHON_PN}-itsdangerous ${PYTHON_PN}-click" -- cgit v1.2.3-54-g00ecf