Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
b74bfce11d
!47 [sync] PR-41: [sync] PR-35: modify buildrequire crypto to cryptography
From: @openeuler-sync-bot 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2024-05-27 08:53:20 +00:00
lyn1001
e25b5ac8af modify buildrequire crypto to cryptography
(cherry picked from commit a2c317675788a4f5869c0bdb43e0ae39aa292c03)
(cherry picked from commit d093ed51c0a5eedb11cd02d36248aed210caa0ba)
2024-05-27 16:41:19 +08:00
openeuler-ci-bot
a3b6dbf86f
!34 update to version 0.3.9
From: @wang--ge 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-10-28 07:17:35 +00:00
wang--ge
75bb1d2203 update to version 0.3.9 2022-10-28 11:30:51 +08:00
openeuler-ci-bot
c7d4676516
!28 【轻量级 PR】:fix bogus date in %changelog
From: @loong-C 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2022-06-16 09:12:42 +00:00
loong-C
99c49f4956
fix bogus date in %changelog
![输入图片说明](https://images.gitee.com/uploads/images/2022/0616/100747_4be727d0_9884780.png "屏幕截图.png")
2022-06-16 02:08:14 +00:00
openeuler-ci-bot
b6ebb0c0f8
!22 remove python3-nose buildrequire and disable %check
Merge pull request !22 from 桐小哥/master
2022-01-08 11:44:30 +00:00
shixuantong
b9a1cbc428 remove python3-nose buildrequire and disable check 2022-01-08 17:32:13 +08:00
openeuler-ci-bot
6650dd5200 !6 Fix testsuite for werkzeug 1.x
From: @tong_1001
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
2021-02-19 14:13:52 +08:00
sxt1001
5faab7915e Fix testsuite for werkzeug 1.x 2021-02-18 10:35:00 +08:00
4 changed files with 21 additions and 39 deletions

Binary file not shown.

View File

@ -1,29 +0,0 @@
--- tests/test_accept.py.orig 2015-11-13 12:06:18.914003153 +0100
+++ tests/test_accept.py 2015-11-13 12:04:42.786435117 +0100
@@ -121,26 +121,6 @@
assert_equals(res.content_type, 'text/plain')
- def test_accept_no_default_match_q0_not_acceptable(self):
- """
- q=0 should be considered NotAcceptable,
- but this depends on werkzeug >= 1.0 which is not yet released
- so this test is expected to fail until we depend on werkzeug >= 1.0
- """
- class Foo(flask_restful.Resource):
- def get(self):
- return "data"
-
- app = Flask(__name__)
- api = flask_restful.Api(app, default_mediatype=None)
-
- api.add_resource(Foo, '/')
-
- with app.test_client() as client:
- res = client.get('/', headers=[('Accept', 'application/json; q=0')])
- assert_equals(res.status_code, 406)
- assert_equals(res.content_type, 'application/json')
-
def test_accept_no_default_accept_highest_quality_of_two(self):
class Foo(flask_restful.Resource):
def get(self):

View File

@ -1,15 +1,14 @@
Name: python-flask-restful
Version: 0.3.8
Release: 1
Version: 0.3.9
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
Patch0: python-flask-restful.remove_q0_testcase.patch
Source0: https://github.com/flask-restful/flask-restful/archive/refs/tags/v0.3.9.tar.gz
BuildArch: noarch
BuildRequires: git gcc python3-pytz python3-setuptools python3-nose python3-mock python3-blinker
BuildRequires: python3-flask python3-six python3-aniso8601 python3-pytz python3-devel python3-crypto
BuildRequires: git gcc python3-pytz python3-setuptools python3-mock python3-blinker
BuildRequires: python3-flask python3-six python3-aniso8601 python3-pytz python3-devel python3-cryptography
%description
Flask-RESTful provides the building blocks for creating a REST API.
@ -24,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} -p0
%autosetup -n flask-restful-%{version} -p1
rm -rf docs/_themes/.gitignore
%build
@ -34,7 +33,7 @@ rm -rf docs/_themes/.gitignore
%py3_install
%check
%{__python3} setup.py test
#%{__python3} setup.py test
%files -n python3-flask-restful
%doc AUTHORS.md README.md examples/ docs/
@ -42,10 +41,22 @@ rm -rf docs/_themes/.gitignore
%{python3_sitelib}/*
%changelog
* Mon May 29 2023 liyanan <thistleslyn@163.com> - 0.3.9-2
- modify buildrequire crypto to cryptography
* Fri Oct 21 2022 Ge Wang <wangge20@h-partners.com> - 0.3.9-1
- Upgrade to version 0.3.9
* Sat Jan 08 2022 shixuantong <shixuantong@huawei.com> - 0.3.8-3
- remove python3-nose buildrequire and disable %check
* Thu Feb 18 2021 shixuantong <shixuantong@huawei.com> - 0.3.8-2
- Fix testsuite for werkzeug 1.x
* 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

BIN
v0.3.9.tar.gz Normal file

Binary file not shown.