Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Flask-Login for 
openSUSE:Factory checked in at 2023-10-30 22:10:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Flask-Login (Old)
 and      /work/SRC/openSUSE:Factory/.python-Flask-Login.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Flask-Login"

Mon Oct 30 22:10:10 2023 rev:7 rq:1121150 version:0.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Flask-Login/python-Flask-Login.changes    
2022-09-30 17:58:33.809347248 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-Flask-Login.new.17445/python-Flask-Login.changes
 2023-10-30 22:10:21.547273166 +0100
@@ -1,0 +2,7 @@
+Mon Oct 30 08:22:57 UTC 2023 - Antonio Larrosa <alarr...@suse.com>
+
+- Add patch from upstream to fix compatibility with Werkzeug 3.0.x
+  where werkzeug.urls removed url_decode/url_encode:
+  * 0001-fix-avoid-Deprecated-werkzeug.urls.url_decode.patch
+
+-------------------------------------------------------------------

New:
----
  0001-fix-avoid-Deprecated-werkzeug.urls.url_decode.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Flask-Login.spec ++++++
--- /var/tmp/diff_new_pack.MJrPta/_old  2023-10-30 22:10:22.255299286 +0100
+++ /var/tmp/diff_new_pack.MJrPta/_new  2023-10-30 22:10:22.259299434 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Flask-Login
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 License:        MIT
 URL:            https://github.com/maxcountryman/flask-login
 Source:         
https://files.pythonhosted.org/packages/source/F/Flask-Login/Flask-Login-%{version}.tar.gz
+# FIX-UPSTREAM-PATCH
+Patch0:         0001-fix-avoid-Deprecated-werkzeug.urls.url_decode.patch
 BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -47,7 +49,7 @@
 loading users from their ID.
 
 %prep
-%setup -q -n Flask-Login-%{version}
+%autosetup -p1 -n Flask-Login-%{version}
 
 %build
 %python_build

++++++ 0001-fix-avoid-Deprecated-werkzeug.urls.url_decode.patch ++++++
>From 7b170bf4e5e0240fe084166c9ca6ec4fba258dcd Mon Sep 17 00:00:00 2001
From: Hiromasa Ihara <iharahirom...@gmail.com>
Date: Mon, 2 Oct 2023 20:14:40 +0900
Subject: [PATCH] fix: avoid DeprecationWarning 'werkzeug.urls.url_decode' is
 deprecated (#746)

---
 src/flask_login/utils.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/flask_login/utils.py b/src/flask_login/utils.py
index c3c46846..45a7e279 100644
--- a/src/flask_login/utils.py
+++ b/src/flask_login/utils.py
@@ -3,6 +3,8 @@
 from hashlib import sha512
 from urllib.parse import urlparse
 from urllib.parse import urlunparse
+from urllib.parse import parse_qs
+from urllib.parse import urlencode
 
 from flask import current_app
 from flask import g
@@ -11,8 +13,6 @@
 from flask import session
 from flask import url_for
 from werkzeug.local import LocalProxy
-from werkzeug.urls import url_decode
-from werkzeug.urls import url_encode
 
 from .config import COOKIE_NAME
 from .config import EXEMPT_METHODS
@@ -123,11 +123,11 @@ def login_url(login_view, next_url=None, 
next_field="next"):
         return base
 
     parsed_result = urlparse(base)
-    md = url_decode(parsed_result.query)
+    md = parse_qs(parsed_result.query)
     md[next_field] = make_next_param(base, next_url)
     netloc = current_app.config.get("FORCE_HOST_FOR_REDIRECTS") or 
parsed_result.netloc
     parsed_result = parsed_result._replace(
-        netloc=netloc, query=url_encode(md, sort=True)
+        netloc=netloc, query=urlencode(md, doseq=True)
     )
     return urlunparse(parsed_result)
 

Reply via email to