Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-Flask-Paranoid for
openSUSE:Factory checked in at 2021-08-16 10:11:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Flask-Paranoid (Old)
and /work/SRC/openSUSE:Factory/.python-Flask-Paranoid.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Flask-Paranoid"
Mon Aug 16 10:11:48 2021 rev:3 rq:912197 version:0.2.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-Flask-Paranoid/python-Flask-Paranoid.changes
2018-10-26 11:09:37.397771754 +0200
+++
/work/SRC/openSUSE:Factory/.python-Flask-Paranoid.new.1899/python-Flask-Paranoid.changes
2021-08-16 10:17:58.122624782 +0200
@@ -1,0 +2,7 @@
+Sat Aug 14 02:54:08 UTC 2021 - Fusion Future <[email protected]>
+
+- Require pip and importlib-metadata to fix build.
+- Add fix-ParanoidTests-fail.patch to fix test failures in
+ ParanoidTests.
+
+-------------------------------------------------------------------
New:
----
fix-ParanoidTests-fail.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Flask-Paranoid.spec ++++++
--- /var/tmp/diff_new_pack.cvYjJ8/_old 2021-08-16 10:17:58.562624076 +0200
+++ /var/tmp/diff_new_pack.cvYjJ8/_new 2021-08-16 10:17:58.566624070 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-Flask-Paranoid
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,8 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -21,15 +22,19 @@
Release: 0
License: MIT
Summary: Flask user session protection
-Url: http://github.com/miguelgrinberg/flask-paranoid/
+URL: http://github.com/miguelgrinberg/flask-paranoid/
Group: Development/Languages/Python
# Pypi sources don't include tests
#Source:
https://files.pythonhosted.org/packages/source/F/Flask-Paranoid/Flask-Paranoid-%%{version}.tar.gz
Source:
https://github.com/miguelgrinberg/flask-paranoid/archive/v0.2.tar.gz
Source99:
https://raw.githubusercontent.com/miguelgrinberg/flask-paranoid/master/LICENSE
-BuildRequires: python-rpm-macros
+# PATCH-FIX-OPENSUSE fix-ParanoidTests-fail.patch The minus sign is removed
from HTTP headers in newer Python releases.
+Patch0: fix-ParanoidTests-fail.patch
+BuildRequires: %{python_module importlib-metadata}
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
+BuildRequires: python-rpm-macros
# Test requirements
BuildRequires: %{python_module Flask >= 0.10}
# End of test requirements
@@ -48,6 +53,9 @@
%prep
%setup -q -n flask-paranoid-0.2
+%if 0%{?suse_version} > 1500
+%patch0 -p1
+%endif
cp %{SOURCE99} .
%build
++++++ fix-ParanoidTests-fail.patch ++++++
--- a/tests/test_paranoid.py
+++ b/tests/test_paranoid.py
@@ -7,7 +7,7 @@ from flask_paranoid import Paranoid
class ParanoidTests(unittest.TestCase):
def _delete_cookie(self, name):
- return (name + '=; Expires=Thu, 01-Jan-1970 00:00:00 GMT; '
+ return (name + '=; Expires=Thu, 01 Jan 1970 00:00:00 GMT; '
'Max-Age=0; Path=/')
def test_401(self):