Compare commits
No commits in common. "b74bfce11d7bcd77ffcc87ac07e714c655c35864" and "388e8e083c9c86cc7bab8fbdd324f3d60ccae1ee" have entirely different histories.
b74bfce11d
...
388e8e083c
BIN
0.3.8.tar.gz
Normal file
BIN
0.3.8.tar.gz
Normal file
Binary file not shown.
29
python-flask-restful.remove_q0_testcase.patch
Normal file
29
python-flask-restful.remove_q0_testcase.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
--- 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):
|
||||||
@ -1,14 +1,15 @@
|
|||||||
Name: python-flask-restful
|
Name: python-flask-restful
|
||||||
Version: 0.3.9
|
Version: 0.3.8
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Framework for creating REST APIs
|
Summary: Framework for creating REST APIs
|
||||||
License: BSD-3-Clause
|
License: BSD
|
||||||
URL: https://www.github.com/flask-restful/flask-restful/
|
URL: https://www.github.com/flask-restful/flask-restful/
|
||||||
Source0: https://github.com/flask-restful/flask-restful/archive/refs/tags/v0.3.9.tar.gz
|
Source0: https://github.com/flask-restful/flask-restful/archive/%{version}.tar.gz
|
||||||
|
Patch0: python-flask-restful.remove_q0_testcase.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: git gcc python3-pytz python3-setuptools python3-mock python3-blinker
|
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-cryptography
|
BuildRequires: python3-flask python3-six python3-aniso8601 python3-pytz python3-devel python3-crypto
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Flask-RESTful provides the building blocks for creating a REST API.
|
Flask-RESTful provides the building blocks for creating a REST API.
|
||||||
@ -23,7 +24,7 @@ Flask-RESTful is Python 3 extension for Flask that adds support
|
|||||||
for quickly building REST APIs.
|
for quickly building REST APIs.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n flask-restful-%{version} -p1
|
%autosetup -n flask-restful-%{version} -p0
|
||||||
rm -rf docs/_themes/.gitignore
|
rm -rf docs/_themes/.gitignore
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -33,7 +34,7 @@ rm -rf docs/_themes/.gitignore
|
|||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
#%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
|
||||||
%files -n python3-flask-restful
|
%files -n python3-flask-restful
|
||||||
%doc AUTHORS.md README.md examples/ docs/
|
%doc AUTHORS.md README.md examples/ docs/
|
||||||
@ -41,22 +42,10 @@ rm -rf docs/_themes/.gitignore
|
|||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Feb 2 2021 liudabo <liudabo1@huawei.com> - 0.3.8-1
|
||||||
- upgrade version to 0.3.8
|
- upgrade version to 0.3.8
|
||||||
|
|
||||||
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 0.3.6-11
|
* Thu Oct 20 2020 tianwei <tianwei12@huawei.com> - 0.3.6-11
|
||||||
- delete python2
|
- delete python2
|
||||||
|
|
||||||
* Tue Feb 18 2020 Buildteam <buildteam@openeuler.org> - 0.3.6-10
|
* Tue Feb 18 2020 Buildteam <buildteam@openeuler.org> - 0.3.6-10
|
||||||
|
|||||||
BIN
v0.3.9.tar.gz
BIN
v0.3.9.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user