Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-SQLAlchemy-Utils for openSUSE:Factory checked in at 2021-10-27 22:20:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-SQLAlchemy-Utils (Old) and /work/SRC/openSUSE:Factory/.python-SQLAlchemy-Utils.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-SQLAlchemy-Utils" Wed Oct 27 22:20:59 2021 rev:32 rq:927590 version:0.37.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-SQLAlchemy-Utils/python-SQLAlchemy-Utils.changes 2021-10-18 22:02:00.230085397 +0200 +++ /work/SRC/openSUSE:Factory/.python-SQLAlchemy-Utils.new.1890/python-SQLAlchemy-Utils.changes 2021-10-27 22:21:11.259198106 +0200 @@ -1,0 +2,8 @@ +Tue Oct 26 20:15:55 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- update to 0.37.9: + * Fixed base padding class abstract methods + * Optimized cast_locale function + * Allow for arbitrary Table keyword arguments in create_table_from_selectable + +------------------------------------------------------------------- Old: ---- SQLAlchemy-Utils-0.37.8.tar.gz New: ---- SQLAlchemy-Utils-0.37.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-SQLAlchemy-Utils.spec ++++++ --- /var/tmp/diff_new_pack.Ni5gzE/_old 2021-10-27 22:21:12.471198728 +0200 +++ /var/tmp/diff_new_pack.Ni5gzE/_new 2021-10-27 22:21:12.475198730 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-SQLAlchemy-Utils -Version: 0.37.8 +Version: 0.37.9 Release: 0 Summary: Various utility functions for SQLAlchemy License: BSD-3-Clause @@ -29,7 +29,6 @@ BuildRequires: %{python_module Jinja2 >= 2.3} BuildRequires: %{python_module Pygments >= 1.2} BuildRequires: %{python_module SQLAlchemy >= 1.0} -BuildRequires: %{python_module anyjson >= 0.3.3} BuildRequires: %{python_module arrow >= 0.3.4} BuildRequires: %{python_module backports.zoneinfo if %python-base < 3.9} BuildRequires: %{python_module colour >= 0.0.4} @@ -58,7 +57,6 @@ %endif Requires: python-six Recommends: python-Babel >= 1.3 -Recommends: python-anyjson >= 0.3.3 Recommends: python-arrow >= 0.3.4 Recommends: python-colour >= 0.0.4 Recommends: python-cryptography >= 0.6 ++++++ SQLAlchemy-Utils-0.37.8.tar.gz -> SQLAlchemy-Utils-0.37.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/CHANGES.rst new/SQLAlchemy-Utils-0.37.9/CHANGES.rst --- old/SQLAlchemy-Utils-0.37.8/CHANGES.rst 2021-06-28 09:21:44.000000000 +0200 +++ new/SQLAlchemy-Utils-0.37.9/CHANGES.rst 2021-10-19 09:54:10.000000000 +0200 @@ -4,6 +4,14 @@ Here you can see the full list of changes between each SQLAlchemy-Utils release. +0.37.9 (2021-10-19) +^^^^^^^^^^^^^^^^^^^ + +- Fixed base padding class abstract methods (#547, pull request courtesy of dpgaspar) +- Optimized cast_locale function (#552, pull request courtesy of tvuotila) +- Allow for arbitrary Table keyword arguments in create_table_from_selectable (#551, pull request courtesy of quoimec) + + 0.37.8 (2021-06-28) ^^^^^^^^^^^^^^^^^^^ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/PKG-INFO new/SQLAlchemy-Utils-0.37.9/PKG-INFO --- old/SQLAlchemy-Utils-0.37.8/PKG-INFO 2021-06-28 09:22:30.000000000 +0200 +++ new/SQLAlchemy-Utils-0.37.9/PKG-INFO 2021-10-19 09:54:42.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: SQLAlchemy-Utils -Version: 0.37.8 +Version: 0.37.9 Summary: Various utility functions for SQLAlchemy. Home-page: https://github.com/kvesteri/sqlalchemy-utils Author: Konsta Vesterinen, Ryan Leckey, Janne Vanhala, Vesa Uimonen @@ -24,11 +24,11 @@ Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: ~=3.4 Provides-Extra: test -Provides-Extra: anyjson Provides-Extra: babel Provides-Extra: arrow Provides-Extra: pendulum diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/SQLAlchemy_Utils.egg-info/PKG-INFO new/SQLAlchemy-Utils-0.37.9/SQLAlchemy_Utils.egg-info/PKG-INFO --- old/SQLAlchemy-Utils-0.37.8/SQLAlchemy_Utils.egg-info/PKG-INFO 2021-06-28 09:22:29.000000000 +0200 +++ new/SQLAlchemy-Utils-0.37.9/SQLAlchemy_Utils.egg-info/PKG-INFO 2021-10-19 09:54:41.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: SQLAlchemy-Utils -Version: 0.37.8 +Version: 0.37.9 Summary: Various utility functions for SQLAlchemy. Home-page: https://github.com/kvesteri/sqlalchemy-utils Author: Konsta Vesterinen, Ryan Leckey, Janne Vanhala, Vesa Uimonen @@ -24,11 +24,11 @@ Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: ~=3.4 Provides-Extra: test -Provides-Extra: anyjson Provides-Extra: babel Provides-Extra: arrow Provides-Extra: pendulum diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/SQLAlchemy_Utils.egg-info/requires.txt new/SQLAlchemy-Utils-0.37.9/SQLAlchemy_Utils.egg-info/requires.txt --- old/SQLAlchemy-Utils-0.37.8/SQLAlchemy_Utils.egg-info/requires.txt 2021-06-28 09:22:29.000000000 +0200 +++ new/SQLAlchemy-Utils-0.37.9/SQLAlchemy_Utils.egg-info/requires.txt 2021-10-19 09:54:41.000000000 +0200 @@ -1,9 +1,6 @@ six SQLAlchemy>=1.0 -[anyjson] -anyjson>=0.3.3 - [arrow] arrow>=0.3.4 @@ -52,7 +49,6 @@ Babel>=1.3 Jinja2>=2.3 Pygments>=1.2 -anyjson>=0.3.3 arrow>=0.3.4 colour>=0.0.4 cryptography>=0.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/docs/installation.rst new/SQLAlchemy-Utils-0.37.9/docs/installation.rst --- old/SQLAlchemy-Utils-0.37.8/docs/installation.rst 2017-11-11 18:53:06.000000000 +0100 +++ new/SQLAlchemy-Utils-0.37.9/docs/installation.rst 2021-10-19 09:49:21.000000000 +0200 @@ -6,14 +6,12 @@ Supported platforms ------------------- -SQLAlchemy-Utils has been tested against the following Python platforms. +SQLAlchemy-Utils is currently tested against the following Python platforms. -- cPython 2.6 (unsupported since 0.32) -- cPython 2.7 -- cPython 3.3 -- cPython 3.4 -- cPython 3.5 - cPython 3.6 +- cPython 3.7 +- cPython 3.8 +- cPython 3.9 Installing an official release diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/setup.py new/SQLAlchemy-Utils-0.37.9/setup.py --- old/SQLAlchemy-Utils-0.37.8/setup.py 2021-06-28 09:19:48.000000000 +0200 +++ new/SQLAlchemy-Utils-0.37.9/setup.py 2021-10-19 09:49:21.000000000 +0200 @@ -39,7 +39,6 @@ 'isort>=4.2.2', 'pyodbc', ], - 'anyjson': ['anyjson>=0.3.3'], 'babel': ['Babel>=1.3'], 'arrow': ['arrow>=0.3.4'], 'pendulum': ['pendulum>=2.0.5'], @@ -93,6 +92,7 @@ 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Python Modules' ] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/__init__.py new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/__init__.py --- old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/__init__.py 2021-06-28 09:21:53.000000000 +0200 +++ new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/__init__.py 2021-10-19 09:54:15.000000000 +0200 @@ -102,4 +102,4 @@ refresh_materialized_view ) -__version__ = '0.37.8' +__version__ = '0.37.9' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/i18n.py new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/i18n.py --- old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/i18n.py 2019-02-02 12:03:24.000000000 +0100 +++ new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/i18n.py 2021-10-19 09:49:21.000000000 +0200 @@ -1,5 +1,3 @@ -import inspect - import six import sqlalchemy as sa from sqlalchemy.ext.compiler import compiles @@ -27,21 +25,6 @@ ) -if six.PY2: - def get_args_count(func): - if ( - callable(func) and - not inspect.isfunction(func) and - not inspect.ismethod(func) - ): - func = func.__call__ - args = inspect.getargspec(func).args - return len(args) - 1 if inspect.ismethod(func) else len(args) -else: - def get_args_count(func): - return len(inspect.signature(func).parameters) - - def cast_locale(obj, locale, attr): """ Cast given locale to string. Supports also callbacks that return locales. @@ -52,13 +35,13 @@ Locale object or string or callable that returns a locale. """ if callable(locale): - args_count = get_args_count(locale) - if args_count == 0: - locale = locale() - elif args_count == 1: - locale = locale(obj) - elif args_count == 2: + try: locale = locale(obj, attr.key) + except TypeError: + try: + locale = locale(obj) + except TypeError: + locale = locale() if isinstance(locale, babel.Locale): return str(locale) return locale diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/types/encrypted/padding.py new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/types/encrypted/padding.py --- old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/types/encrypted/padding.py 2018-03-19 15:48:30.000000000 +0100 +++ new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/types/encrypted/padding.py 2021-10-19 09:49:21.000000000 +0200 @@ -11,10 +11,10 @@ def __init__(self, block_size): self.block_size = block_size - def pad(value): + def pad(self, value): raise NotImplementedError('Subclasses must implement this!') - def unpad(value): + def unpad(self, value): raise NotImplementedError('Subclasses must implement this!') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/types/json.py new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/types/json.py --- old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/types/json.py 2021-05-16 10:51:24.000000000 +0200 +++ new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/types/json.py 2021-10-19 09:49:21.000000000 +0200 @@ -1,17 +1,11 @@ from __future__ import absolute_import +import json + import six import sqlalchemy as sa from sqlalchemy.dialects.postgresql.base import ischema_names -from ..exceptions import ImproperlyConfigured - -json = None -try: - import anyjson as json -except ImportError: - import json as json - try: from sqlalchemy.dialects.postgresql import JSON has_postgres_json = True @@ -58,10 +52,6 @@ cache_ok = True def __init__(self, *args, **kwargs): - if json is None: - raise ImproperlyConfigured( - 'JSONType needs anyjson package installed.' - ) super(JSONType, self).__init__(*args, **kwargs) def load_dialect_impl(self, dialect): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/types/uuid.py new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/types/uuid.py --- old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/types/uuid.py 2021-06-15 12:00:43.000000000 +0200 +++ new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/types/uuid.py 2021-10-19 09:54:23.000000000 +0200 @@ -22,7 +22,7 @@ __tablename__ = 'user' # Pass `binary=False` to fallback to CHAR instead of BINARY - id = sa.Column(UUIDType(binary=False), primary_key=True) + id = sa.Column(UUIDType(binary=False), primary_key=True, default=uuid.uuid4) """ impl = types.BINARY(16) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/view.py new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/view.py --- old/SQLAlchemy-Utils-0.37.8/sqlalchemy_utils/view.py 2021-06-15 11:43:50.000000000 +0200 +++ new/SQLAlchemy-Utils-0.37.9/sqlalchemy_utils/view.py 2021-10-19 09:54:23.000000000 +0200 @@ -42,7 +42,8 @@ selectable, indexes=None, metadata=None, - aliases=None + aliases=None, + **kwargs ): if indexes is None: indexes = [] @@ -59,7 +60,7 @@ ) for c in get_columns(selectable) ] + indexes - table = sa.Table(name, metadata, *args) + table = sa.Table(name, metadata, *args, **kwargs) if not any([c.primary_key for c in get_columns(selectable)]): table.append_constraint(