Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
5ba292c43d
!42 [sync] PR-39: Remove dependencies python3-crypto only used during the test.
From: @openeuler-sync-bot 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2024-03-18 01:02:41 +00:00
cherry530
40d199e8a3 Remove dependencies python3-crypto only used during the test.
Signed-off-by: cherry530 <707078654@qq.com>
(cherry picked from commit 8411181e680e13eba7e62bcff32293d05bdd0ddd)
2024-03-18 08:56:07 +08:00
openeuler-ci-bot
94ca7b8d5a
!38 Upgrade to latest release [python-flask-restful -> 0.3.10]
From: @Jason_828e 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2023-07-12 02:00:11 +00:00
Jason_828e
5f8703ae60 update version to 0.3.10 2023-07-04 17:02:32 +08:00
openeuler-ci-bot
5aafd5f6dc
!33 Package upgrade
From: @houyingchao 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
2022-06-24 03:13:55 +00:00
houyingchao
12c95ed4b4 Package upgrade 2022-06-24 10:53:05 +08:00
openeuler-ci-bot
e896c0e286
!29 License compliance rectification
From: @lauk001 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-06-20 01:51:32 +00:00
lauk001
2832516594 License compliance rectification 2022-06-17 14:13:19 +08:00
openeuler-ci-bot
d2d9017c1d
!27 【轻量级 PR】:fix bogus date in %changelog
From: @loong-C 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-06-16 09:13:08 +00:00
loong-C
ac8c74fcdd
fix bogus date in %changelog 2022-06-16 02:07:24 +00:00
4 changed files with 19 additions and 50 deletions

Binary file not shown.

BIN
Flask-RESTful-0.3.10.tar.gz Normal file

Binary file not shown.

View File

@ -1,41 +0,0 @@
From 7437d53e12b08099586546f999fbdf3cf080330b Mon Sep 17 00:00:00 2001
From: Anthony Sottile <asottile@umich.edu>
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

View File

@ -1,16 +1,14 @@
Name: python-flask-restful
Version: 0.3.8
Release: 3
Version: 0.3.10
Release: 2
Summary: Framework for creating REST APIs
License: BSD
License: BSD-3-Clause
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://files.pythonhosted.org/packages/c0/ce/a0a133db616ea47f78a41e15c4c68b9f08cab3df31eb960f61899200a119/Flask-RESTful-0.3.10.tar.gz
BuildArch: noarch
BuildRequires: git gcc python3-pytz python3-setuptools python3-mock python3-blinker
BuildRequires: python3-flask python3-six python3-aniso8601 python3-pytz python3-devel python3-crypto
BuildRequires: python3-flask python3-six python3-aniso8601 python3-pytz python3-devel
%description
Flask-RESTful provides the building blocks for creating a REST API.
@ -25,7 +23,7 @@ Flask-RESTful is Python 3 extension for Flask that adds support
for quickly building REST APIs.
%prep
%autosetup -n flask-restful-%{version} -p1
%autosetup -n Flask-RESTful-%{version} -p1
rm -rf docs/_themes/.gitignore
%build
@ -43,6 +41,18 @@ rm -rf docs/_themes/.gitignore
%{python3_sitelib}/*
%changelog
* Mon Aug 14 2023 xu_ping <707078654@qq.com> - 0.3.10-2
- Remove dependencies python3-crypto only used during the test.
* Tue Jul 04 2023 chenzixuan <chenzixuan@kylinos.cn> - 0.3.10-1
- Update package to version 0.3.10
* Fri Jun 24 2022 houyingchao <houyingchao@h-partners.com> - 0.3.9-1
- Upgrade to 0.3.9
* Fri Jun 17 2022 liukuo <liukuo@kylinos.cn> - 0.3.8-4
- License compliance rectification
* Sat Jan 08 2022 shixuantong <shixuantong@huawei.com> - 0.3.8-3
- remove python3-nose buildrequire and disable %check
@ -52,7 +62,7 @@ rm -rf docs/_themes/.gitignore
* Tue Feb 2 2021 liudabo <liudabo1@huawei.com> - 0.3.8-1
- upgrade version to 0.3.8
* Thu Oct 20 2020 tianwei <tianwei12@huawei.com> - 0.3.6-11
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 0.3.6-11
- delete python2
* Tue Feb 18 2020 Buildteam <buildteam@openeuler.org> - 0.3.6-10