Hello community, here is the log from the commit of package python-SQLAlchemy-Utils for openSUSE:Factory checked in at 2020-03-27 22:01:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-SQLAlchemy-Utils (Old) and /work/SRC/openSUSE:Factory/.python-SQLAlchemy-Utils.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-SQLAlchemy-Utils" Fri Mar 27 22:01:09 2020 rev:24 rq:789004 version:0.36.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-SQLAlchemy-Utils/python-SQLAlchemy-Utils.changes 2020-01-02 14:43:39.528966744 +0100 +++ /work/SRC/openSUSE:Factory/.python-SQLAlchemy-Utils.new.3160/python-SQLAlchemy-Utils.changes 2020-03-27 22:01:18.286932612 +0100 @@ -1,0 +2,7 @@ +Fri Mar 27 11:02:54 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- update to version 0.36.3 + * Added hash method for PhoneNumberType (#428, pull request courtesy of hanc1208) + * Added repr for UUIDType (#424, pull request courtesy of ziima) + +------------------------------------------------------------------- Old: ---- SQLAlchemy-Utils-0.36.1.tar.gz New: ---- SQLAlchemy-Utils-0.36.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-SQLAlchemy-Utils.spec ++++++ --- /var/tmp/diff_new_pack.tSEAAo/_old 2020-03-27 22:01:19.106933089 +0100 +++ /var/tmp/diff_new_pack.tSEAAo/_new 2020-03-27 22:01:19.110933091 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-SQLAlchemy-Utils # -# Copyright (c) 2019 SUSE LLC +# 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 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-SQLAlchemy-Utils -Version: 0.36.1 +Version: 0.36.3 Release: 0 Summary: Various utility functions for SQLAlchemy License: BSD-3-Clause ++++++ SQLAlchemy-Utils-0.36.1.tar.gz -> SQLAlchemy-Utils-0.36.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.36.1/CHANGES.rst new/SQLAlchemy-Utils-0.36.3/CHANGES.rst --- old/SQLAlchemy-Utils-0.36.1/CHANGES.rst 2019-12-23 09:48:35.000000000 +0100 +++ new/SQLAlchemy-Utils-0.36.3/CHANGES.rst 2020-03-18 10:26:44.000000000 +0100 @@ -4,6 +4,18 @@ Here you can see the full list of changes between each SQLAlchemy-Utils release. +0.36.3 (2019-03-18) +^^^^^^^^^^^^^^^^^^^ + +- Added hash method for PhoneNumberType (#428, pull request courtesy of hanc1208) + + +0.36.2 (2019-03-16) +^^^^^^^^^^^^^^^^^^^ + +- Added repr for UUIDType (#424, pull request courtesy of ziima) + + 0.36.1 (2019-12-23) ^^^^^^^^^^^^^^^^^^^ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.36.1/PKG-INFO new/SQLAlchemy-Utils-0.36.3/PKG-INFO --- old/SQLAlchemy-Utils-0.36.1/PKG-INFO 2019-12-23 09:54:52.000000000 +0100 +++ new/SQLAlchemy-Utils-0.36.3/PKG-INFO 2020-03-18 10:27:45.000000000 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: SQLAlchemy-Utils -Version: 0.36.1 +Version: 0.36.3 Summary: Various utility functions for SQLAlchemy. Home-page: https://github.com/kvesteri/sqlalchemy-utils Author: Konsta Vesterinen, Ryan Leckey, Janne Vanhala, Vesa Uimonen @@ -27,3 +27,17 @@ Classifier: Programming Language :: Python :: 3.7 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content Classifier: Topic :: Software Development :: Libraries :: Python Modules +Provides-Extra: test +Provides-Extra: anyjson +Provides-Extra: babel +Provides-Extra: arrow +Provides-Extra: intervals +Provides-Extra: phone +Provides-Extra: password +Provides-Extra: color +Provides-Extra: ipaddress +Provides-Extra: enum +Provides-Extra: timezone +Provides-Extra: url +Provides-Extra: encrypted +Provides-Extra: test_all diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.36.1/SQLAlchemy_Utils.egg-info/PKG-INFO new/SQLAlchemy-Utils-0.36.3/SQLAlchemy_Utils.egg-info/PKG-INFO --- old/SQLAlchemy-Utils-0.36.1/SQLAlchemy_Utils.egg-info/PKG-INFO 2019-12-23 09:54:51.000000000 +0100 +++ new/SQLAlchemy-Utils-0.36.3/SQLAlchemy_Utils.egg-info/PKG-INFO 2020-03-18 10:27:44.000000000 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 2.1 Name: SQLAlchemy-Utils -Version: 0.36.1 +Version: 0.36.3 Summary: Various utility functions for SQLAlchemy. Home-page: https://github.com/kvesteri/sqlalchemy-utils Author: Konsta Vesterinen, Ryan Leckey, Janne Vanhala, Vesa Uimonen @@ -27,3 +27,17 @@ Classifier: Programming Language :: Python :: 3.7 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content Classifier: Topic :: Software Development :: Libraries :: Python Modules +Provides-Extra: test +Provides-Extra: anyjson +Provides-Extra: babel +Provides-Extra: arrow +Provides-Extra: intervals +Provides-Extra: phone +Provides-Extra: password +Provides-Extra: color +Provides-Extra: ipaddress +Provides-Extra: enum +Provides-Extra: timezone +Provides-Extra: url +Provides-Extra: encrypted +Provides-Extra: test_all diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.36.1/SQLAlchemy_Utils.egg-info/requires.txt new/SQLAlchemy-Utils-0.36.3/SQLAlchemy_Utils.egg-info/requires.txt --- old/SQLAlchemy-Utils-0.36.1/SQLAlchemy_Utils.egg-info/requires.txt 2019-12-23 09:54:51.000000000 +0100 +++ new/SQLAlchemy-Utils-0.36.3/SQLAlchemy_Utils.egg-info/requires.txt 2020-03-18 10:27:44.000000000 +0100 @@ -17,16 +17,14 @@ cryptography>=0.6 [enum] -enum34 [intervals] intervals>=0.7.1 [ipaddress] -ipaddr [password] -passlib >= 1.6, < 2.0 +passlib<2.0,>=1.6 [phone] phonenumbers>=5.9.2 @@ -53,10 +51,8 @@ Babel>=1.3 colour>=0.0.4 cryptography>=0.6 -enum34 intervals>=0.7.1 -ipaddr -passlib >= 1.6, < 2.0 +passlib<2.0,>=1.6 phonenumbers>=5.9.2 pytest>=2.7.1 Pygments>=1.2 @@ -73,10 +69,10 @@ isort>=4.2.2 pyodbc python-dateutil -furl >= 0.4.1 +furl>=0.4.1 [timezone] python-dateutil [url] -furl >= 0.4.1 +furl>=0.4.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.36.1/setup.cfg new/SQLAlchemy-Utils-0.36.3/setup.cfg --- old/SQLAlchemy-Utils-0.36.1/setup.cfg 2019-12-23 09:54:52.000000000 +0100 +++ new/SQLAlchemy-Utils-0.36.3/setup.cfg 2020-03-18 10:27:45.000000000 +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/SQLAlchemy-Utils-0.36.1/sqlalchemy_utils/__init__.py new/SQLAlchemy-Utils-0.36.3/sqlalchemy_utils/__init__.py --- old/SQLAlchemy-Utils-0.36.1/sqlalchemy_utils/__init__.py 2019-12-23 09:48:02.000000000 +0100 +++ new/SQLAlchemy-Utils-0.36.3/sqlalchemy_utils/__init__.py 2020-03-18 10:26:59.000000000 +0100 @@ -100,4 +100,4 @@ refresh_materialized_view ) -__version__ = '0.36.1' +__version__ = '0.36.3' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.36.1/sqlalchemy_utils/types/phone_number.py new/SQLAlchemy-Utils-0.36.3/sqlalchemy_utils/types/phone_number.py --- old/SQLAlchemy-Utils-0.36.1/sqlalchemy_utils/types/phone_number.py 2018-11-19 13:04:58.000000000 +0100 +++ new/SQLAlchemy-Utils-0.36.3/sqlalchemy_utils/types/phone_number.py 2020-03-18 10:24:41.000000000 +0100 @@ -53,7 +53,7 @@ _phone_number = sa.Column(sa.Unicode(20)) country_code = sa.Column(sa.Unicode(8)) - phonenumber = sa.orm.composite( + phone_number = sa.orm.composite( PhoneNumber, _phone_number, country_code @@ -136,6 +136,9 @@ def __unicode__(self): return self.national + def __hash__(self): + return hash(self.e164) + class PhoneNumberType(types.TypeDecorator, ScalarCoercible): """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.36.1/sqlalchemy_utils/types/uuid.py new/SQLAlchemy-Utils-0.36.3/sqlalchemy_utils/types/uuid.py --- old/SQLAlchemy-Utils-0.36.1/sqlalchemy_utils/types/uuid.py 2017-09-29 12:32:21.000000000 +0200 +++ new/SQLAlchemy-Utils-0.36.3/sqlalchemy_utils/types/uuid.py 2020-03-16 12:56:33.000000000 +0100 @@ -2,7 +2,7 @@ import uuid -from sqlalchemy import types +from sqlalchemy import types, util from sqlalchemy.dialects import mssql, postgresql from .scalar_coercible import ScalarCoercible @@ -35,6 +35,9 @@ self.binary = binary self.native = native + def __repr__(self): + return util.generic_repr(self) + def load_dialect_impl(self, dialect): if dialect.name == 'postgresql' and self.native: # Use the native UUID type. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.36.1/tests/types/test_phonenumber.py new/SQLAlchemy-Utils-0.36.3/tests/types/test_phonenumber.py --- old/SQLAlchemy-Utils-0.36.1/tests/types/test_phonenumber.py 2018-11-19 13:04:58.000000000 +0100 +++ new/SQLAlchemy-Utils-0.36.3/tests/types/test_phonenumber.py 2020-03-18 10:24:41.000000000 +0100 @@ -110,6 +110,13 @@ else: assert str(number) == number.national + def test_phone_number_hash(self): + number1 = PhoneNumber('+821023456789') + number2 = PhoneNumber('+82 10-2345-6789') + assert hash(number1) == hash(number2) + assert hash(number1) == hash(number1.e164) + assert {number1} == {number2} + @pytest.mark.skipif('types.phone_number.phonenumbers is None') class TestPhoneNumberType(object): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SQLAlchemy-Utils-0.36.1/tests/types/test_uuid.py new/SQLAlchemy-Utils-0.36.3/tests/types/test_uuid.py --- old/SQLAlchemy-Utils-0.36.1/tests/types/test_uuid.py 2016-04-25 16:20:07.000000000 +0200 +++ new/SQLAlchemy-Utils-0.36.3/tests/types/test_uuid.py 2020-03-16 12:56:33.000000000 +0100 @@ -24,6 +24,16 @@ class TestUUIDType(object): + def test_repr(self): + plain = UUIDType() + assert repr(plain) == 'UUIDType()' + + text = UUIDType(binary=False) + assert repr(text) == 'UUIDType(binary=False)' + + not_native = UUIDType(native=False) + assert repr(not_native) == 'UUIDType(native=False)' + def test_commit(self, session, User): obj = User() obj.id = uuid.uuid4().hex