Hello community,

here is the log from the commit of package python-amqpstorm for 
openSUSE:Factory checked in at 2018-09-10 12:32:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-amqpstorm (Old)
 and      /work/SRC/openSUSE:Factory/.python-amqpstorm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-amqpstorm"

Mon Sep 10 12:32:05 2018 rev:2 rq:634658 version:2.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-amqpstorm/python-amqpstorm.changes        
2018-08-31 10:46:49.379375221 +0200
+++ /work/SRC/openSUSE:Factory/.python-amqpstorm.new/python-amqpstorm.changes   
2018-09-10 12:32:06.410628419 +0200
@@ -1,0 +2,6 @@
+Mon Sep 10 06:56:40 UTC 2018 - Tomáš Chvátal <tchva...@suse.com>
+
+- Update to 2.4.2:
+  * Install license file out of the box
+
+-------------------------------------------------------------------

Old:
----
  AMQPStorm-2.4.1.tar.gz
  LICENSE

New:
----
  AMQPStorm-2.4.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-amqpstorm.spec ++++++
--- /var/tmp/diff_new_pack.bYPj27/_old  2018-09-10 12:32:07.790626334 +0200
+++ /var/tmp/diff_new_pack.bYPj27/_new  2018-09-10 12:32:07.794626328 +0200
@@ -18,14 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-amqpstorm
-Version:        2.4.1
+Version:        2.4.2
 Release:        0
 Summary:        Thread-safe Python RabbitMQ Client & Management library
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/eandersson/amqpstorm
 Source:         
https://files.pythonhosted.org/packages/source/A/AMQPStorm/AMQPStorm-%{version}.tar.gz
-Source1:        
https://raw.githubusercontent.com/eandersson/amqpstorm/master/LICENSE
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module nose-timer}
 BuildRequires:  %{python_module nose}
@@ -48,12 +47,13 @@
 
 %prep
 %setup -q -n AMQPStorm-%{version}
-cp %{SOURCE1} .
 
 %build
+export LANG="en_US.UTF8"
 %python_build
 
 %install
+export LANG="en_US.UTF8"
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}/amqpstorm
 %python_expand %fdupes %{buildroot}%{$python_sitelib}/examples

++++++ AMQPStorm-2.4.1.tar.gz -> AMQPStorm-2.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/AMQPStorm.egg-info/PKG-INFO 
new/AMQPStorm-2.4.2/AMQPStorm.egg-info/PKG-INFO
--- old/AMQPStorm-2.4.1/AMQPStorm.egg-info/PKG-INFO     2018-04-21 
10:35:06.000000000 +0200
+++ new/AMQPStorm-2.4.2/AMQPStorm.egg-info/PKG-INFO     2018-09-10 
08:19:17.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: AMQPStorm
-Version: 2.4.1
+Version: 2.4.2
 Summary: Thread-safe Python RabbitMQ Client & Management library.
 Home-page: https://www.amqpstorm.io
 Author: Erik Olof Gunnar Andersson
@@ -29,6 +29,12 @@
         Changelog
         =========
         
+        Version 2.4.2
+        -------------
+        - Added support for External Authentication - Thanks Bernd Höhl.
+        - Fixed typo in setup.py extra requirements - Thanks Bernd Höhl.
+        - LICENSE file now included in package - Thanks Tomáš Chvátal.
+        
         Version 2.4.1
         -------------
         - Added client/server negotiation to better determine the maximum 
supported channels and maximum allowed frame size [#52] - Thanks gastlich.
@@ -75,6 +81,7 @@
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Communications
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/AMQPStorm.egg-info/SOURCES.txt 
new/AMQPStorm-2.4.2/AMQPStorm.egg-info/SOURCES.txt
--- old/AMQPStorm-2.4.1/AMQPStorm.egg-info/SOURCES.txt  2018-04-21 
10:35:06.000000000 +0200
+++ new/AMQPStorm-2.4.2/AMQPStorm.egg-info/SOURCES.txt  2018-09-10 
08:19:17.000000000 +0200
@@ -1,3 +1,5 @@
+CHANGELOG.rst
+LICENSE
 README.rst
 setup.cfg
 setup.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/AMQPStorm.egg-info/requires.txt 
new/AMQPStorm-2.4.2/AMQPStorm.egg-info/requires.txt
--- old/AMQPStorm-2.4.1/AMQPStorm.egg-info/requires.txt 2018-04-21 
10:35:06.000000000 +0200
+++ new/AMQPStorm-2.4.2/AMQPStorm.egg-info/requires.txt 2018-09-10 
08:19:17.000000000 +0200
@@ -1 +1,4 @@
 pamqp<2.0,>=1.6.1
+
+[management]
+requests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/CHANGELOG.rst 
new/AMQPStorm-2.4.2/CHANGELOG.rst
--- old/AMQPStorm-2.4.1/CHANGELOG.rst   1970-01-01 01:00:00.000000000 +0100
+++ new/AMQPStorm-2.4.2/CHANGELOG.rst   2018-09-10 08:18:55.000000000 +0200
@@ -0,0 +1,75 @@
+Changelog
+=========
+
+Version 2.4.2
+-------------
+- Added support for External Authentication - Thanks Bernd Höhl.
+- Fixed typo in setup.py extra requirements - Thanks Bernd Höhl.
+- LICENSE file now included in package - Thanks Tomáš Chvátal.
+
+Version 2.4.1
+-------------
+- Added client/server negotiation to better determine the maximum supported 
channels and frame size [#52] - Thanks gastlich.
+- We now raise an exception if the maximum allowed channel count is ever 
reached.
+
+Version 2.4.0
+-------------
+- basic.consume now allows for multiple callbacks [#48].
+
+Version 2.3.0
+-------------
+- Added delivery_tag property to message.
+- Added redelivered property to message [#41] - Thanks tkram01.
+- Added support for Management Api Healthchecks [#39] - Thanks Julien 
Carpentier.
+- Fixed incompatibility with Sun Solaris 10 [#46] - Thanks Giuliox.
+- Fixed delivery_tag being set to None by default [#47] - tkram01.
+- Exposed requests verify and certs flags to Management Api [#40] - Thanks 
Julien Carpentier.
+
+Version 2.2.2
+-------------
+- Fixed potential Heartbeat deadlock when forcefully killing process - Thanks 
Charles Pierre.
+
+Version 2.2.1
+-------------
+- Fixed potential Channel leak [#36] - Thanks Adam Mills.
+- Fixed threading losing select module during python shutdown [#37] - Thanks 
Adam Mills.
+
+Version 2.2.0
+-------------
+- Connection.close should now be more responsive.
+- Channels are now reset when re-opening an existing connection.
+- Re-wrote large portions of the Test suit.
+
+Version 2.1.4
+-------------
+- Added parameter to override auto-decode on incoming Messages - Thanks Travis 
Griggs.
+- Fixed a rare bug that could cause the consumer to get stuck if the 
connection unexpectedly dies - Thanks Connor Wolf.
+
+Version 2.1.3
+-------------
+- Fixed a potential recursion error in Connection.close.
+
+Version 2.1.1
+-------------
+- Reduced default TCP Timeout from 30s to 10s.
+- Connection Open/Close timeout is now three times the value of TCP Timeout.
+- Connection will now wait for a response from the remote server before 
closing.
+
+Version 2.1.0
+-------------
+- [Experimental] Added support for the RabbitMQ Management Api.
+    - Documentation 
https://amqpstorm.readthedocs.io/en/latest/#management-api-documentation
+    - Examples 
https://github.com/eandersson/amqpstorm/tree/master/examples/management_api
+
+- Connection/Channel function check_for_errors now behave more consistently.
+
+Version 2.0.0
+-------------
+- Messages are now delivered as Message objects by default.
+    - to_tuple and to_dict are now set to False by default.
+
+        This is a breaking change that affects the following function:
+
+            - channel.process_data_events
+            - channel.start_consuming
+            - channel.basic.get
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/LICENSE new/AMQPStorm-2.4.2/LICENSE
--- old/AMQPStorm-2.4.1/LICENSE 1970-01-01 01:00:00.000000000 +0100
+++ new/AMQPStorm-2.4.2/LICENSE 2017-02-23 05:17:41.000000000 +0100
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2017 Erik Olof Gunnar Andersson
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/PKG-INFO new/AMQPStorm-2.4.2/PKG-INFO
--- old/AMQPStorm-2.4.1/PKG-INFO        2018-04-21 10:35:06.000000000 +0200
+++ new/AMQPStorm-2.4.2/PKG-INFO        2018-09-10 08:19:17.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: AMQPStorm
-Version: 2.4.1
+Version: 2.4.2
 Summary: Thread-safe Python RabbitMQ Client & Management library.
 Home-page: https://www.amqpstorm.io
 Author: Erik Olof Gunnar Andersson
@@ -29,6 +29,12 @@
         Changelog
         =========
         
+        Version 2.4.2
+        -------------
+        - Added support for External Authentication - Thanks Bernd Höhl.
+        - Fixed typo in setup.py extra requirements - Thanks Bernd Höhl.
+        - LICENSE file now included in package - Thanks Tomáš Chvátal.
+        
         Version 2.4.1
         -------------
         - Added client/server negotiation to better determine the maximum 
supported channels and maximum allowed frame size [#52] - Thanks gastlich.
@@ -75,6 +81,7 @@
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Communications
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/README.rst 
new/AMQPStorm-2.4.2/README.rst
--- old/AMQPStorm-2.4.1/README.rst      2018-04-21 10:34:08.000000000 +0200
+++ new/AMQPStorm-2.4.2/README.rst      2018-09-10 08:18:55.000000000 +0200
@@ -20,6 +20,12 @@
 Changelog
 =========
 
+Version 2.4.2
+-------------
+- Added support for External Authentication - Thanks Bernd Höhl.
+- Fixed typo in setup.py extra requirements - Thanks Bernd Höhl.
+- LICENSE file now included in package - Thanks Tomáš Chvátal.
+
 Version 2.4.1
 -------------
 - Added client/server negotiation to better determine the maximum supported 
channels and maximum allowed frame size [#52] - Thanks gastlich.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/amqpstorm/__init__.py 
new/AMQPStorm-2.4.2/amqpstorm/__init__.py
--- old/AMQPStorm-2.4.1/amqpstorm/__init__.py   2018-04-21 10:34:08.000000000 
+0200
+++ new/AMQPStorm-2.4.2/amqpstorm/__init__.py   2018-09-10 08:18:55.000000000 
+0200
@@ -1,5 +1,5 @@
 """AMQPStorm."""
-__version__ = '2.4.1'  # noqa
+__version__ = '2.4.2'  # noqa
 __author__ = 'eandersson'  # noqa
 
 import logging
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/amqpstorm/channel0.py 
new/AMQPStorm-2.4.2/amqpstorm/channel0.py
--- old/AMQPStorm-2.4.1/amqpstorm/channel0.py   2018-04-21 10:34:08.000000000 
+0200
+++ new/AMQPStorm-2.4.2/amqpstorm/channel0.py   2018-09-10 08:18:55.000000000 
+0200
@@ -7,7 +7,6 @@
 from pamqp.heartbeat import Heartbeat
 
 from amqpstorm import __version__
-from amqpstorm.base import AUTH_MECHANISM
 from amqpstorm.base import LOCALE
 from amqpstorm.base import MAX_CHANNELS
 from amqpstorm.base import MAX_FRAME_SIZE
@@ -142,19 +141,24 @@
         """Send Start OK frame.
 
         :param specification.Connection.Start frame_in: Amqp frame.
-
         :return:
         """
-        if 'PLAIN' not in try_utf8_decode(frame_in.mechanisms):
+        mechanisms = try_utf8_decode(frame_in.mechanisms)
+        if 'EXTERNAL' in mechanisms:
+            mechanism = 'EXTERNAL'
+            credentials = '\0\0'
+        elif 'PLAIN' in mechanisms:
+            mechanism = 'PLAIN'
+            credentials = self._plain_credentials()
+        else:
             exception = AMQPConnectionError(
                 'Unsupported Security Mechanism(s): %s' %
                 frame_in.mechanisms
             )
             self._connection.exceptions.append(exception)
             return
-        credentials = self._plain_credentials()
         start_ok_frame = specification.Connection.StartOk(
-            mechanism=AUTH_MECHANISM,
+            mechanism=mechanism,
             client_properties=self._client_properties(),
             response=credentials,
             locale=LOCALE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/AMQPStorm-2.4.1/amqpstorm/tests/unit/channel0/channel0_tests.py 
new/AMQPStorm-2.4.2/amqpstorm/tests/unit/channel0/channel0_tests.py
--- old/AMQPStorm-2.4.1/amqpstorm/tests/unit/channel0/channel0_tests.py 
2018-04-21 10:34:08.000000000 +0200
+++ new/AMQPStorm-2.4.2/amqpstorm/tests/unit/channel0/channel0_tests.py 
2018-09-10 08:18:55.000000000 +0200
@@ -67,7 +67,7 @@
         self.assertTrue(connection.is_closed)
         self.assertRaises(AMQPConnectionError, connection.check_for_errors)
 
-    def test_channel0_send_start_ok(self):
+    def test_channel0_send_start_ok_plain(self):
         connection = FakeConnection()
         connection.parameters['username'] = 'guest'
         connection.parameters['password'] = 'password'
@@ -76,6 +76,20 @@
 
         self.assertTrue(connection.frames_out)
 
+        channel_id, frame_out = connection.frames_out.pop()
+
+        self.assertEqual(channel_id, 0)
+        self.assertIsInstance(frame_out, Connection.StartOk)
+        self.assertNotEqual(frame_out.locale, '')
+        self.assertIsNotNone(frame_out.locale)
+
+    def test_channel0_send_start_ok_external(self):
+        connection = FakeConnection()
+        channel = Channel0(connection)
+        channel._send_start_ok(Connection.Start(mechanisms=b'EXTERNAL'))
+
+        self.assertTrue(connection.frames_out)
+
         channel_id, frame_out = connection.frames_out.pop()
 
         self.assertEqual(channel_id, 0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/AMQPStorm-2.4.1/setup.py new/AMQPStorm-2.4.2/setup.py
--- old/AMQPStorm-2.4.1/setup.py        2018-04-21 10:34:08.000000000 +0200
+++ new/AMQPStorm-2.4.2/setup.py        2018-09-10 08:18:55.000000000 +0200
@@ -3,7 +3,7 @@
 
 setup(
     name='AMQPStorm',
-    version='2.4.1',
+    version='2.4.2',
     description='Thread-safe Python RabbitMQ Client & Management library.',
     long_description=open('README.rst').read(),
     author='Erik Olof Gunnar Andersson',
@@ -13,7 +13,7 @@
     license='MIT License',
     url='https://www.amqpstorm.io',
     install_requires=['pamqp>=1.6.1,<2.0'],
-    extra_require={
+    extras_require={
         'management': ['requests']
     },
     package_data={'': ['README.rst', 'LICENSE', 'CHANGELOG.rst']},
@@ -29,6 +29,7 @@
         'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Communications',


Reply via email to