Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-autobahn for openSUSE:Factory checked in at 2022-03-28 17:00:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-autobahn (Old) and /work/SRC/openSUSE:Factory/.python-autobahn.new.1900 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-autobahn" Mon Mar 28 17:00:50 2022 rev:24 rq:965198 version:22.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-autobahn/python-autobahn.changes 2022-03-11 21:41:44.174092250 +0100 +++ /work/SRC/openSUSE:Factory/.python-autobahn.new.1900/python-autobahn.changes 2022-03-28 17:01:43.217063854 +0200 @@ -1,0 +2,8 @@ +Sun Mar 27 13:53:14 UTC 2022 - Dirk M??ller <dmuel...@suse.com> + +- update to 22.3.1: + * fix generate_token + * reduce twisted log noise for wamp clients + * add GitHub URL for PyPi + +------------------------------------------------------------------- Old: ---- autobahn-22.2.2.tar.gz New: ---- autobahn-22.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-autobahn.spec ++++++ --- /var/tmp/diff_new_pack.wynUDM/_old 2022-03-28 17:01:43.741064566 +0200 +++ /var/tmp/diff_new_pack.wynUDM/_new 2022-03-28 17:01:43.745064571 +0200 @@ -25,7 +25,7 @@ %{?!python_module:%define python_module() python-%{**} %{!?skip_python3:python3-%{**}}} %define skip_python2 1 Name: python-autobahn -Version: 22.2.2 +Version: 22.3.1 Release: 0 Summary: WebSocket and WAMP in Python for Twisted and asyncio License: MIT ++++++ autobahn-22.2.2.tar.gz -> autobahn-22.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autobahn-22.2.2/PKG-INFO new/autobahn-22.3.1/PKG-INFO --- old/autobahn-22.2.2/PKG-INFO 2022-02-24 01:58:05.050959600 +0100 +++ new/autobahn-22.3.1/PKG-INFO 2022-03-26 21:29:24.552690500 +0100 @@ -1,10 +1,11 @@ Metadata-Version: 2.1 Name: autobahn -Version: 22.2.2 +Version: 22.3.1 Summary: WebSocket client & server library, WAMP real-time framework Home-page: http://crossbar.io/autobahn Author: Crossbar.io Technologies GmbH License: MIT License +Project-URL: Source, https://github.com/crossbario/autobahn-python Description: Autobahn\|Python ================ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autobahn-22.2.2/autobahn/_version.py new/autobahn-22.3.1/autobahn/_version.py --- old/autobahn-22.2.2/autobahn/_version.py 2022-02-24 01:57:41.000000000 +0100 +++ new/autobahn-22.3.1/autobahn/_version.py 2022-03-26 21:28:48.000000000 +0100 @@ -24,6 +24,6 @@ # ############################################################################### -__version__ = '22.2.2' +__version__ = '22.3.1' -__build__ = u'00000000-0000000' +__build__ = '00000000-0000000' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autobahn-22.2.2/autobahn/test/test_util.py new/autobahn-22.3.1/autobahn/test/test_util.py --- old/autobahn-22.2.2/autobahn/test/test_util.py 2021-03-30 08:34:18.000000000 +0200 +++ new/autobahn-22.3.1/autobahn/test/test_util.py 2022-03-15 02:09:22.000000000 +0100 @@ -28,7 +28,7 @@ import unittest from binascii import b2a_hex -from autobahn.util import IdGenerator, parse_activation_code, generate_activation_code +from autobahn.util import IdGenerator, parse_activation_code, generate_activation_code, generate_token class TestIdGenerator(unittest.TestCase): @@ -58,3 +58,10 @@ code = b2a_hex(os.urandom(20)).decode() parsed_code = parse_activation_code(code) self.assertEqual(None, parsed_code) + + def test_generate_token(self): + token = generate_token(5, 4) + self.assertEqual(len(token), len('NUAG-UPQJ-MFGA-K5P5-MUGA')) + self.assertEqual(len(token.split('-')), 5) + for part in token.split('-'): + self.assertEqual(len(part), 4) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autobahn-22.2.2/autobahn/twisted/rawsocket.py new/autobahn-22.3.1/autobahn/twisted/rawsocket.py --- old/autobahn-22.2.2/autobahn/twisted/rawsocket.py 2020-08-11 03:57:49.000000000 +0200 +++ new/autobahn-22.3.1/autobahn/twisted/rawsocket.py 2022-03-26 03:54:46.000000000 +0100 @@ -553,6 +553,9 @@ """ WampRawSocketFactory.__init__(self, factory) + # Reduce the factory logs noise + self.noisy = False + if serializer is None: # try CBOR WAMP serializer diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autobahn-22.2.2/autobahn/twisted/websocket.py new/autobahn-22.3.1/autobahn/twisted/websocket.py --- old/autobahn-22.2.2/autobahn/twisted/websocket.py 2021-03-02 16:08:24.000000000 +0100 +++ new/autobahn-22.3.1/autobahn/twisted/websocket.py 2022-03-26 03:54:46.000000000 +0100 @@ -858,3 +858,6 @@ kwargs['protocols'] = self._protocols WebSocketClientFactory.__init__(self, *args, **kwargs) + + # Reduce the factory logs noise + self.noisy = False diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autobahn-22.2.2/autobahn/util.py new/autobahn-22.3.1/autobahn/util.py --- old/autobahn-22.2.2/autobahn/util.py 2022-01-28 22:42:24.000000000 +0100 +++ new/autobahn-22.3.1/autobahn/util.py 2022-03-15 02:09:22.000000000 +0100 @@ -358,9 +358,9 @@ @public def generate_token(char_groups: int, chars_per_group: int, - chars=Optional[str], - sep=Optional[str], - lower_case=False) -> str: + chars: Optional[str] = None, + sep: Optional[str] = None, + lower_case: Optional[bool] = False) -> str: """ Generate cryptographically strong tokens, which are strings like `M6X5-YO5W-T5IK`. These can be used e.g. for used-only-once activation tokens or the like. @@ -400,7 +400,7 @@ """ assert(type(char_groups) == int) assert(type(chars_per_group) == int) - assert(chars is None or type(chars) == str) + assert(chars is None or type(chars) == str), 'chars must be str, was {}'.format(type(chars)) chars = chars or DEFAULT_TOKEN_CHARS if lower_case: chars = chars.lower() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autobahn-22.2.2/autobahn/wamp/component.py new/autobahn-22.3.1/autobahn/wamp/component.py --- old/autobahn-22.2.2/autobahn/wamp/component.py 2022-01-28 21:58:07.000000000 +0100 +++ new/autobahn-22.3.1/autobahn/wamp/component.py 2022-03-26 03:54:46.000000000 +0100 @@ -391,7 +391,7 @@ @component.register( "com.example.add", - options=RegisterOptions(invoke='round_robin'), + options=RegisterOptions(invoke='roundrobin'), ) def add(*args, **kw): print("add({}, {}): event received".format(args, kw)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autobahn-22.2.2/autobahn.egg-info/PKG-INFO new/autobahn-22.3.1/autobahn.egg-info/PKG-INFO --- old/autobahn-22.2.2/autobahn.egg-info/PKG-INFO 2022-02-24 01:58:04.000000000 +0100 +++ new/autobahn-22.3.1/autobahn.egg-info/PKG-INFO 2022-03-26 21:29:24.000000000 +0100 @@ -1,10 +1,11 @@ Metadata-Version: 2.1 Name: autobahn -Version: 22.2.2 +Version: 22.3.1 Summary: WebSocket client & server library, WAMP real-time framework Home-page: http://crossbar.io/autobahn Author: Crossbar.io Technologies GmbH License: MIT License +Project-URL: Source, https://github.com/crossbario/autobahn-python Description: Autobahn\|Python ================ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autobahn-22.2.2/setup.py new/autobahn-22.3.1/setup.py --- old/autobahn-22.2.2/setup.py 2022-02-11 21:58:23.000000000 +0100 +++ new/autobahn-22.3.1/setup.py 2022-03-15 01:21:09.000000000 +0100 @@ -262,6 +262,9 @@ license='MIT License', author='Crossbar.io Technologies GmbH', url='http://crossbar.io/autobahn', + project_urls={ + 'Source': 'https://github.com/crossbario/autobahn-python', + }, platforms='Any', install_requires=[ 'txaio>=21.2.1', # MIT license (https://github.com/crossbario/txaio)