ignatenkobrain pushed to python-flask-restful (epel8). "Fix tests
with python3-werkzeug >= 1.0"
by notifications@fedoraproject.org
Notification time stamped 2021-03-31 17:01:14 UTC
From 879152a8589f30364726b5c8373f157c95bedc0c Mon Sep 17 00:00:00 2001
From: František Zatloukal <fzatlouk(a)redhat.com>
Date: May 07 2020 16:21:08 +0000
Subject: Fix tests with python3-werkzeug >= 1.0
---
diff --git a/862.patch b/862.patch
new file mode 100644
index 0000000..1eb6421
--- /dev/null
+++ b/862.patch
@@ -0,0 +1,41 @@
+From 7437d53e12b08099586546f999fbdf3cf080330b Mon Sep 17 00:00:00 2001
+From: Anthony Sottile <asottile(a)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
diff --git a/python-flask-restful.spec b/python-flask-restful.spec
index 3932d80..39d03b7 100644
--- a/python-flask-restful.spec
+++ b/python-flask-restful.spec
@@ -3,13 +3,15 @@
Name: python-%{srcname}
Version: 0.3.8
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: %{sum}
License: BSD
URL: https://www.github.com/%{srcname}/%{srcname}/
Source0: https://github.com/%{srcname}/%{srcname}/archive/%{version}.tar.gz
+Patch0: 862.patch
+
BuildArch: noarch
BuildRequires: python3-flask
@@ -42,6 +44,7 @@ that works with your existing ORM/libraries.
%prep
%setup -qn %{srcname}-%{version}
+%patch0 -p1
rm -rf docs/_themes/.gitignore
%build
@@ -60,6 +63,9 @@ rm -rf docs/_themes/.gitignore
%{python3_sitelib}/Flask_RESTful-*.egg-info/
%changelog
+* Thu May 07 2020 Frantisek Zatloukal <fzatlouk(a)redhat.com> - 0.3.8-2
+- Fix tests with python3-werkzeug >= 1.0
+
* Fri Feb 07 2020 Frantisek Zatloukal <fzatlouk(a)redhat.com> - 0.3.8-1
- Release 0.3.8
https://src.fedoraproject.org/rpms/python-flask-restful/c/879152a8589f303...
3 years
ignatenkobrain pushed to python-flask-restful (epel8). "Release 0.3.8"
by notifications@fedoraproject.org
Notification time stamped 2021-03-31 17:01:14 UTC
From 2017c7044e5370077ca14c51df463db187f1dc4d Mon Sep 17 00:00:00 2001
From: František Zatloukal <fzatlouk(a)redhat.com>
Date: Feb 07 2020 09:15:01 +0000
Subject: Release 0.3.8
---
diff --git a/.gitignore b/.gitignore
index 7d51e81..dd18922 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/0.3.5.tar.gz
/0.3.6.tar.gz
/0.3.7.tar.gz
+/0.3.8.tar.gz
diff --git a/python-flask-restful.spec b/python-flask-restful.spec
index b9dd690..3932d80 100644
--- a/python-flask-restful.spec
+++ b/python-flask-restful.spec
@@ -2,8 +2,8 @@
%global sum Simple framework for creating REST APIs for Flask
Name: python-%{srcname}
-Version: 0.3.7
-Release: 6%{?dist}
+Version: 0.3.8
+Release: 1%{?dist}
Summary: %{sum}
License: BSD
@@ -21,7 +21,6 @@ BuildRequires: python3-setuptools
BuildRequires: python3-nose
BuildRequires: python3-mock
BuildRequires: python3-blinker
-BuildRequires: python3-crypto
%description
Flask-RESTful is Python extension for Flask that adds support
@@ -61,6 +60,9 @@ rm -rf docs/_themes/.gitignore
%{python3_sitelib}/Flask_RESTful-*.egg-info/
%changelog
+* Fri Feb 07 2020 Frantisek Zatloukal <fzatlouk(a)redhat.com> - 0.3.8-1
+- Release 0.3.8
+
* Thu Jan 30 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.3.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
diff --git a/sources b/sources
index b98666d..51d17e1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (0.3.7.tar.gz) = 1d1d066dec5f39af3197b680f791d83df686602b703efe874ea0e81d7f3b65f605dbdb63f84fdd07e469c6824d52571e195ae70f58e1543b53f13a81e1cd8543
+SHA512 (0.3.8.tar.gz) = 15172114fcedc2f4286cf5f583d95e42c8c8ce6553f9a44e57124f2b1417bf9f094dcb5154a6933ebebc8022f39d4d7969d29d38576111f9d5b45f630b36a66c
https://src.fedoraproject.org/rpms/python-flask-restful/c/2017c7044e53700...
3 years
ignatenkobrain pushed to python-flask-restful (epel8). "Rebuilt for
Python 3.9"
by notifications@fedoraproject.org
Notification time stamped 2021-03-31 17:01:14 UTC
From be1a47e9b2c6f141de4fb805239d38359523508f Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro(a)hroncok.cz>
Date: May 26 2020 01:15:43 +0000
Subject: Rebuilt for Python 3.9
---
diff --git a/python-flask-restful.spec b/python-flask-restful.spec
index 39d03b7..083115a 100644
--- a/python-flask-restful.spec
+++ b/python-flask-restful.spec
@@ -3,7 +3,7 @@
Name: python-%{srcname}
Version: 0.3.8
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: %{sum}
License: BSD
@@ -63,6 +63,9 @@ rm -rf docs/_themes/.gitignore
%{python3_sitelib}/Flask_RESTful-*.egg-info/
%changelog
+* Tue May 26 2020 Miro Hrončok <mhroncok(a)redhat.com> - 0.3.8-3
+- Rebuilt for Python 3.9
+
* Thu May 07 2020 Frantisek Zatloukal <fzatlouk(a)redhat.com> - 0.3.8-2
- Fix tests with python3-werkzeug >= 1.0
https://src.fedoraproject.org/rpms/python-flask-restful/c/be1a47e9b2c6f14...
3 years
ignatenkobrain pushed to python-flask-restful (epel8). "Rebuilt for
Python 3.8.0rc1 (#1748018)"
by notifications@fedoraproject.org
Notification time stamped 2021-03-31 17:01:14 UTC
From 2c2d386b875ca76f74bd7ace89ed3d90cb51f7af Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro(a)hroncok.cz>
Date: Oct 03 2019 12:12:12 +0000
Subject: Rebuilt for Python 3.8.0rc1 (#1748018)
---
diff --git a/python-flask-restful.spec b/python-flask-restful.spec
index d8939df..3f7d5ff 100644
--- a/python-flask-restful.spec
+++ b/python-flask-restful.spec
@@ -3,7 +3,7 @@
Name: python-%{srcname}
Version: 0.3.7
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: %{sum}
License: BSD
@@ -61,6 +61,9 @@ rm -rf docs/_themes/.gitignore
%{python3_sitelib}/Flask_RESTful-*.egg-info/
%changelog
+* Thu Oct 03 2019 Miro Hrončok <mhroncok(a)redhat.com> - 0.3.7-5
+- Rebuilt for Python 3.8.0rc1 (#1748018)
+
* Mon Aug 19 2019 Miro Hrončok <mhroncok(a)redhat.com> - 0.3.7-4
- Rebuilt for Python 3.8
https://src.fedoraproject.org/rpms/python-flask-restful/c/2c2d386b875ca76...
3 years
ignatenkobrain pushed to python-flask-restful (epel8). "Rebuilt for
Python 3.8"
by notifications@fedoraproject.org
Notification time stamped 2021-03-31 17:01:14 UTC
From 9546d8cd361657f0501e5c25057d8e7c363a715a Mon Sep 17 00:00:00 2001
From: Miro Hrončok <miro(a)hroncok.cz>
Date: Aug 19 2019 08:38:11 +0000
Subject: Rebuilt for Python 3.8
---
diff --git a/python-flask-restful.spec b/python-flask-restful.spec
index 2eb943d..d8939df 100644
--- a/python-flask-restful.spec
+++ b/python-flask-restful.spec
@@ -3,7 +3,7 @@
Name: python-%{srcname}
Version: 0.3.7
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: %{sum}
License: BSD
@@ -61,6 +61,9 @@ rm -rf docs/_themes/.gitignore
%{python3_sitelib}/Flask_RESTful-*.egg-info/
%changelog
+* Mon Aug 19 2019 Miro Hrončok <mhroncok(a)redhat.com> - 0.3.7-4
+- Rebuilt for Python 3.8
+
* Fri Jul 26 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.3.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
https://src.fedoraproject.org/rpms/python-flask-restful/c/9546d8cd361657f...
3 years
ignatenkobrain pushed to python-flask-restful (epel8). "Don't include
entire python3_sitelib in files"
by notifications@fedoraproject.org
Notification time stamped 2021-03-31 17:01:14 UTC
From 4100005b6e31db72551c154576a0ee3584c773e7 Mon Sep 17 00:00:00 2001
From: František Zatloukal <fzatlouk(a)redhat.com>
Date: Feb 13 2019 12:58:06 +0000
Subject: Don't include entire python3_sitelib in files
---
diff --git a/python-flask-restful.spec b/python-flask-restful.spec
index 6f5c035..61506ec 100644
--- a/python-flask-restful.spec
+++ b/python-flask-restful.spec
@@ -3,7 +3,7 @@
Name: python-%{srcname}
Version: 0.3.7
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: %{sum}
License: BSD
@@ -57,9 +57,13 @@ rm -rf docs/_themes/.gitignore
%files -n python3-%{srcname}
%doc AUTHORS.md README.md examples/ docs/
%license LICENSE
-%{python3_sitelib}/*
+%{python3_sitelib}/flask_restful/
+%{python3_sitelib}/Flask_RESTful-*.egg-info/
%changelog
+* Wed Feb 13 2019 Frantisek Zatloukal <fzatlouk(a)redhat.com> - 0.3.7-2
+- Don't include entire python3_sitelib in files
+
* Tue Feb 12 2019 Frantisek Zatloukal <fzatlouk(a)redhat.com> - 0.3.7-1
- Update to upstream 0.3.7 release
- Drop upstreamed patch: 0003-Fix-tests_api-list-traceback.patch
https://src.fedoraproject.org/rpms/python-flask-restful/c/4100005b6e31db7...
3 years