Hello community, here is the log from the commit of package python-nbxmpp for openSUSE:Factory checked in at 2018-05-29 16:49:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nbxmpp (Old) and /work/SRC/openSUSE:Factory/.python-nbxmpp.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nbxmpp" Tue May 29 16:49:15 2018 rev:19 rq:611169 version:0.6.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nbxmpp/python-nbxmpp.changes 2018-05-15 10:30:55.469647941 +0200 +++ /work/SRC/openSUSE:Factory/.python-nbxmpp.new/python-nbxmpp.changes 2018-05-29 16:49:35.777731895 +0200 @@ -1,0 +2,13 @@ +Tue May 22 08:43:58 UTC 2018 - [email protected] + +- Use setuptools not devel to reduce dependency requirements + +------------------------------------------------------------------- +Tue May 22 08:30:59 UTC 2018 - [email protected] + +- Update to 0.6.6: + * Record all SSL errors instead of only the first + * Pass arguments to plugin/plugout methods + * Allow the Roster to be initalized without requesting it from the server + +------------------------------------------------------------------- Old: ---- nbxmpp-0.6.5.tar.gz New: ---- nbxmpp-0.6.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nbxmpp.spec ++++++ --- /var/tmp/diff_new_pack.OJSVTn/_old 2018-05-29 16:49:36.389709375 +0200 +++ /var/tmp/diff_new_pack.OJSVTn/_new 2018-05-29 16:49:36.393709228 +0200 @@ -19,14 +19,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define _name nbxmpp Name: python-nbxmpp -Version: 0.6.5 +Version: 0.6.6 Release: 0 Summary: XMPP library by Gajim team License: GPL-3.0-or-later Group: Development/Languages/Python -Url: https://python-nbxmpp.gajim.org/ +URL: https://python-nbxmpp.gajim.org/ Source: https://files.pythonhosted.org/packages/source/n/%{_name}/%{_name}-%{version}.tar.gz -BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -56,11 +56,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib}/ %files %{python_files} -%if 0%{?suse_version} >= 1500 %license COPYING -%else -%doc COPYING -%endif %{python_sitelib}/%{_name}/ %{python_sitelib}/%{_name}-* ++++++ nbxmpp-0.6.5.tar.gz -> nbxmpp-0.6.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.5/ChangeLog new/nbxmpp-0.6.6/ChangeLog --- old/nbxmpp-0.6.5/ChangeLog 2018-04-30 13:50:31.000000000 +0200 +++ new/nbxmpp-0.6.6/ChangeLog 2018-05-19 20:52:45.000000000 +0200 @@ -1,3 +1,9 @@ +python-nbxmpp 0.6.6 (20 May 2018) + + * Record all SSL errors instead of only the first + * Pass arguments to plugin/plugout methods + * Allow the Roster to be initalized without requesting it from the server + python-nbxmpp 0.6.5 (30 April 2018) * Fix BOSH usage (don't set ALPN) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.5/PKG-INFO new/nbxmpp-0.6.6/PKG-INFO --- old/nbxmpp-0.6.5/PKG-INFO 2018-04-30 13:53:57.000000000 +0200 +++ new/nbxmpp-0.6.6/PKG-INFO 2018-05-19 20:56:31.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: nbxmpp -Version: 0.6.5 +Version: 0.6.6 Summary: Non blocking Jabber/XMPP module Home-page: http://dev.gajim.org/gajim/python-nbxmpp Author: Yann Leboulanger diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.5/nbxmpp/__init__.py new/nbxmpp-0.6.6/nbxmpp/__init__.py --- old/nbxmpp-0.6.5/nbxmpp/__init__.py 2018-04-30 13:48:45.000000000 +0200 +++ new/nbxmpp-0.6.6/nbxmpp/__init__.py 2018-05-19 20:52:45.000000000 +0200 @@ -17,4 +17,4 @@ from .plugin import PlugIn from .smacks import Smacks -__version__ = "0.6.5" +__version__ = "0.6.6" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.5/nbxmpp/bosh.py new/nbxmpp-0.6.6/nbxmpp/bosh.py --- old/nbxmpp-0.6.5/nbxmpp/bosh.py 2017-11-29 21:25:08.000000000 +0100 +++ new/nbxmpp-0.6.6/nbxmpp/bosh.py 2018-05-02 13:56:23.000000000 +0200 @@ -93,8 +93,10 @@ # ssl variables self.ssl_certificate = None + # first ssl error self.ssl_errnum = 0 - + # all ssl errors + self.ssl_errors = [] def connect(self, conn_5tuple, on_connect, on_connect_failure): NonBlockingTransport.connect(self, conn_5tuple, on_connect, on_connect_failure) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.5/nbxmpp/client_nb.py new/nbxmpp-0.6.6/nbxmpp/client_nb.py --- old/nbxmpp-0.6.5/nbxmpp/client_nb.py 2018-03-17 17:37:47.000000000 +0100 +++ new/nbxmpp-0.6.6/nbxmpp/client_nb.py 2018-05-19 20:52:45.000000000 +0200 @@ -601,12 +601,13 @@ self.NonBlockingBind.NonBlockingBind(self._Resource, self._on_sasl_auth) return True - def initRoster(self, version=''): + def initRoster(self, version='', request=True): """ Plug in the roster """ if 'NonBlockingRoster' not in self.__dict__: - return roster_nb.NonBlockingRoster.get_instance(version=version).PlugIn(self) + return roster_nb.NonBlockingRoster.get_instance( + version=version).PlugIn(self, request=request) def getRoster(self, on_ready=None, force=False): """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.5/nbxmpp/plugin.py new/nbxmpp-0.6.6/nbxmpp/plugin.py --- old/nbxmpp-0.6.5/nbxmpp/plugin.py 2017-01-01 23:13:23.000000000 +0100 +++ new/nbxmpp-0.6.6/nbxmpp/plugin.py 2018-05-19 20:52:45.000000000 +0200 @@ -37,7 +37,7 @@ def __init__(self): self._exported_methods=[] - def PlugIn(self, owner): + def PlugIn(self, owner, *args, **kwargs): """ Attach to owner and register ourself and our _exported_methods in it. If defined by a subclass, call self.plugin(owner) to execute hook @@ -62,9 +62,9 @@ # Execute hook if hasattr(self, 'plugin'): - return self.plugin(owner) + return self.plugin(owner, *args, **kwargs) - def PlugOut(self): + def PlugOut(self, *args, **kwargs): """ Unregister our _exported_methods from owner and detach from it. If defined by a subclass, call self.plugout() after unplugging to execute @@ -82,7 +82,7 @@ del self._owner.__dict__[self.__class__.__name__] # Execute hook if hasattr(self, 'plugout'): - return self.plugout() + return self.plugout(*args, **kwargs) del self._owner @classmethod diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.5/nbxmpp/tls_nb.py new/nbxmpp-0.6.6/nbxmpp/tls_nb.py --- old/nbxmpp-0.6.5/nbxmpp/tls_nb.py 2018-04-30 13:46:12.000000000 +0200 +++ new/nbxmpp-0.6.6/nbxmpp/tls_nb.py 2018-05-02 13:56:23.000000000 +0200 @@ -508,7 +508,13 @@ def _ssl_verify_callback(self, sslconn, cert, errnum, depth, ok): # Exceptions can't propagate up through this callback, so print them here. try: + if errnum: + self._owner.ssl_errors.append(errnum) + # This stores all ssl errors that are encountered while + # the chain is verifyed if not self._owner.ssl_errnum: + # This records the first ssl error that is encountered + # we keep this because of backwards compatibility self._owner.ssl_errnum = errnum if depth == 0: self._owner.ssl_certificate = cert diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.5/nbxmpp/transports_nb.py new/nbxmpp-0.6.6/nbxmpp/transports_nb.py --- old/nbxmpp-0.6.5/nbxmpp/transports_nb.py 2018-04-30 13:46:12.000000000 +0200 +++ new/nbxmpp-0.6.6/nbxmpp/transports_nb.py 2018-05-02 13:56:23.000000000 +0200 @@ -339,7 +339,10 @@ # ssl variables self.ssl_certificate = None + # first ssl error self.ssl_errnum = 0 + # all ssl errors + self.ssl_errors = [] self.alpn = alpn diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nbxmpp-0.6.5/setup.py new/nbxmpp-0.6.6/setup.py --- old/nbxmpp-0.6.5/setup.py 2018-04-30 13:48:55.000000000 +0200 +++ new/nbxmpp-0.6.6/setup.py 2018-05-19 20:52:45.000000000 +0200 @@ -3,10 +3,10 @@ from distutils.core import setup setup(name='nbxmpp', - version='0.6.5', + version='0.6.6', description='Non blocking Jabber/XMPP module', author='Yann Leboulanger', author_email='[email protected]', url='http://dev.gajim.org/gajim/python-nbxmpp', packages=['nbxmpp'], -) + )
