Hello community,
here is the log from the commit of package python-SQLAlchemy-Utils for
openSUSE:Factory checked in at 2019-01-08 12:29:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-SQLAlchemy-Utils (Old)
and /work/SRC/openSUSE:Factory/.python-SQLAlchemy-Utils.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-SQLAlchemy-Utils"
Tue Jan 8 12:29:04 2019 rev:16 rq:663292 version:0.33.10
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-SQLAlchemy-Utils/python-SQLAlchemy-Utils.changes
2018-12-10 12:30:24.786402516 +0100
+++
/work/SRC/openSUSE:Factory/.python-SQLAlchemy-Utils.new.28833/python-SQLAlchemy-Utils.changes
2019-01-08 12:31:21.184084236 +0100
@@ -1,0 +2,10 @@
+Sun Jan 6 22:26:08 UTC 2019 - Arun Persaud <[email protected]>
+
+- specfile:
+ * update copyright year
+
+- update to version 0.33.10:
+ * Removed optional dependency to Flask-Babel. Now using Babel
+ instead. (#333, pull request courtesy of aveuiller)
+
+-------------------------------------------------------------------
Old:
----
SQLAlchemy-Utils-0.33.9.tar.gz
New:
----
SQLAlchemy-Utils-0.33.10.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-SQLAlchemy-Utils.spec ++++++
--- /var/tmp/diff_new_pack.Fg2P5Y/_old 2019-01-08 12:31:21.704083670 +0100
+++ /var/tmp/diff_new_pack.Fg2P5Y/_new 2019-01-08 12:31:21.708083666 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-SQLAlchemy-Utils
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-SQLAlchemy-Utils
-Version: 0.33.9
+Version: 0.33.10
Release: 0
Summary: Various utility functions for SQLAlchemy
License: BSD-3-Clause
++++++ SQLAlchemy-Utils-0.33.9.tar.gz -> SQLAlchemy-Utils-0.33.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/SQLAlchemy-Utils-0.33.9/CHANGES.rst
new/SQLAlchemy-Utils-0.33.10/CHANGES.rst
--- old/SQLAlchemy-Utils-0.33.9/CHANGES.rst 2018-12-04 14:37:35.000000000
+0100
+++ new/SQLAlchemy-Utils-0.33.10/CHANGES.rst 2018-12-27 12:42:21.000000000
+0100
@@ -4,6 +4,12 @@
Here you can see the full list of changes between each SQLAlchemy-Utils
release.
+0.33.10 (2018-12-27)
+^^^^^^^^^^^^^^^^^^^^
+
+- Removed optional dependency to Flask-Babel. Now using Babel instead. (#333,
pull request courtesy of aveuiller)
+
+
0.33.9 (2018-11-19)
^^^^^^^^^^^^^^^^^^^
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/SQLAlchemy-Utils-0.33.9/PKG-INFO
new/SQLAlchemy-Utils-0.33.10/PKG-INFO
--- old/SQLAlchemy-Utils-0.33.9/PKG-INFO 2018-12-04 14:40:02.000000000
+0100
+++ new/SQLAlchemy-Utils-0.33.10/PKG-INFO 2018-12-27 12:49:22.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: SQLAlchemy-Utils
-Version: 0.33.9
+Version: 0.33.10
Summary: Various utility functions for SQLAlchemy.
Home-page: https://github.com/kvesteri/sqlalchemy-utils
Author: Konsta Vesterinen, Ryan Leckey, Janne Vanhala, Vesa Uimonen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/SQLAlchemy-Utils-0.33.9/SQLAlchemy_Utils.egg-info/PKG-INFO
new/SQLAlchemy-Utils-0.33.10/SQLAlchemy_Utils.egg-info/PKG-INFO
--- old/SQLAlchemy-Utils-0.33.9/SQLAlchemy_Utils.egg-info/PKG-INFO
2018-12-04 14:40:02.000000000 +0100
+++ new/SQLAlchemy-Utils-0.33.10/SQLAlchemy_Utils.egg-info/PKG-INFO
2018-12-27 12:49:22.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: SQLAlchemy-Utils
-Version: 0.33.9
+Version: 0.33.10
Summary: Various utility functions for SQLAlchemy.
Home-page: https://github.com/kvesteri/sqlalchemy-utils
Author: Konsta Vesterinen, Ryan Leckey, Janne Vanhala, Vesa Uimonen
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/SQLAlchemy-Utils-0.33.9/sqlalchemy_utils/__init__.py
new/SQLAlchemy-Utils-0.33.10/sqlalchemy_utils/__init__.py
--- old/SQLAlchemy-Utils-0.33.9/sqlalchemy_utils/__init__.py 2018-12-04
14:37:43.000000000 +0100
+++ new/SQLAlchemy-Utils-0.33.10/sqlalchemy_utils/__init__.py 2018-12-27
12:42:25.000000000 +0100
@@ -100,4 +100,4 @@
refresh_materialized_view
)
-__version__ = '0.33.9'
+__version__ = '0.33.10'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/SQLAlchemy-Utils-0.33.9/sqlalchemy_utils/i18n.py
new/SQLAlchemy-Utils-0.33.10/sqlalchemy_utils/i18n.py
--- old/SQLAlchemy-Utils-0.33.9/sqlalchemy_utils/i18n.py 2018-09-20
09:34:12.000000000 +0200
+++ new/SQLAlchemy-Utils-0.33.10/sqlalchemy_utils/i18n.py 2018-12-27
12:40:51.000000000 +0100
@@ -14,13 +14,15 @@
except ImportError:
babel = None
+
try:
- from flask_babel import get_locale
-except ImportError:
+ def get_locale(): return babel.Locale('en')
+except AttributeError:
+ # As babel is optional, we may raise an AttributeError accessing it
def get_locale():
raise ImproperlyConfigured(
- 'Could not load get_locale function from Flask-Babel. Either '
- 'install Flask-Babel or make a similar function and override it '
+ 'Could not load get_locale function using Babel. Either '
+ 'install Babel or make a similar function and override it '
'in this module.'
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/SQLAlchemy-Utils-0.33.9/sqlalchemy_utils/primitives/country.py
new/SQLAlchemy-Utils-0.33.10/sqlalchemy_utils/primitives/country.py
--- old/SQLAlchemy-Utils-0.33.9/sqlalchemy_utils/primitives/country.py
2016-04-25 16:20:06.000000000 +0200
+++ new/SQLAlchemy-Utils-0.33.10/sqlalchemy_utils/primitives/country.py
2018-12-27 12:40:51.000000000 +0100
@@ -25,7 +25,8 @@
Country(Country('FI')).code # 'FI'
- Country always validates the given code.
+ Country always validates the given code if you use at least the optional
+ dependency list 'babel', otherwise no validation are performed.
::
@@ -76,6 +77,9 @@
raise ValueError(
'Could not convert string to country code: {0}'.format(code)
)
+ except AttributeError:
+ # As babel is optional, we may raise an AttributeError accessing it
+ pass
def __eq__(self, other):
if isinstance(other, Country):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/SQLAlchemy-Utils-0.33.9/sqlalchemy_utils/primitives/currency.py
new/SQLAlchemy-Utils-0.33.10/sqlalchemy_utils/primitives/currency.py
--- old/SQLAlchemy-Utils-0.33.9/sqlalchemy_utils/primitives/currency.py
2016-04-25 16:20:06.000000000 +0200
+++ new/SQLAlchemy-Utils-0.33.10/sqlalchemy_utils/primitives/currency.py
2018-12-27 12:40:51.000000000 +0100
@@ -26,7 +26,8 @@
Currency(Currency('USD')).code # 'USD'
- Currency always validates the given code.
+ Currency always validates the given code if you use at least the optional
+ dependency list 'babel', otherwise no validation are performed.
::
@@ -75,6 +76,9 @@
i18n.babel.Locale('en').currencies[code]
except KeyError:
raise ValueError("'{0}' is not valid currency code.".format(code))
+ except AttributeError:
+ # As babel is optional, we may raise an AttributeError accessing it
+ pass
@property
def symbol(self):