From f232e85ffcc5a45fa0a94651783ea47f47dfa9c7cfbd45a384e0b43ffbbfb779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 6 Apr 2020 12:01:42 +0000 Subject: [PATCH] Accepting request 791247 from home:czerw:branches:devel:languages:python:flask - Update to 1.1.2: * Work around an issue when running the flask command with an external debugger on Windows. :issue:`3297` * The static route will not catch all URLs if the Flask static_folder argument ends with a slash. :issue:`3452` - Remove python38-exception-test.patch OBS-URL: https://build.opensuse.org/request/show/791247 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask?expand=0&rev=11 --- Flask-1.1.1.tar.gz | 3 --- Flask-1.1.2.tar.gz | 3 +++ python-Flask.changes | 10 +++++++++ python-Flask.spec | 6 ++--- python38-exception-test.patch | 42 ----------------------------------- 5 files changed, 15 insertions(+), 49 deletions(-) delete mode 100644 Flask-1.1.1.tar.gz create mode 100644 Flask-1.1.2.tar.gz delete mode 100644 python38-exception-test.patch diff --git a/Flask-1.1.1.tar.gz b/Flask-1.1.1.tar.gz deleted file mode 100644 index d45cffe..0000000 --- a/Flask-1.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:13f9f196f330c7c2c5d7a5cf91af894110ca0215ac051b5844701f2bfd934d52 -size 625458 diff --git a/Flask-1.1.2.tar.gz b/Flask-1.1.2.tar.gz new file mode 100644 index 0000000..a8b004c --- /dev/null +++ b/Flask-1.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4efa1ae2d7c9865af48986de8aeb8504bf32c7f3d6fdc9353d34b21f4b127060 +size 637516 diff --git a/python-Flask.changes b/python-Flask.changes index 8c59c2a..ee8c1cf 100644 --- a/python-Flask.changes +++ b/python-Flask.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 3 17:31:16 UTC 2020 - Petr Cervinka + +- Update to 1.1.2: + * Work around an issue when running the flask command with an external + debugger on Windows. :issue:`3297` + * The static route will not catch all URLs if the Flask static_folder + argument ends with a slash. :issue:`3452` +- Remove python38-exception-test.patch + ------------------------------------------------------------------- Mon Dec 2 13:51:57 UTC 2019 - John Paul Adrian Glaubitz diff --git a/python-Flask.spec b/python-Flask.spec index a12ba64..78b2ea2 100644 --- a/python-Flask.spec +++ b/python-Flask.spec @@ -1,7 +1,7 @@ # # spec file for package python-Flask # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,14 +19,13 @@ %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Flask -Version: 1.1.1 +Version: 1.1.2 Release: 0 Summary: A microframework based on Werkzeug, Jinja2 and good intentions License: BSD-3-Clause Group: Development/Languages/Python URL: http://github.com/mitsuhiko/flask/ Source: https://files.pythonhosted.org/packages/source/F/Flask/Flask-%{version}.tar.gz -Patch0: python38-exception-test.patch BuildRequires: %{python_module Jinja2 >= 2.4} BuildRequires: %{python_module Werkzeug >= 0.15} BuildRequires: %{python_module click >= 5.1} @@ -64,7 +63,6 @@ reference for python-Flask. %prep %setup -q -n Flask-%{version} -%autopatch -p1 %build %python_build diff --git a/python38-exception-test.patch b/python38-exception-test.patch deleted file mode 100644 index 84bb67c..0000000 --- a/python38-exception-test.patch +++ /dev/null @@ -1,42 +0,0 @@ -From c367a86cc5be70da4928b276d0218f98df6e854d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Fernanda=20Guimar=C3=A3es?= -Date: Mon, 28 Oct 2019 21:37:25 -0300 -Subject: [PATCH] Test test_send_from_directory_bad_request no longer fails in - Python 3.8. - ---- - tests/test_helpers.py | 10 ++++++++-- - 1 file changed, 8 insertions(+), 2 deletions(-) - -diff --git a/tests/test_helpers.py b/tests/test_helpers.py -index 78a562213..21735af12 100644 ---- a/tests/test_helpers.py -+++ b/tests/test_helpers.py -@@ -11,6 +11,7 @@ - import datetime - import io - import os -+import sys - import uuid - - import pytest -@@ -780,12 +781,17 @@ def test_send_from_directory_pathlike(self, app, req_ctx): - assert rv.data.strip() == b"Hello Subdomain" - rv.close() - -- def test_send_from_directory_bad_request(self, app, req_ctx): -+ def test_send_from_directory_null_character(self, app, req_ctx): - app.root_path = os.path.join( - os.path.dirname(__file__), "test_apps", "subdomaintestmodule" - ) - -- with pytest.raises(BadRequest): -+ if sys.version_info >= (3, 8): -+ exception = NotFound -+ else: -+ exception = BadRequest -+ -+ with pytest.raises(exception): - flask.send_from_directory("static", "bad\x00") - -