commit
680121f9c0
@ -12,10 +12,10 @@ Date: Tue Jun 26 12:06:37 2018 +0200
|
|||||||
TypeError: can only concatenate list (not "set") to list
|
TypeError: can only concatenate list (not "set") to list
|
||||||
```
|
```
|
||||||
|
|
||||||
diff --git a/tests/test_api.py b/tests/test_api.py
|
diff --git tests/test_api.py tests/test_api.py
|
||||||
index 26447ae..f34b3f6 100644
|
index 26447ae..f34b3f6 100644
|
||||||
--- a/tests/test_api.py
|
--- tests/test_api.py
|
||||||
+++ b/tests/test_api.py
|
+++ tests/test_api.py
|
||||||
@@ -784,7 +784,7 @@ class APITestCase(unittest.TestCase):
|
@@ -784,7 +784,7 @@ class APITestCase(unittest.TestCase):
|
||||||
allow = ', '.join(set(resp.headers.get_all('Allow')))
|
allow = ', '.join(set(resp.headers.get_all('Allow')))
|
||||||
allow = set(method.strip() for method in allow.split(','))
|
allow = set(method.strip() for method in allow.split(','))
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
Name: python-flask-restful
|
Name: python-flask-restful
|
||||||
Version: 0.3.6
|
Version: 0.3.6
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: Framework for creating REST APIs
|
Summary: Framework for creating REST APIs
|
||||||
License: BSD
|
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/%{version}.tar.gz
|
Source0: https://github.com/flask-restful/flask-restful/archive/%{version}.tar.gz
|
||||||
Patch0: python-flask-restful.remove_q0_testcase.patch
|
Patch0: python-flask-restful.remove_q0_testcase.patch
|
||||||
Patch1: 0001-Fix-arguments-with-type-list-705.patch
|
Patch1: 0001-Fix-arguments-with-type-list-705.patch
|
||||||
@ -14,16 +14,12 @@ BuildArch: noarch
|
|||||||
BuildRequires: git gcc pytz python3-setuptools python3-nose python3-mock python3-blinker
|
BuildRequires: git gcc pytz python3-setuptools python3-nose 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 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.
|
||||||
|
|
||||||
%package -n python3-flask-restful
|
%package -n python3-flask-restful
|
||||||
Summary: Framework for creating REST APIs
|
Summary: Framework for creating REST APIs
|
||||||
Requires: python3-flask
|
Requires: python3-flask python3-six python3-aniso8601 python3-pytz
|
||||||
Requires: python3-six
|
|
||||||
Requires: python3-aniso8601
|
|
||||||
Requires: python3-pytz
|
|
||||||
%{?python_provide:%python_provide python3-flask-restful}
|
%{?python_provide:%python_provide python3-flask-restful}
|
||||||
|
|
||||||
%description -n python3-flask-restful
|
%description -n python3-flask-restful
|
||||||
@ -31,12 +27,8 @@ Flask-RESTful is Python 3 extension for Flask that adds support
|
|||||||
for quickly building REST APIs.
|
for quickly building REST APIs.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn flask-restful-%{version}
|
%autosetup -n flask-restful-%{version} -p0
|
||||||
rm -rf docs/_themes/.gitignore
|
rm -rf docs/_themes/.gitignore
|
||||||
%patch0
|
|
||||||
%patch1
|
|
||||||
%patch2
|
|
||||||
%patch3 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -44,17 +36,17 @@ rm -rf docs/_themes/.gitignore
|
|||||||
%install
|
%install
|
||||||
%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/
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 18 2020 Buildteam <buildteam@openeuler.org> - 0.3.6-10
|
||||||
|
- Fixbug in patching
|
||||||
|
|
||||||
* Fri Nov 8 2019 Buildteam <buildteam@openeuler.org> - 0.3.6-9
|
* Fri Nov 8 2019 Buildteam <buildteam@openeuler.org> - 0.3.6-9
|
||||||
- Package Initialization
|
- Package Initialization
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user