From 2ec1f6babd1bfd0a0ce251a75d91b21736ace66d Mon Sep 17 00:00:00 2001
From: mcalabkova <>
Date: Apr 10 2025 21:14:51 +0000
Subject: Update python-Flask-Security to version 5.6.1 / rev 3 via SR 1267930
https://build.opensuse.org/request/show/1267930
by user mcalabkova + anag_factory
---
diff --git a/.files b/.files
index 40a4628..7020f39 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 04b6d7b..52ef40e 100644
--- a/.rev
+++ b/.rev
@@ -56,4 +56,12 @@ Refresh patches:
- no-mongodb.patch
1248075
+
+ cf29e12c664a8bb22cfd6f6a56a515ef
+ 5.6.1
+
+ anag_factory
+
+ 1267930
+
diff --git a/flask_security-5.6.0.tar.gz b/flask_security-5.6.0.tar.gz
deleted file mode 120000
index 582c21d..0000000
--- a/flask_security-5.6.0.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafybeig6s2c6gzmtxd42bvbiy73hu5caxm6al74l3s53y5b7w3h2cy74si
\ No newline at end of file
diff --git a/flask_security-5.6.1.tar.gz b/flask_security-5.6.1.tar.gz
new file mode 120000
index 0000000..6b9ba9e
--- /dev/null
+++ b/flask_security-5.6.1.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafybeidmvjrl5p4dobdsufw77rkfyr4zx24l6jt45wfhhvqk6n54jlbfjy
\ No newline at end of file
diff --git a/python-Flask-Security.changes b/python-Flask-Security.changes
index 1689e52..f019cea 100644
--- a/python-Flask-Security.changes
+++ b/python-Flask-Security.changes
@@ -1,4 +1,24 @@
-------------------------------------------------------------------
+Tue Apr 8 07:59:29 UTC 2025 - Ben Greiner
+
+- Update to 5.6.1
+ ## Fixes
+ * #1077: Fix runtime modification of a config string
+ (TWO_FACTOR_METHODS)
+ * #1078: Fix CLI user_create when model doesn't contain username
+ * #1076: xxx_util_cls instances should be public and documented.
+ ## Backwards Compatibility Concerns
+ * As part of #1076 the following cleanup was done:
+ - The xxx_util_cls arguments are now stored in 'private'
+ instance variables - they are never used after Flask-Security
+ initialization and have never been documented.
+ - The xxx_util_cls options should only be set as part of
+ Flask-Security construction. Setting them via
+ init_app(kwargs) or app.config["SECURITY_XX"] has been
+ deprecated.
+- Remove obsolete importlib backport dependency
+
+-------------------------------------------------------------------
Mon Feb 24 10:05:13 UTC 2025 - Daniel Garcia
- Update to 5.6.0:
diff --git a/python-Flask-Security.spec b/python-Flask-Security.spec
index c11f1d3..63354d4 100644
--- a/python-Flask-Security.spec
+++ b/python-Flask-Security.spec
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-Flask-Security
-Version: 5.6.0
+Version: 5.6.1
Release: 0
Summary: Quickly add security features to your Flask application
License: MIT
@@ -31,7 +31,7 @@ Patch1: ignore-resourcewarning.patch
BuildRequires: %{python_module Authlib}
BuildRequires: %{python_module Babel >= 2.10.0}
BuildRequires: %{python_module Flask >= 2.3.2}
-BuildRequires: %{python_module Flask-Babel >= 3.1.0}
+BuildRequires: %{python_module Flask-Babel >= 4}
BuildRequires: %{python_module Flask-Login >= 0.6.2}
BuildRequires: %{python_module Flask-Mailman >= 0.3.0}
BuildRequires: %{python_module Flask-Principal >= 0.4.0}
@@ -50,7 +50,6 @@ BuildRequires: %{python_module dateutil}
BuildRequires: %{python_module email-validator >= 2.0}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module freezegun}
-BuildRequires: %{python_module importlib_resources >= 5.10.0}
BuildRequires: %{python_module passlib >= 1.7.4}
BuildRequires: %{python_module peewee >= 3.16.2}
BuildRequires: %{python_module phonenumbers}
@@ -63,7 +62,6 @@ BuildRequires: %{python_module zxcvbn >= 4.4.28}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Flask >= 2.3.2
-Requires: python-Flask-Babel >= 3.1.0
Requires: python-Flask-Login >= 0.6.2
Requires: python-Flask-Principal >= 0.4.0
Requires: python-Flask-WTF >= 1.1.1
@@ -73,8 +71,8 @@ Requires: python-bcrypt >= 4.0.1
Requires: python-bleach >= 6.0.0
Requires: python-cryptography >= 40.0.2
Requires: python-email-validator >= 2.0
-Requires: python-importlib_resources >= 5.10.0
Requires: python-passlib >= 1.7.4
+Recommends: python-Flask-Babel >= 4
Recommends: python-SQLAlchemy
Recommends: python-qrcode >= 7.4.2
Recommends: python-zxcvbn >= 4.4.28
@@ -91,6 +89,8 @@ Quickly add security features to your Flask application.
%prep
%autosetup -p1 -n flask_security-%{version}
+sed -i s/importlib_resources/importlib.resources/ flask_security/babel.py
+sed -i /importlib_resources/d pyproject.toml
%build
%pyproject_wheel