forked from pool/python-Flask
Accepting request 791758 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/791758 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask?expand=0&rev=24
This commit is contained in:
commit
7b20e10b53
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:13f9f196f330c7c2c5d7a5cf91af894110ca0215ac051b5844701f2bfd934d52
|
||||
size 625458
|
3
Flask-1.1.2.tar.gz
Normal file
3
Flask-1.1.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4efa1ae2d7c9865af48986de8aeb8504bf32c7f3d6fdc9353d34b21f4b127060
|
||||
size 637516
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 3 17:31:16 UTC 2020 - Petr Cervinka <petr@cervinka.net>
|
||||
|
||||
- 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 <adrian.glaubitz@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,42 +0,0 @@
|
||||
From c367a86cc5be70da4928b276d0218f98df6e854d Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fernanda=20Guimar=C3=A3es?= <fernandaguimaraes28@gmail.com>
|
||||
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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user