diff --git a/Fix-incorrect-references-to-query-in-testing-doc.patch b/Fix-incorrect-references-to-query-in-testing-doc.patch deleted file mode 100644 index b9c3b07e85c01c4900e23e566f8c8b92ac368e01..0000000000000000000000000000000000000000 --- a/Fix-incorrect-references-to-query-in-testing-doc.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 5d31ce1031e8ca24dc908c319567a76110edd87e Mon Sep 17 00:00:00 2001 -From: Nick Kocharhook -Date: Wed, 1 Jun 2022 12:16:21 -0700 -Subject: [PATCH] Fix incorrect references to query in testing doc - -The [EnvironBuilder doc](https://werkzeug.palletsprojects.com/en/2.1.x/test/#werkzeug.test.EnvironBuilder) shows that the correct name for the keyword argument is `query_string`, not `query`. Using `query` results in an error. - -I've fixed the two places this appears in the testing doc. ---- - docs/testing.rst | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/docs/testing.rst b/docs/testing.rst -index 6f9d6ee1..8545bd39 100644 ---- a/docs/testing.rst -+++ b/docs/testing.rst -@@ -92,7 +92,7 @@ The ``client`` has methods that match the common HTTP request methods, - such as ``client.get()`` and ``client.post()``. They take many arguments - for building the request; you can find the full documentation in - :class:`~werkzeug.test.EnvironBuilder`. Typically you'll use ``path``, --``query``, ``headers``, and ``data`` or ``json``. -+``query_string``, ``headers``, and ``data`` or ``json``. - - To make a request, call the method the request should use with the path - to the route to test. A :class:`~werkzeug.test.TestResponse` is returned -@@ -108,9 +108,9 @@ provides ``response.text``, or use ``response.get_data(as_text=True)``. - assert b"

Hello, World!

" in response.data - - --Pass a dict ``query={"key": "value", ...}`` to set arguments in the --query string (after the ``?`` in the URL). Pass a dict ``headers={}`` --to set request headers. -+Pass a dict ``query_string={"key": "value", ...}`` to set arguments in -+the query string (after the ``?`` in the URL). Pass a dict -+``headers={}`` to set request headers. - - To send a request body in a POST or PUT request, pass a value to - ``data``. If raw bytes are passed, that exact body is used. Usually, --- -2.39.0.windows.2 - diff --git a/Fix-linting-error.patch b/Fix-linting-error.patch deleted file mode 100644 index 1448a0d59d2cac4a707248c2ae532910d3bc91b5..0000000000000000000000000000000000000000 --- a/Fix-linting-error.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 8ddbad9ccdc176b9d57a4aff0076c1c58c455318 Mon Sep 17 00:00:00 2001 -From: DailyDreaming -Date: Mon, 2 May 2022 07:46:09 -0700 -Subject: [PATCH] Fix linting error. - -Suppress mypy. - -Suppress mypy error. - -Suppress mypy error. ---- - src/flask/cli.py | 9 ++++++++- - 1 file changed, 8 insertions(+), 1 deletion(-) - -diff --git a/src/flask/cli.py b/src/flask/cli.py -index 36c4f1b6..efcc0f99 100644 ---- a/src/flask/cli.py -+++ b/src/flask/cli.py -@@ -9,6 +9,8 @@ from functools import update_wrapper - from operator import attrgetter - from threading import Lock - from threading import Thread -+from typing import Any -+from typing import TYPE_CHECKING - - import click - from werkzeug.utils import import_string -@@ -36,7 +38,12 @@ else: - # We technically have importlib.metadata on 3.8+, - # but the API changed in 3.10, so use the backport - # for consistency. -- import importlib_metadata as metadata # type: ignore -+ if TYPE_CHECKING: -+ metadata: Any -+ else: -+ # we do this to avoid a version dependent mypy error -+ # because importlib_metadata is not installed in python3.10+ -+ import importlib_metadata as metadata - - - class NoAppException(click.UsageError): --- -2.39.0.windows.2 - diff --git a/Flask-2.1.2.tar.gz b/Flask-2.1.2.tar.gz deleted file mode 100644 index aecf1434ef80e462fcdc569c9d16d01febeb7a91..0000000000000000000000000000000000000000 Binary files a/Flask-2.1.2.tar.gz and /dev/null differ diff --git a/Flask-2.2.5.tar.gz b/Flask-2.2.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c5bc58297e5d4b8797e6ab7f521f22f622d6de55 Binary files /dev/null and b/Flask-2.2.5.tar.gz differ diff --git a/python-flask.spec b/python-flask.spec index d6e5d2bdecc294adf5b4018791aa0d5ccd2ef032..9b8feff981e59a413da9109706579a5b671a2fb0 100644 --- a/python-flask.spec +++ b/python-flask.spec @@ -1,14 +1,11 @@ Name: python-flask -Version: 2.1.2 -Release: 3 +Version: 2.2.5 +Release: 1 Epoch: 1 Summary: A lightweight WSGI web application framework License: BSD-3-Clause URL: https://palletsprojects.com/p/flask/ -Source0: https://files.pythonhosted.org/packages/source/F/Flask/Flask-%{version}.tar.gz -Patch0: Fix-linting-error.patch -Patch1: Fix-incorrect-references-to-query-in-testing-doc.patch - +Source0: https://files.pythonhosted.org/packages/source/F/Flask/Flask-2.2.5.tar.gz BuildArch: noarch BuildRequires: python3-devel python3-setuptools python3-pytest python3-jinja2 python3-werkzeug python3-itsdangerous python3-click @@ -54,6 +51,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v || : %{python3_sitelib}/* %changelog +* Tue May 09 2023 wulei - 1:2.2.5-1 +- Update to 2.2.5 + * Fri Jan 13 2023 zhangliangpengkun - 1:2.1.2-3 - Fix incorrect references to query in testing doc