Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flask-restx for openSUSE:Factory checked in at 2023-07-28 22:20:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-flask-restx (Old) and /work/SRC/openSUSE:Factory/.python-flask-restx.new.32662 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flask-restx" Fri Jul 28 22:20:27 2023 rev:10 rq:1101124 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-flask-restx/python-flask-restx.changes 2022-10-08 01:23:22.049974040 +0200 +++ /work/SRC/openSUSE:Factory/.python-flask-restx.new.32662/python-flask-restx.changes 2023-07-28 22:20:28.893241482 +0200 @@ -1,0 +2,19 @@ +Fri Jul 28 04:44:48 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 1.1.0: + * Update Swagger-UI to latest version to fix several security + vulnerabiltiies. + * Fix minor bug introduced in 1.0.5 that changed the behaviour of how + flask-restx propagates exceptions. (#512) + * Add support for Python 3.11 (requires update to invoke ^2.0.0) + * Fix compatibility with upcoming release of Flask 2.3+. (#485) + * Fix compatibility issue with werkzeug 2.1.0 (#423) + * Drop support for python <3.7 +- Drop patches merged_pr_463.patch, redirect.patch and werkzeug.patch. +- Add patch support-new-werkzeug.patch: + * Support Werkzeug 2.35. +- Switch to pyproject macros. +- Stop using greedy globs in %files. +- Remove Python 2 leftovers. + +------------------------------------------------------------------- Old: ---- 0.5.1.tar.gz merged_pr_463.patch redirect.patch werkzeug.patch New: ---- 1.1.0.tar.gz support-new-werkzeug.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-flask-restx.spec ++++++ --- /var/tmp/diff_new_pack.e5BFH3/_old 2023-07-28 22:20:29.661246150 +0200 +++ /var/tmp/diff_new_pack.e5BFH3/_new 2023-07-28 22:20:29.665246175 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-flask-restx # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,46 +16,40 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 Name: python-flask-restx -Version: 0.5.1 +Version: 1.1.0 Release: 0 Summary: Framework for fast, easy and documented API development with Flask License: BSD-3-Clause -Group: Development/Languages/Python -#PATCH-FIX-UPSTREAM https://github.com/python-restx/flask-restx/pull/423 Handle change to Werkzeug 2.1.0 change to Request.get_json(). -Patch0: werkzeug.patch -#PATCH-FIX-UPSTREAM https://github.com/python-restx/flask-restx/pull/427 Handle Werkzeug 2.1.0 change to Response.autocorrect_location_header. -Patch1: redirect.patch -#PATCH-FIX-UPSTREAM https://github.com/python-restx/flask-restx/pull/463 Fix missing parse_rule method -Patch2: merged_pr_463.patch 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 jsonschema} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest-flask} BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} +BuildRequires: %{python_module q} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tzlocal} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with python2} -BuildRequires: python2-enum34 -%endif Requires: python-Flask +Requires: python-Werkzeug Requires: python-aniso8601 Requires: python-jsonschema Requires: python-pytz -%ifpython2 -Requires: python2-enum34 -%endif BuildArch: noarch %python_subpackages @@ -67,23 +61,23 @@ its documentation properly using Swagger. %prep -%setup -q -n flask-restx-%{version} -%autopatch -p1 +%autosetup -p1 -n flask-restx-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# gh#python-restx/flask-restx#411 for LoggingTest.test_override_app_level -%pytest -k 'not (URLTest or EmailTest or test_handle_non_api_error or test_override_app_level)' +# URLTest and EmailTest require network +%pytest -k 'not (URLTest or EmailTest)' %files %{python_files} %doc README.rst CONTRIBUTING.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/flask_restx +%{python_sitelib}/flask_restx-%{version}.dist-info %changelog ++++++ 0.5.1.tar.gz -> 1.1.0.tar.gz ++++++ ++++ 5070 lines of diff (skipped) ++++++ support-new-werkzeug.patch ++++++ >From 4f7588da7c98b5d82dcd52963a2565b3cefb8b55 Mon Sep 17 00:00:00 2001 From: Manan Bhavsar <manan...@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"]