diff --git a/0.3.8.tar.gz b/0.3.8.tar.gz deleted file mode 100644 index c6a8847911741339d097f1f3fe9311321edbd350..0000000000000000000000000000000000000000 Binary files a/0.3.8.tar.gz and /dev/null differ diff --git a/backport-Fix-testsuite-for-werkzeug-1.x.patch b/backport-Fix-testsuite-for-werkzeug-1.x.patch deleted file mode 100644 index 1eb64210e56306cc96120f505718eb9a0e661039..0000000000000000000000000000000000000000 --- a/backport-Fix-testsuite-for-werkzeug-1.x.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 7437d53e12b08099586546f999fbdf3cf080330b Mon Sep 17 00:00:00 2001 -From: Anthony Sottile -Date: Fri, 7 Feb 2020 09:59:23 -0800 -Subject: [PATCH] Fix testsuite for werkzeug 1.x - ---- - tests/test_api.py | 4 +++- - tests/test_reqparse.py | 4 ++-- - 2 files changed, 5 insertions(+), 3 deletions(-) - -diff --git a/tests/test_api.py b/tests/test_api.py -index f7f8e661..6795d362 100644 ---- a/tests/test_api.py -+++ b/tests/test_api.py -@@ -445,7 +445,9 @@ def test_handle_non_api_error(self): - - resp = app.get("/foo") - self.assertEquals(resp.status_code, 404) -- self.assertEquals('text/html', resp.headers['Content-Type']) -+ # in newer versions of werkzeug this is `text/html; charset=utf8` -+ content_type, _, _ = resp.headers['Content-Type'].partition(';') -+ self.assertEquals('text/html', content_type) - - def test_non_api_error_404_catchall(self): - app = Flask(__name__) -diff --git a/tests/test_reqparse.py b/tests/test_reqparse.py -index 2f1fbedf..9776f17c 100644 ---- a/tests/test_reqparse.py -+++ b/tests/test_reqparse.py -@@ -2,9 +2,9 @@ - import unittest - from mock import Mock, patch - from flask import Flask --from werkzeug import exceptions, MultiDict -+from werkzeug import exceptions - from werkzeug.wrappers import Request --from werkzeug.datastructures import FileStorage -+from werkzeug.datastructures import FileStorage, MultiDict - from flask_restful.reqparse import Argument, RequestParser, Namespace - import six - import decimal diff --git a/python-flask-restful.spec b/python-flask-restful.spec index 25aa51af3ca2b4f0d72dfabf7b0688763de7f197..b441fb34be6f9ec79c357da8522c77a32c921040 100644 --- a/python-flask-restful.spec +++ b/python-flask-restful.spec @@ -1,12 +1,10 @@ Name: python-flask-restful -Version: 0.3.8 -Release: 4 +Version: 0.3.9 +Release: 1 Summary: Framework for creating REST APIs -License: BSD-3-Clause +License: BSD URL: https://www.github.com/flask-restful/flask-restful/ -Source0: https://github.com/flask-restful/flask-restful/archive/%{version}.tar.gz - -Patch6000: backport-Fix-testsuite-for-werkzeug-1.x.patch +Source0: https://github.com/flask-restful/flask-restful/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch BuildRequires: git gcc python3-pytz python3-setuptools python3-mock python3-blinker @@ -43,8 +41,8 @@ rm -rf docs/_themes/.gitignore %{python3_sitelib}/* %changelog -* Fri Jun 17 2022 liukuo - 0.3.8-4 -- License compliance rectification +* Fri Jun 24 2022 houyingchao@h-partners.com - 0.3.9-1 +- Upgrade to version 0.3.9 * Sat Jan 08 2022 shixuantong - 0.3.8-3 - remove python3-nose buildrequire and disable %check @@ -55,7 +53,7 @@ rm -rf docs/_themes/.gitignore * Tue Feb 2 2021 liudabo - 0.3.8-1 - upgrade version to 0.3.8 -* Thu Oct 29 2020 tianwei - 0.3.6-11 +* Thu Oct 20 2020 tianwei - 0.3.6-11 - delete python2 * Tue Feb 18 2020 Buildteam - 0.3.6-10 diff --git a/v0.3.9.tar.gz b/v0.3.9.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6c91c6aa20fc2899154888c479aac4e26c73e09f Binary files /dev/null and b/v0.3.9.tar.gz differ