Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Flask-Babel for 
openSUSE:Factory checked in at 2023-08-21 11:45:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Flask-Babel (Old)
 and      /work/SRC/openSUSE:Factory/.python-Flask-Babel.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Flask-Babel"

Mon Aug 21 11:45:57 2023 rev:7 rq:1104968 version:3.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Flask-Babel/python-Flask-Babel.changes    
2023-06-16 16:54:51.765713094 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-Flask-Babel.new.1766/python-Flask-Babel.changes
  2023-08-21 11:46:13.207762246 +0200
@@ -1,0 +2,6 @@
+Mon Aug 21 02:26:03 UTC 2023 - Steve Kowalik <[email protected]>
+
+- Add patch support-flask-2.4.patch:
+  * Silence deprecation warnings.
+
+-------------------------------------------------------------------

New:
----
  support-flask-2.4.patch

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

Other differences:
------------------
++++++ python-Flask-Babel.spec ++++++
--- /var/tmp/diff_new_pack.bAbXdy/_old  2023-08-21 11:46:14.087763932 +0200
+++ /var/tmp/diff_new_pack.bAbXdy/_new  2023-08-21 11:46:14.095763947 +0200
@@ -24,6 +24,8 @@
 License:        BSD-3-Clause
 URL:            https://github.com/python-babel/flask-babel
 Source:         
https://github.com/python-babel/flask-babel/archive/refs/tags/v%{version}.tar.gz#/Flask-Babel-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#python-babel/flask-babel#230
+Patch0:         support-flask-2.4.patch
 BuildRequires:  %{python_module Babel >= 2.12}
 BuildRequires:  %{python_module Flask >= 2.0}
 BuildRequires:  %{python_module Jinja2 >= 3.1}

++++++ support-flask-2.4.patch ++++++
>From 414a5a3dee8639b28ca6edd37e5f91adbc622e37 Mon Sep 17 00:00:00 2001
From: Jonas Kittner <[email protected]>
Date: Wed, 17 May 2023 12:44:06 +0200
Subject: [PATCH] replace deprecated locked_cached_property decorator with
 cached_property

---
 flask_babel/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/flask_babel/__init__.py b/flask_babel/__init__.py
index a76bf7c..9f94d22 100644
--- a/flask_babel/__init__.py
+++ b/flask_babel/__init__.py
@@ -16,10 +16,10 @@
 
 from babel.support import Translations, NullTranslations
 from flask import current_app, g
-from flask.helpers import locked_cached_property
 from babel import dates, numbers, support, Locale
 from pytz import timezone, UTC
 from werkzeug.datastructures import ImmutableDict
+from werkzeug.utils import cached_property
 
 from flask_babel.speaklater import LazyString
 
@@ -221,7 +221,7 @@ def domain(self) -> str:
         """
         return get_babel().default_domain
 
-    @locked_cached_property
+    @cached_property
     def domain_instance(self):
         """The message domain for the translations.
         """

Reply via email to