From fa7a0c081a1f0c4712b09919a70bce8f6be6ee589bfb416190991aa34c61f4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 15 Feb 2019 12:35:20 +0000 Subject: [PATCH] Accepting request 676512 from home:jayvdb:django - Added minimum versions to dependencies where provided by upstream - Re-enable tests on Python 3 - Update to 4.3.0, adding Python 3.7 support. OBS-URL: https://build.opensuse.org/request/show/676512 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kombu?expand=0&rev=131 --- kombu-4.2.2.post1.tar.gz | 3 -- kombu-4.3.0.tar.gz | 3 ++ python-kombu.changes | 67 ++++++++++++++++++++++++++++++++++++++++ python-kombu.spec | 20 ++++++------ 4 files changed, 79 insertions(+), 14 deletions(-) delete mode 100644 kombu-4.2.2.post1.tar.gz create mode 100644 kombu-4.3.0.tar.gz diff --git a/kombu-4.2.2.post1.tar.gz b/kombu-4.2.2.post1.tar.gz deleted file mode 100644 index 902ede8..0000000 --- a/kombu-4.2.2.post1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c9dca2338c5d893f30c151f5d29bfb81196748ab426d33c362ab51f1e8dbf78 -size 421188 diff --git a/kombu-4.3.0.tar.gz b/kombu-4.3.0.tar.gz new file mode 100644 index 0000000..cb946ca --- /dev/null +++ b/kombu-4.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:529df9e0ecc0bad9fc2b376c3ce4796c41b482cf697b78b71aea6ebe7ca353c8 +size 429400 diff --git a/python-kombu.changes b/python-kombu.changes index ab6bd0a..a3c097d 100644 --- a/python-kombu.changes +++ b/python-kombu.changes @@ -1,3 +1,70 @@ +------------------------------------------------------------------- +Fri Feb 15 09:54:34 UTC 2019 - John Vandenberg + +- Added minimum versions to dependencies where provided by upstream +- Re-enable tests on Python 3 +- Update to 4.3.0 + * Added Python 3.7 support. + * Avoid caching queues which are declared with a TTL. + Queues that are declared with a TTL are now also be excluded from the + in-memory cache in case they expire between publishes on the same channel. + * Added an index to the Message table for the SQLAlchemy transport. + The index allows to effectively sorting the table by the message's timestamp. + * Added a timeout that limits the amount of time we retry + to reconnect to a transport. + * Class celery.asynchronous.hub.Hub is now reentrant. + This allows calling celery.bin.celery.main to revive a worker in + the same process after rescuing from shutdown. + * Queues now accept string exchange names as arguments as documented. + Tests were added to avoid further regressions. + * Specifying names for broadcast queues now work as expected. + Previously, named broadcast queues did not create multiple queues per worker. + They incorrectly declared the named queue which resulted in one queue per + fanout exchange, thus missing the entire point of a fanout exchange. + The behavior is now matched to unnamed broadcast queues. + * When initializing the Redis transport in conjunction with gevent + restore all unacknowledged messages to queue. + * Allow kombu.simple.SimpleQueue to pass queue_arguments to Queue object, + which allows it to connect to RabbitMQ queues with custom arguments + like 'x-queue-mode'='lazy'. + * Add support for 'rediss' scheme for secure Redis connections. + * Added the Azure Storage Queues transport. + * Added the Azure Service Bus transport. + * Drop remaining mentions of Jython support completely. + * When publishing messages to the Pidbox, retry if an error occurs. + * Fix infinite loop in kombu.asynchronous.hub.Hub.create_loop. + Previous attempt to fix the problem (PR kombu/760) did not consider + an edge case. It is now fixed. + * Worker shutdown no longer duplicates messages when using the SQS broker. + * When using the SQS broker, prefer boto's default region before our hardcoded default. + * Fixed closing of shared redis sockets which previously caused Celery to hang. + * the Pyro transport now works with recent Pyro versions. + Also added a Pyro Kombu Broker that this transport needs for its queues. + * Handle non-base64-encoded SQS messages. + * Move the handling of Sentinel failures to the redis library itself. + Previously, Redis Sentinel worked only if the first node's sentinel + service in the URI was up. A server outage would have caused downtime. + * When using Celery and the pickle serializer with binary data as part of the + payload, `UnicodeDecodeError` would be raised as the content was not utf-8. + We now replace on errors. + * Allow setting boto3.sqs.create_queue Attributes via transport_options. + * Fixed infinite loop when entity.channel is replaced by revive() on connection + drop. + * Added optional support for Brotli compression. + * When using the SQS broker, FIFO queues with names that ended with the 'f' letter + were incorrectly parsed. This is now fixed. + * Added optional support for LZMA compression. + * Added optional support for ZStandard compression. + * Require py-amqp 2.4.0 as the minimum version. + * The value of DISABLE_TRACEBACKS environment variable is now respected on debug, info + and warning logger level. + * As documented in kombu/#741 and eventlet/eventlet#415 there is a mismatch + between the monkey-patched eventlet queue and the interface Kombu is + expecting. This causes Celery to crash when the broker_pool_limit + configuration option is set. eventlet/eventlet#415 suggests that the + mutex can be a noop. This is now the case. + * Documentation improvements + ------------------------------------------------------------------- Thu Jan 31 16:19:15 CET 2019 - mcepl@suse.com diff --git a/python-kombu.spec b/python-kombu.spec index 22f2aba..a9d364c 100644 --- a/python-kombu.spec +++ b/python-kombu.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-kombu -Version: 4.2.2.post1 +Version: 4.3.0 Release: 0 Summary: AMQP Messaging Framework for Python License: BSD-3-Clause @@ -27,25 +27,25 @@ URL: https://github.com/celery/kombu Source: https://files.pythonhosted.org/packages/source/k/kombu/kombu-%{version}.tar.gz # Test requirements: BuildRequires: %{python_module PyYAML} -BuildRequires: %{python_module amqp >= 2.1.4} +BuildRequires: %{python_module Pyro4} +BuildRequires: %{python_module amqp >= 2.4.0} BuildRequires: %{python_module boto3} -BuildRequires: %{python_module case} -BuildRequires: %{python_module msgpack-python} +BuildRequires: %{python_module case >= 1.5.2} +BuildRequires: %{python_module msgpack-python > 0.2.0} BuildRequires: %{python_module pytest-sugar} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module redis} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 20.6.7} BuildRequires: fdupes -BuildRequires: python BuildRequires: python-rpm-macros -Requires: python -Requires: python-amqp +Requires: python-amqp >= 2.4.0 Obsoletes: python-carrot BuildArch: noarch %if 0%{?suse_version} Suggests: couchdb Suggests: mongodb +Suggests: python-Pyro4 Suggests: rabbitmq-server %endif %python_subpackages @@ -72,10 +72,8 @@ provide proven and tested solutions to common messaging problems. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -# Tests are currently incompatible with python 3.6 (see upstream #675) -# run them only on python 2 %check -python2 setup.py -q test +%python_exec setup.py test %files %{python_files} %license LICENSE