Accepting request 1146665 from devel:languages:python:flask
- Update to 1.3.0: * Fixing werkzeug 3 deprecated version import. Import is replaced by new style version check with importlib (#573) [Ryu-CZ] * Fixing flask 3.0+ compatibility of `ModuleNotFoundError: No module named 'flask.scaffold'` Import error. (#567) [Ryu-CZ] * Fix wrong status code and message on responses when handling `HTTPExceptions` (#569) [lkk7] * Python 3.12 support. [foarsitter] * Fixing test as HTTP Header MIMEAccept expects quality-factor number in form of `X.X` (#547) [chipndell] * Drop support for python 3.7 - Drop patch support-new-werkzeug.patch, now included upstream. OBS-URL: https://build.opensuse.org/request/show/1146665 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flask-restx?expand=0&rev=11
This commit is contained in:
commit
cb54ad4af1
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1bdff3a93a4f77524cd8542be192bb6e42cf9c89ed90f3a4aa935fd20680cdee
|
||||
size 398890
|
3
1.3.0.tar.gz
Normal file
3
1.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5bb8ca68ebd6f8ec9bc7889c2e6718f5c2f1fdae5622c02ee48a24d33f6b5405
|
||||
size 400119
|
@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 14 23:42:09 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 1.3.0:
|
||||
* Fixing werkzeug 3 deprecated version import. Import is replaced by new
|
||||
style version check with importlib (#573) [Ryu-CZ]
|
||||
* Fixing flask 3.0+ compatibility of `ModuleNotFoundError: No module
|
||||
named 'flask.scaffold'` Import error. (#567) [Ryu-CZ]
|
||||
* Fix wrong status code and message on responses when handling
|
||||
`HTTPExceptions` (#569) [lkk7]
|
||||
* Python 3.12 support. [foarsitter]
|
||||
* Fixing test as HTTP Header MIMEAccept expects quality-factor number
|
||||
in form of `X.X` (#547) [chipndell]
|
||||
* Drop support for python 3.7
|
||||
- Drop patch support-new-werkzeug.patch, now included upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 28 04:44:48 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-flask-restx
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,21 +17,19 @@
|
||||
|
||||
|
||||
Name: python-flask-restx
|
||||
Version: 1.1.0
|
||||
Version: 1.3.0
|
||||
Release: 0
|
||||
Summary: Framework for fast, easy and documented API development with Flask
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/python-restx/flask-restx
|
||||
Source: https://github.com/python-restx/flask-restx/archive/%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#python-restx/flask-restx#552
|
||||
Patch0: support-new-werkzeug.patch
|
||||
BuildRequires: %{python_module Faker}
|
||||
BuildRequires: %{python_module Flask}
|
||||
BuildRequires: %{python_module Werkzeug}
|
||||
BuildRequires: %{python_module aniso8601}
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module blinker}
|
||||
BuildRequires: %{python_module jsonschema}
|
||||
BuildRequires: %{python_module importlib_resources}
|
||||
BuildRequires: %{python_module jsonschema}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-benchmark}
|
||||
@ -48,6 +46,7 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-Flask
|
||||
Requires: python-Werkzeug
|
||||
Requires: python-aniso8601
|
||||
Requires: python-importlib_resources
|
||||
Requires: python-jsonschema
|
||||
Requires: python-pytz
|
||||
BuildArch: noarch
|
||||
|
@ -1,56 +0,0 @@
|
||||
From 4f7588da7c98b5d82dcd52963a2565b3cefb8b55 Mon Sep 17 00:00:00 2001
|
||||
From: Manan Bhavsar <mananbh9@live.com>
|
||||
Date: Sat, 8 Jul 2023 20:53:22 -0400
|
||||
Subject: [PATCH] issue-547 http header quality factor number
|
||||
|
||||
---
|
||||
CHANGELOG.rst | 12 ++++++++++++
|
||||
tests/legacy/test_api_legacy.py | 5 +++--
|
||||
2 files changed, 15 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
|
||||
index a314e62d..dbd17bec 100644
|
||||
--- a/CHANGELOG.rst
|
||||
+++ b/CHANGELOG.rst
|
||||
@@ -25,6 +25,18 @@ Releases prior to 0.3.0 were “best effort” filled out, but are missing
|
||||
some info. If you see your contribution missing info, please open a PR
|
||||
on the Changelog!
|
||||
|
||||
+.. _section-1.1.1:
|
||||
+1.1.0
|
||||
+-----
|
||||
+.. _bug_fixes-1.1.1
|
||||
+Bug Fixes
|
||||
+~~~~~~~~~
|
||||
+
|
||||
+::
|
||||
+
|
||||
+ * Fixing test as HTTP Header MIMEAccept expects quality-factor number in form of `X.X` (#547) [chipndell]
|
||||
+
|
||||
+
|
||||
.. _section-1.1.0:
|
||||
1.1.0
|
||||
-----
|
||||
diff --git a/tests/legacy/test_api_legacy.py b/tests/legacy/test_api_legacy.py
|
||||
index a27a454a..b15a6027 100644
|
||||
--- a/tests/legacy/test_api_legacy.py
|
||||
+++ b/tests/legacy/test_api_legacy.py
|
||||
@@ -108,7 +108,7 @@ def test_media_types_method(self, app, mocker):
|
||||
api = restx.Api(app)
|
||||
|
||||
with app.test_request_context(
|
||||
- "/foo", headers={"Accept": "application/xml; q=.5"}
|
||||
+ "/foo", headers={"Accept": "application/xml; q=0.5"}
|
||||
):
|
||||
assert api.mediatypes_method()(mocker.Mock()) == [
|
||||
"application/xml",
|
||||
@@ -119,7 +119,8 @@ def test_media_types_q(self, app):
|
||||
api = restx.Api(app)
|
||||
|
||||
with app.test_request_context(
|
||||
- "/foo", headers={"Accept": "application/json; q=1, application/xml; q=.5"}
|
||||
+ "/foo",
|
||||
+ headers={"Accept": "application/json; q=1.0, application/xml; q=0.5"},
|
||||
):
|
||||
assert api.mediatypes() == ["application/json", "application/xml"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user