Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-uamqp for openSUSE:Factory checked in at 2022-08-27 11:50:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-uamqp (Old) and /work/SRC/openSUSE:Factory/.python-uamqp.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-uamqp" Sat Aug 27 11:50:04 2022 rev:17 rq:999405 version:1.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-uamqp/python-uamqp.changes 2022-03-31 17:19:29.752725628 +0200 +++ /work/SRC/openSUSE:Factory/.python-uamqp.new.2083/python-uamqp.changes 2022-08-27 11:50:05.677843659 +0200 @@ -1,0 +2,8 @@ +Tue Aug 23 11:17:13 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- New upstream release + + Version 1.6.0 + + For detailed information about changes see the + HISTORY.rst file provided with this package + +------------------------------------------------------------------- Old: ---- uamqp-1.5.3.tar.gz New: ---- uamqp-1.6.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-uamqp.spec ++++++ --- /var/tmp/diff_new_pack.uXrhC6/_old 2022-08-27 11:50:06.245844879 +0200 +++ /var/tmp/diff_new_pack.uXrhC6/_new 2022-08-27 11:50:06.253844896 +0200 @@ -21,7 +21,7 @@ %define skip_python2 1 %endif Name: python-uamqp -Version: 1.5.3 +Version: 1.6.0 Release: 0 Summary: AMQP 10 Client Library for Python License: MIT ++++++ uamqp-1.5.3.tar.gz -> uamqp-1.6.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uamqp-1.5.3/HISTORY.rst new/uamqp-1.6.0/HISTORY.rst --- old/uamqp-1.5.3/HISTORY.rst 2022-03-23 21:53:05.000000000 +0100 +++ new/uamqp-1.6.0/HISTORY.rst 2022-08-19 00:43:21.000000000 +0200 @@ -3,6 +3,16 @@ Release History =============== +1.6.0 (2022-08-18) ++++++++++++++++++++ + +This version and all future versions will require Python 3.7+, Python 3.6 is no longer supported. + +- Added `data`, `value`, `sequence` properties to `uamqp.Message`, which return the body if the body type corresponds. +- Added `message_annotations` property to `uamqp.Message`, which is an alias for the `annotations` instance variable. +- Added `data` property to `uamqp.BatchMessage`, which returns the iterable body of the batch. +- Added `ttl` property to `uamqp.MessageHeader`, which is an alias for the `time_to_live` instance variable. + 1.5.3 (2022-03-23) +++++++++++++++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uamqp-1.5.3/PKG-INFO new/uamqp-1.6.0/PKG-INFO --- old/uamqp-1.5.3/PKG-INFO 2022-03-23 21:53:35.000000000 +0100 +++ new/uamqp-1.6.0/PKG-INFO 2022-08-19 00:43:57.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: uamqp -Version: 1.5.3 +Version: 1.6.0 Summary: AMQP 1.0 Client Library for Python Home-page: https://github.com/Azure/azure-uamqp-python Author: Microsoft Corporation @@ -142,6 +142,16 @@ Release History =============== + 1.6.0 (2022-08-18) + +++++++++++++++++++ + + This version and all future versions will require Python 3.7+, Python 3.6 is no longer supported. + + - Added `data`, `value`, `sequence` properties to `uamqp.Message`, which return the body if the body type corresponds. + - Added `message_annotations` property to `uamqp.Message`, which is an alias for the `annotations` instance variable. + - Added `data` property to `uamqp.BatchMessage`, which returns the iterable body of the batch. + - Added `ttl` property to `uamqp.MessageHeader`, which is an alias for the `time_to_live` instance variable. + 1.5.3 (2022-03-23) +++++++++++++++++++ @@ -654,10 +664,9 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 :: Only Classifier: Programming Language :: Python :: 3 -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: Programming Language :: Python :: 3.10 Classifier: License :: OSI Approved :: MIT License -Requires-Python: >=3.6 +Requires-Python: >=3.7 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uamqp-1.5.3/setup.py new/uamqp-1.6.0/setup.py --- old/uamqp-1.5.3/setup.py 2022-03-23 21:53:05.000000000 +0100 +++ new/uamqp-1.6.0/setup.py 2022-08-19 00:43:21.000000000 +0200 @@ -272,7 +272,6 @@ 'Programming Language :: Python', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', @@ -290,5 +289,5 @@ cmdclass={ 'build_ext': build_ext, }, - python_requires=">=3.6", + python_requires=">=3.7", ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uamqp-1.5.3/uamqp/__init__.py new/uamqp-1.6.0/uamqp/__init__.py --- old/uamqp-1.5.3/uamqp/__init__.py 2022-03-23 21:53:05.000000000 +0100 +++ new/uamqp-1.6.0/uamqp/__init__.py 2022-08-19 00:43:21.000000000 +0200 @@ -35,7 +35,7 @@ pass # Async not supported. -__version__ = "1.5.3" +__version__ = "1.6.0" _logger = logging.getLogger(__name__) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uamqp-1.5.3/uamqp/async_ops/client_async.py new/uamqp-1.6.0/uamqp/async_ops/client_async.py --- old/uamqp-1.5.3/uamqp/async_ops/client_async.py 2022-03-23 21:53:05.000000000 +0100 +++ new/uamqp-1.6.0/uamqp/async_ops/client_async.py 2022-08-19 00:43:21.000000000 +0200 @@ -360,7 +360,7 @@ return False return True - async def do_work_async(self): + async def do_work_async(self, **kwargs): # pylint: disable=unused-argument """Run a single connection iteration asynchronously. This will return `True` if the connection is still open and ready to be used for further work, or `False` if it needs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uamqp-1.5.3/uamqp/authentication/common.py new/uamqp-1.6.0/uamqp/authentication/common.py --- old/uamqp-1.5.3/uamqp/authentication/common.py 2022-03-23 21:53:05.000000000 +0100 +++ new/uamqp-1.6.0/uamqp/authentication/common.py 2022-08-19 00:43:21.000000000 +0200 @@ -66,7 +66,7 @@ return value.encode(self._encoding) if isinstance(value, six.text_type) else value def set_io(self, hostname, port, http_proxy, transport_type): - if transport_type == TransportType.AmqpOverWebsocket or http_proxy is not None: + if transport_type and transport_type.value == TransportType.AmqpOverWebsocket.value or http_proxy is not None: self.set_wsio(hostname, port or constants.DEFAULT_AMQP_WSS_PORT, http_proxy) else: self.set_tlsio(hostname, port or constants.DEFAULT_AMQPS_PORT) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uamqp-1.5.3/uamqp/client.py new/uamqp-1.6.0/uamqp/client.py --- old/uamqp-1.5.3/uamqp/client.py 2022-03-23 21:53:05.000000000 +0100 +++ new/uamqp-1.6.0/uamqp/client.py 2022-08-19 00:43:21.000000000 +0200 @@ -283,7 +283,10 @@ self.message_handler = None self._shutdown = True if self._keep_alive_thread: - self._keep_alive_thread.join() + try: + self._keep_alive_thread.join() + except RuntimeError: # Probably thread failed to start in .open() + logging.info("Keep alive thread failed to join.", exc_info=True) self._keep_alive_thread = None if not self._session: return # already closed. @@ -383,7 +386,7 @@ return False return True - def do_work(self): + def do_work(self, **kwargs): # pylint: disable=unused-argument """Run a single connection iteration. This will return `True` if the connection is still open and ready to be used for further work, or `False` if it needs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uamqp-1.5.3/uamqp/message.py new/uamqp-1.6.0/uamqp/message.py --- old/uamqp-1.5.3/uamqp/message.py 2022-03-23 21:53:05.000000000 +0100 +++ new/uamqp-1.6.0/uamqp/message.py 2022-08-19 00:43:21.000000000 +0200 @@ -226,6 +226,10 @@ self._annotations = value @property + def message_annotations(self): + return self.annotations + + @property def delivery_annotations(self): if self._need_further_parse: self._parse_message_properties() @@ -235,6 +239,39 @@ def delivery_annotations(self, value): self._delivery_annotations = value + @property + def data(self): + if not self._message or not self._body: + return None + # pylint: disable=protected-access + if self._body.type == c_uamqp.MessageBodyType.DataType: + return self._body.data + return None + + @property + def sequence(self): + try: + if not self._message or not self._body: + return None + except AttributeError: + return None + # pylint: disable=protected-access + if self._body.type == c_uamqp.MessageBodyType.SequenceType: + return self._body.data + return None + + @property + def value(self): + try: + if not self._message or not self._body: + return None + except AttributeError: + return None + # pylint: disable=protected-access + if self._body.type == c_uamqp.MessageBodyType.ValueType: + return self._body.data + return None + @classmethod def decode_from_bytes(cls, data): """Decode an AMQP message from a bytearray. @@ -730,6 +767,14 @@ _logger.debug("Sent all batched data.") break + @property + def data(self): + """Returns an iterable source of data, where each value will be considered the + body of a single message in the batch. + :rtype: iterable + """ + return self._body_gen + def gather(self): """Return all the messages represented by this object. This will convert the batch data into individual Message objects, which may be one @@ -1351,6 +1396,15 @@ } ) + @property + def ttl(self): + """ + Alias for time_to_live. + + :rtype: int + """ + return self.time_to_live + def get_header_obj(self): """Get the underlying C reference from this object. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/uamqp-1.5.3/uamqp.egg-info/PKG-INFO new/uamqp-1.6.0/uamqp.egg-info/PKG-INFO --- old/uamqp-1.5.3/uamqp.egg-info/PKG-INFO 2022-03-23 21:53:34.000000000 +0100 +++ new/uamqp-1.6.0/uamqp.egg-info/PKG-INFO 2022-08-19 00:43:56.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: uamqp -Version: 1.5.3 +Version: 1.6.0 Summary: AMQP 1.0 Client Library for Python Home-page: https://github.com/Azure/azure-uamqp-python Author: Microsoft Corporation @@ -142,6 +142,16 @@ Release History =============== + 1.6.0 (2022-08-18) + +++++++++++++++++++ + + This version and all future versions will require Python 3.7+, Python 3.6 is no longer supported. + + - Added `data`, `value`, `sequence` properties to `uamqp.Message`, which return the body if the body type corresponds. + - Added `message_annotations` property to `uamqp.Message`, which is an alias for the `annotations` instance variable. + - Added `data` property to `uamqp.BatchMessage`, which returns the iterable body of the batch. + - Added `ttl` property to `uamqp.MessageHeader`, which is an alias for the `time_to_live` instance variable. + 1.5.3 (2022-03-23) +++++++++++++++++++ @@ -654,10 +664,9 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 :: Only Classifier: Programming Language :: Python :: 3 -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: Programming Language :: Python :: 3.10 Classifier: License :: OSI Approved :: MIT License -Requires-Python: >=3.6 +Requires-Python: >=3.7