Hello community,
here is the log from the commit of package python-Flask-BabelEx for
openSUSE:Factory checked in at 2020-02-20 15:00:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Flask-BabelEx (Old)
and /work/SRC/openSUSE:Factory/.python-Flask-BabelEx.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Flask-BabelEx"
Thu Feb 20 15:00:05 2020 rev:3 rq:777620 version:0.9.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-Flask-BabelEx/python-Flask-BabelEx.changes
2018-10-26 11:09:37.869771111 +0200
+++
/work/SRC/openSUSE:Factory/.python-Flask-BabelEx.new.26092/python-Flask-BabelEx.changes
2020-02-20 15:00:17.386866045 +0100
@@ -1,0 +2,6 @@
+Thu Feb 20 09:31:24 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.9.4:
+ * Werkzeug 1.0.0 fixes
+
+-------------------------------------------------------------------
Old:
----
Flask-BabelEx-0.9.3.tar.gz
New:
----
Flask-BabelEx-0.9.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Flask-BabelEx.spec ++++++
--- /var/tmp/diff_new_pack.mYAIDn/_old 2020-02-20 15:00:19.746870676 +0100
+++ /var/tmp/diff_new_pack.mYAIDn/_new 2020-02-20 15:00:19.754870692 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-Flask-BabelEx
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,34 +12,34 @@
# 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/
+#
+
-%bcond_without test
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without test
Name: python-Flask-BabelEx
-Version: 0.9.3
+Version: 0.9.4
Release: 0
-License: BSD-3-Clause
Summary: i18n/l10n support for Flask applications
-Url: http://github.com/mrjoes/flask-babelex
-Group: Development/Languages/Python
+License: BSD-3-Clause
+URL: https://github.com/mrjoes/flask-babelex
Source:
https://files.pythonhosted.org/packages/source/F/Flask-BabelEx/Flask-BabelEx-%{version}.tar.gz
Patch0: remove-failing-tests.patch
-BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
-%if %{with test}
-BuildRequires: %{python_module Babel >= 1.0}
-BuildRequires: %{python_module Flask}
-BuildRequires: %{python_module Jinja2 >= 2.5}
-BuildRequires: %{python_module speaklater >= 1.2}
-%endif
BuildRequires: fdupes
+BuildRequires: python-rpm-macros
Requires: python-Babel >= 1.0
Requires: python-Flask
Requires: python-Jinja2 >= 2.5
Requires: python-speaklater >= 1.2
BuildArch: noarch
-
+%if %{with test}
+BuildRequires: %{python_module Babel >= 1.0}
+BuildRequires: %{python_module Flask}
+BuildRequires: %{python_module Jinja2 >= 2.5}
+BuildRequires: %{python_module speaklater >= 1.2}
+%endif
%python_subpackages
%description
++++++ Flask-BabelEx-0.9.3.tar.gz -> Flask-BabelEx-0.9.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-BabelEx-0.9.3/Flask_BabelEx.egg-info/PKG-INFO
new/Flask-BabelEx-0.9.4/Flask_BabelEx.egg-info/PKG-INFO
--- old/Flask-BabelEx-0.9.3/Flask_BabelEx.egg-info/PKG-INFO 2016-01-19
15:20:41.000000000 +0100
+++ new/Flask-BabelEx-0.9.4/Flask_BabelEx.egg-info/PKG-INFO 2020-02-07
16:17:02.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: Flask-BabelEx
-Version: 0.9.3
+Version: 0.9.4
Summary: Adds i18n/l10n support to Flask applications
Home-page: http://github.com/mrjoes/flask-babelex
Author: Serge S. Koval
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Flask-BabelEx-0.9.3/Flask_BabelEx.egg-info/requires.txt
new/Flask-BabelEx-0.9.4/Flask_BabelEx.egg-info/requires.txt
--- old/Flask-BabelEx-0.9.3/Flask_BabelEx.egg-info/requires.txt 2016-01-19
15:20:41.000000000 +0100
+++ new/Flask-BabelEx-0.9.4/Flask_BabelEx.egg-info/requires.txt 2020-02-07
16:17:02.000000000 +0100
@@ -1,4 +1,4 @@
Flask
Babel>=1.0
speaklater>=1.2
-Jinja2>=2.5
\ No newline at end of file
+Jinja2>=2.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-BabelEx-0.9.3/PKG-INFO
new/Flask-BabelEx-0.9.4/PKG-INFO
--- old/Flask-BabelEx-0.9.3/PKG-INFO 2016-01-19 15:20:41.000000000 +0100
+++ new/Flask-BabelEx-0.9.4/PKG-INFO 2020-02-07 16:17:02.490354500 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: Flask-BabelEx
-Version: 0.9.3
+Version: 0.9.4
Summary: Adds i18n/l10n support to Flask applications
Home-page: http://github.com/mrjoes/flask-babelex
Author: Serge S. Koval
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-BabelEx-0.9.3/docs/index.rst
new/Flask-BabelEx-0.9.4/docs/index.rst
--- old/Flask-BabelEx-0.9.3/docs/index.rst 2016-01-19 15:20:29.000000000
+0100
+++ new/Flask-BabelEx-0.9.4/docs/index.rst 2020-02-07 16:14:11.000000000
+0100
@@ -1,7 +1,7 @@
Flask-BabelEx
=============
-.. module:: flask.ext.babelex
+.. module:: flask_babelex
Flask-BabelEx is an extension to `Flask`_ that adds i18n and l10n support to
any Flask application with the help of `babel`_, `pytz`_ and
@@ -31,7 +31,7 @@
object after configuring the application::
from flask import Flask
- from flask.ext.babelex import Babel
+ from flask_babelex import Babel
app = Flask(__name__)
app.config.from_pyfile('mysettings.cfg')
@@ -106,7 +106,7 @@
Here some examples:
->>> from flask.ext.babelex import format_datetime
+>>> from flask_babelex import format_datetime
>>> from datetime import datetime
>>> format_datetime(datetime(1987, 3, 5, 17, 12))
u'Mar 5, 1987 5:12:00 PM'
@@ -122,7 +122,7 @@
And again with a different language:
>>> app.config['BABEL_DEFAULT_LOCALE'] = 'de'
->>> from flask.ext.babelex import refresh; refresh()
+>>> from flask_babelex import refresh; refresh()
>>> format_datetime(datetime(1987, 3, 5, 17, 12), 'EEEE, d. MMMM yyyy H:mm')
u'Donnerstag, 5. M\xe4rz 1987 17:12'
@@ -142,7 +142,7 @@
:func:`ngettext`. The first to translate singular strings and the second
to translate strings that might become plural. Here some examples::
- from flask.ext.babelex import gettext, ngettext
+ from flask_babelex import gettext, ngettext
gettext(u'A simple string')
gettext(u'Value: %(value)s', value=42)
@@ -153,7 +153,7 @@
strings. Lazy strings will not be evaluated until they are actually used.
To use such a lazy string, use the :func:`lazy_gettext` function::
- from flask.ext.babelex import lazy_gettext
+ from flask_babelex import lazy_gettext
class MyForm(formlibrary.FormBase):
success_message = lazy_gettext(u'The form was successfully saved.')
@@ -240,7 +240,7 @@
Flask-BabelEx allows extension developers to specify which translation domain
to
use::
- from flask.ext.babelex import Domain
+ from flask_babelex import Domain
mydomain = Domain(domain='myext')
@@ -254,7 +254,7 @@
If extension is distributed with the localizations, it is possible to specify
their location::
- from flask.ext.babelex import Domain
+ from flask_babelex import Domain
from flask.ext.myext import translations
mydomain = Domain(translations.__path__[0])
@@ -269,7 +269,7 @@
:class:`Babel` on initialization::
from flask import Flask
- from flask.ext.babelex import Babel, Domain
+ from flask_babelex import Babel, Domain
app = Flask(__name__)
domain = Domain(domain='myext')
@@ -281,7 +281,7 @@
:meth:`~Domain.as_default` method from within the request context::
from flask import Flask
- from flask.ext.babelex import Babel, Domain, gettext
+ from flask_babelex import Babel, Domain, gettext
app = Flask(__name__)
domain = Domain(domain='myext')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-BabelEx-0.9.3/flask_babelex/__init__.py
new/Flask-BabelEx-0.9.4/flask_babelex/__init__.py
--- old/Flask-BabelEx-0.9.3/flask_babelex/__init__.py 2016-01-19
15:20:29.000000000 +0100
+++ new/Flask-BabelEx-0.9.4/flask_babelex/__init__.py 2020-02-07
16:14:11.000000000 +0100
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
- flask.ext.babelex
- ~~~~~~~~~~~~~~~~~
+ flask_babelex
+ ~~~~~~~~~~~~~
Implements i18n/l10n support for Flask applications based on Babel.
@@ -20,7 +20,7 @@
from flask import _request_ctx_stack
from babel import dates, numbers, support, Locale
from babel.support import NullTranslations
-from werkzeug import ImmutableDict
+from werkzeug.datastructures import ImmutableDict
try:
from pytz.gae import pytz
except ImportError:
@@ -531,7 +531,10 @@
gettext(u'Hello %(name)s!', name='World')
"""
t = self.get_translations()
- return t.ugettext(string) % variables
+ if variables:
+ return t.ugettext(string) % variables
+ else:
+ return t.ugettext(string)
def ngettext(self, singular, plural, num, **variables):
"""Translates a string with the current locale and passes in the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-BabelEx-0.9.3/flask_babelex/_compat.py
new/Flask-BabelEx-0.9.4/flask_babelex/_compat.py
--- old/Flask-BabelEx-0.9.3/flask_babelex/_compat.py 2016-01-19
15:20:29.000000000 +0100
+++ new/Flask-BabelEx-0.9.4/flask_babelex/_compat.py 2020-02-07
16:14:11.000000000 +0100
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
- flask.ext.babelex._compat
- ~~~~~~~~~~~~~~~~~~~~~~~~~
+ flask_babelex._compat
+ ~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2013 by Armin Ronacher, Daniel Neuhäuser.
:license: BSD, see LICENSE for more details.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-BabelEx-0.9.3/setup.cfg
new/Flask-BabelEx-0.9.4/setup.cfg
--- old/Flask-BabelEx-0.9.3/setup.cfg 2016-01-19 15:20:41.000000000 +0100
+++ new/Flask-BabelEx-0.9.4/setup.cfg 2020-02-07 16:17:02.490354500 +0100
@@ -4,5 +4,4 @@
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Flask-BabelEx-0.9.3/setup.py
new/Flask-BabelEx-0.9.4/setup.py
--- old/Flask-BabelEx-0.9.3/setup.py 2016-01-19 15:20:29.000000000 +0100
+++ new/Flask-BabelEx-0.9.4/setup.py 2020-02-07 16:16:01.000000000 +0100
@@ -28,7 +28,7 @@
setup(
name='Flask-BabelEx',
- version='0.9.3',
+ version='0.9.4',
url='http://github.com/mrjoes/flask-babelex',
license='BSD',
author='Serge S. Koval',