Update dependency amqp to v5 #31
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==1.4.6
->==5.3.1
Release Notes
celery/py-amqp (amqp)
v5.3.1
Compare Source
=====
:release-date: 2024-11-12
:release-by: Tomer Nosrati
.. _version-5.3.0:
v5.3.0
Compare Source
=====
:release-date: 2024-11-12
:release-by: Tomer Nosrati
.. _version-5.2.0:
v5.2.0
Compare Source
=====
:release-date: 2023-11-06 10:55 A.M. UTC+6:00
:release-by: Asif Saif Uddin
.. _version-5.1.1:
v5.1.1
Compare Source
=====
:release-date: 2022-04-17 12:45 P.M. UTC+6:00
:release-by: Asif Saif Uddin
.. _version-5.1.0:
v5.1.0
Compare Source
=====
:release-date: 2022-03-06 10:05 A.M. UTC+6:00
:release-by: Asif Saif Uddin
.. _version-5.0.9:
v5.0.9
Compare Source
=====
:release-date: 2021-12-20 11:00 A.M. UTC+6:00
:release-by: Asif Saif Uddin
.. _version-5.0.8:
v5.0.8
Compare Source
=====
:release-date: 2021-12-19 11:15 A.M. UTC+6:00
:release-by: Asif Saif Uddin
may be raised on failed connections. Fixes (#378)
.. _version-5.0.7:
v5.0.7
Compare Source
=====
:release-date: 2021-12-13 15:45 P.M. UTC+6:00
:release-by: Asif Saif Uddin
.. _version-5.0.6:
v5.0.6
Compare Source
=====
:release-date: 2021-04-01 10:45 A.M. UTC+6:00
:release-by: Asif Saif Uddin
in SSLTransport._wrap_socket_sni. Fixes bug introduced in 5.0.3 where setting
context.verify_mode = ssl.CERT_NONE would raise
"ValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled."
Setting context.check_hostname prior to setting context.verify_mode resolves the
issue.
.. _version-5.0.5:
v5.0.5
Compare Source
=====
:release-date: 2021-01-28 4:30 P.M UTC+6:00
:release-by: Asif Saif Uddin
.. _version-5.0.4:
v5.0.4
Compare Source
=====
:release-date: 2021-01-28 2:30 P.M UTC+6:00
:release-by: Asif Saif Uddin
.. _version-5.0.3:
v5.0.3
Compare Source
=====
:release-date: 2021-01-19 9:00 P.M UTC+6:00
:release-by: Asif Saif Uddin
Change the default value of ssl_version to None. When not set, the
proper value between ssl.PROTOCOL_TLS_CLIENT and ssl.PROTOCOL_TLS_SERVER
will be selected based on the param server_side in order to create
a TLS Context object with better defaults that fit the desired
connection side.
Change the default value of cert_reqs to None. The default value
of ctx.verify_mode is ssl.CERT_NONE, but when ssl.PROTOCOL_TLS_CLIENT
is used, ctx.verify_mode defaults to ssl.CERT_REQUIRED.
Fix context.check_hostname logic. Checking the hostname depends on
having support of the SNI TLS extension and being provided with a
server_hostname value. Another important thing to mention is that
enabling hostname checking automatically sets verify_mode from
ssl.CERT_NONE to ssl.CERT_REQUIRED in the stdlib ssl and it cannot
be set back to ssl.CERT_NONE as long as hostname checking is enabled.
Refactor the SNI tests to test one thing at a time and removing some
tests that were being repeated over and over.
.. _version-5.0.2:
v5.0.2
Compare Source
=====
:release-date: 2020-11-08 6:50 P.M UTC+3:00
:release-by: Omer Katz
Whhels are no longer universal.
Contributed by Omer Katz
Added debug representation to Connection and *Transport classes
Contributed by Matus Valo
Reintroduce ca_certs and ciphers parameters of SSLTransport._wrap_socket_sni()
This fixes issue introduced in commit:
53d6777
Contributed by Matus Valo
Fix infinite wait when using confirm_publish
Contributed by Omer Katz & RezaSi
.. _version-5.0.1:
v5.0.1
Compare Source
=====
:release-date: 2020-09-06 6:10 P.M UTC+3:00
:release-by: Omer Katz
Require vine 5.0.0.
Contributed by Omer Katz
.. _version-5.0.0:
v5.0.0
Compare Source
=====
:release-date: 2020-09-03 3:20 P.M UTC+3:00
:release-by: Omer Katz
Stop to use deprecated method ssl.wrap_socket.
Contributed by Hervé Beraud
.. _version-5.0.0b1:
v2.6.1
Compare Source
=====
:release-date: 2020-07-31 10.30 P.M UTC+6:00
:release-by: Asif Saif Uddin
frame_writer
allocates a
bytearray
on initialization with a length based on theconnection.frame_max
value. If
connection.frame_max
is changed to a larger value, this causes anerror like
pack_into requires a buffer of at least 408736 bytes
... _version-2.6.0:
v2.6.0
Compare Source
=====
:release-date: 20-06-01 12.00 P.M UTC+6:00
:release-by: Asif Saif Uddin
.. _version-2.5.2:
v2.5.2
Compare Source
=====
:release-date: 2019-09-30 19.00 P.M UTC+6:00
:release-by: Asif Saif Uddin
.. _version-2.5.1:
v2.5.1
Compare Source
=====
:release-date: 2019-08-14 22.00 P.M UTC+6:00
:release-by: Asif Saif Uddin
.. _version-2.5.0:
v2.5.0
Compare Source
=====
:release-date: 2019-05-30 17.30 P.M UTC+6:00
:release-by: Asif Saif Uddin
.. _version-2.4.2:
v2.4.2
Compare Source
=====
:release-date: 2019-03-03 10:45 P.M UTC+2:00
:release-by: Omer Katz
Added support for the Cygwin platform
Contributed by Matus Valo
Correct offset incrementation when parsing bitmaps.
Contributed by Allan Simon & Omer Katz
Consequent bitmaps are now parsed correctly.
Previously the bit counter was reset with every bit.
We now reset it once per 8 bits, when we consume the next byte.
Contributed by Omer Katz
Code Cleanups & Improvements:
Test Coverage & CI Improvements:
.. _version-2.4.1:
v2.4.1
Compare Source
=====
:release-date: 2018-04-02 9:00 A.M UTC+2
:release-by: Omer Katz
To avoid breaking the API basic_consume() now returns the consumer tag
instead of a tuple when nowait is True.
Fix contributed by Matus Valo
Fix crash in basic_publish when broker does not support connection.blocked
capability.
Fix contributed by Matus Valo
read_frame() is now Python 3 compatible for large payloads.
Fix contributed by Antonio Ojea
Support float read_timeout/write_timeout.
Fix contributed by :github_user:
cadl
Always treat SSLError timeouts as socket timeouts.
Fix contributed by Dirk Mueller and Antonio Ojea
Treat EWOULDBLOCK as timeout.
This fixes a regression on Windows from 2.4.0.
Fix contributed by Lucian Petrut
Test Coverage & CI Improvements:
.. _version-2.4.0:
v2.4.0
Compare Source
=====
:release-date: 2018-13-01 1:00 P.M UTC+2
:release-by: Omer Katz
Fix inconsistent frame_handler return value.
The function returned by frame_handler is meant to return True
once the complete message is received and the callback is called,
False otherwise.
This fixes the return value for messages with a body split across
multiple frames, and heartbeat frames.
Fix contributed by :github_user:
evanunderscore
Don't default content_encoding to utf-8 for bytes.
This is not an acceptable default as the content may not be
valid utf-8, and even if it is, the producer likely does not
expect the message to be decoded by the consumer.
Fix contributed by :github_user:
evanunderscore
Fix encoding of messages with multibyte characters.
Body length was previously calculated using string length,
which may be less than the length of the encoded body when
it contains multibyte sequences. This caused the body of
the frame to be truncated.
Fix contributed by :github_user:
evanunderscore
Respect content_encoding when encoding messages.
Previously the content_encoding was ignored and messages
were always encoded as utf-8. This caused messages to be
incorrectly decoded if content_encoding is properly respected
when decoding.
Fix contributed by :github_user:
evanunderscore
Fix AMQP protocol header for AMQP 0-9-1.
Previously it was set to a different value for unknown reasons.
Fix contributed by Carl Hörberg
Add support for Python 3.7.
Change direct SSLSocket instantiation with wrap_socket.
Added Python 3.7 to CI.
Fix contributed by Omer Katz and :github_user:
avborhanian
Add support for field type "x" (byte array).
Fix contributed by Davis Kirkendall
If there is an exception raised on Connection.connect or Connection.close,
ensure that the underlying transport socket is closed.
Adjust exception message on connection errors as well.
Fix contributed by :github_user:
tomc797
TCP_USER_TIMEOUT has to be excluded from KNOWN_TCP_OPTS in BSD platforms.
Fix contributed by George Tantiras
Handle negative acknowledgments.
Fix contributed by Matus Valo
Added integration tests.
Fix contributed by Matus Valo
Fix basic_consume() with no consumer_tag provided.
Fix contributed by Matus Valo
Improved empty AMQPError string representation.
Fix contributed by Matus Valo
Drain events before publish.
This is needed to capture out of memory messages for clients that only
publish. Otherwise on_blocked is never called.
Fix contributed by Jelte Fennema and Matus Valo
Don't revive channel when connection is closing.
When connection is closing don't raise error when Channel.Close method is received.
Fix contributed by Matus Valo
.. _version-2.3.2:
v2.3.2
Compare Source
=====
:release-date: 2018-05-29 15:30 P.M UTC+3
:release-by: Omer Katz
Fix a regression that occurs when running amqp on OSX.
TCP_USER_TIMEOUT is not available when running on OSX.
We now remove it from the set of known TCP options.
Fix contributed by Ofer Horowitz
.. _version-2.3.1:
v2.3.1
Compare Source
=====
:release-date: 2018-05-28 16:30 P.M UTC+3
:release-by: Omer Katz
Fix a regression that occurs when running amqp under Python 2.7.
#182 mistakenly replaced a type check with unicode to string_t which is str
in Python 2.7. text_t should have been used instead.
This is now fixed and the tests have been adjusted to ensure this never regresses
again.
Fix contributed by Omer Katz
.. _version-2.3.0:
v2.3.0
Compare Source
=====
:release-date: 2018-05-27 16:30 P.M UTC+3
:release-by: Omer Katz
Cleanup TCP configurations across platforms and unified defaults.
Fix contributed by Dan Chowdhury
Fix for TypeError when setting socket options.
Fix contributed by Matthias Erll
Ensure that all call sites for decoding bytes to str allow surrogates,
as the encoding mechanism now supports.
Fix contributed by Stephen Hatch
Don't send AAAA DNS request when domain resolved to IPv4 address.
Fix contributed by Ihar Hrachyshka & Omer Katz
Support for EXTERNAL authentication and specific login_method.
Fix contributed by Matthias Erll
If the old python-gssapi library is installed the gssapi module will be available.
We now ensure that we only use the new gssapi library.
Fix contributed by Jacopo Notarstefano
Code Cleanups & Test Coverage:
eric-eric-eric
.. _version-2.2.2:
v2.2.2
Compare Source
=====
:release-date: 2017-09-14 09:00 A.M UTC+2
:release-by: Omer Katz
Sending empty messages no longer hangs. Instead an empty message is sent correctly.(addresses #151)
Fix contributed by Christian Blades
Fixed compatibility issues in UTF-8 encoding behavior between Py2/Py3 (#164)
Fix contributed by Tyler James Harden
.. _version-2.2.1:
v2.2.1
Compare Source
=====
:release-date: 2017-07-14 09:00 A.M UTC+2
:release-by: Omer Katz
Fix implicit conversion from bytes to string on the connection object. (Issue #155)
This issue has caused Celery to crash on connection to RabbitMQ.
Fix contributed by Omer Katz
.. _version-2.2.0:
v2.2.0
Compare Source
=====
:release-date: 2017-07-12 10:00 A.M UTC+2
:release-by: Ask Solem
Fix random delays in task execution.
This is a bug that caused performance issues due to polling timeouts that occur when receiving incomplete AMQP frames. (Issues #3978 #3737 #3814)
Fix contributed by Robert Kopaczewski
Calling
conn.collect()
multiple times will no longer raise anAttributeError
when no channels exist.Fix contributed by Gord Chung
Fix compatibility code for Python 2.7.6.
Fix contributed by Jonathan Schuff
When running in Windows, py-amqp will no longer use the unsupported TCP option TCP_MAXSEG.
Fix contributed by Tony Breeds
Added support for setting the SNI hostname header.
The SSL protocol version is now set to SSLv23
Contributed by Dhananjay Sathe
Authentication mechanisms were refactored to be more modular. GSSAPI authentication is now supported.
Contributed by Alexander Dutton
Do not reconnect on collect.
Fix contributed by Gord Chung
.. _version-2.1.4:
v2.1.4
Compare Source
=====
:release-date: 2016-12-14 03:40 P.M PST
:release-by: Ask Solem
Removes byte string comparison warnings when running under
python -b
.Fix contributed by Jon Dufresne.
Linux version parsing broke when the version included a '+' character
(Issue #119).
Now sets default TCP settings for platforms that support them (e.g. Linux).
+----------------------+---------------+
| Constant | Value |
+======================+===============+
|
TCP_KEEPIDLE
|60
|+----------------------+---------------+
|
TCP_KEEPINTVL
|10
|+----------------------+---------------+
|
TCP_KEEPCNT
|9
|+----------------------+---------------+
|
TCP_USER_TIMEOUT
|1000
(1s) |+----------------------+---------------+
This will help detecting the socket being closed earlier, which is very
important in failover and load balancing scenarios.
.. _version-2.1.3:
v2.1.3
Compare Source
=====
:release-date: 2016-12-07 06:00 P.M PST
:release-by: Ask Solem
.. _version-2.1.2:
v2.1.2
Compare Source
=====
:release-date: 2016-12-07 02:00 P.M PST
Linux: Now sets the :data:
~socket.TCP_USER_TIMEOUT
flag if availablefor better failed connection detection.
Contributed by Jelte Fennema.
The timeout is set to the
connect_timeout
value by default,but can also be specified by using the
socket_settings
argumentto :class:
~amqp.Connection
:.. code-block:: python
When using :pypi:
Kombu
this can be specified as part of thetransport_options
:.. code-block:: python
Or when using :pypi:
Celery
it can be specified using thebroker_transport_options
setting:.. code-block:: python
Python compatibility: Fixed compatibility when using the python
-b
flag.Fix contributed by Jon Dufresne.
.. _version-2.1.1:
v2.1.1
Compare Source
=====
:release-date: 2016-10-13 06:36 P.M PDT
:release-by: Ask Solem
.. _version-2.1.0:
Requirements
Vine 1.1.3 <vine:version-1.1.3>
.Frame writer: Account for overhead when calculating frame size.
The client would crash if the message was within a certain size.
Fixed struct unicode problems (#108)
Standardize pack invocations on bytestrings.
Leave some literals as strings to enable interpolation.
Fix flake8 fail.
Fix contributed by Brendan Smithyman.
v2.1.0
Compare Source
=====
:release-date: 2016-09-07 04:23 P.M PDT
:release-by: Ask Solem
Requirements
Vine 1.1.2 <vine:version-1.1.2>
.Now licensed under the BSD license!
Thanks to Barry Pederson for approving the license change,
which unifies the license used across all projects in the Celery
organization.
Datetimes in method frame arguments are now handled properly.
Fixed compatibility with Python <= 2.7.6
Frame_writer is no longer a generator, which should solve
a rare "generator already executing" error (Issue #103).
.. _version-2.0.3:
v2.0.3
Compare Source
=====
:release-date: 2016-07-11 08:00 P.M PDT
:release-by: Ask Solem
SSLTransport: Fixed crash "no attribute sslopts" when
ssl=True
(Issue #100).
Fixed incompatible argument spec for
Connection.Close
(Issue #45).This caused the RabbitMQ server to raise an exception (INTERNAL ERROR).
Transport: No longer implements
__del__
to make sure gc can collectconnections.
It's the responsibility of the caller to close connections, this was
simply a relic from the amqplib library.
.. _version-2.0.2:
v2.0.2
Compare Source
=====
:release-date: 2016-06-10 5:40 P.M PDT
:release-by: Ask Solem
Python 3: Installation requirements ended up being a generator
and crashed setup.py.
Fix contributed by ChangBo Guo(gcb).
Python <= 2.7.7: struct.pack arguments cannot be unicode
Fix contributed by Alan Justino and Xin Li.
Python 3.4: Fixed use of
bytes % int
.Fix contributed by Alan Justino.
Connection/Transport: Fixed handling of default port.
Fix contributed by Quentin Pradet.
.. _version-2.0.1:
v2.0.1
Compare Source
=====
:release-date: 2016-05-31 6:20 P.M PDT
:release-by: Ask Solem
Adds backward compatibility layer for the 1.4 API.
Using the connection without calling
.connect()
first will now work,but a warning is emitted and the behavior is deprecated and will be
removed in version 2.2.
Fixes kombu 3.0/celery 3.1 compatibility (Issue #88).
Fix contributed by Bas ten Berge.
Fixed compatibility with Python 2.7.3 (Issue #85)
Fix contributed by Bas ten Berge.
Fixed bug where calling drain_events() with a timeout of 0 would actually
block until a frame is received.
Documentation moved to http://amqp.readthedocs.io (Issue #89).
See https://blog.readthedocs.com/securing-subdomains/ for the reasoning
behind this change.
Fix contributed by Adam Chainz.
.. _version-2.0.0:
v2.0.0
Compare Source
=====
:release-date: 2016-05-26 1:44 P.M PDT
:release-by: Ask Solem
No longer supports Python 2.6
You must now call Connection.connect() to establish the connection.
The Connection constructor no longer has side effects, so you have
to explicitly call connect first.
Library rewritten to anticipate async changes.
Connection now exposes underlying socket options.
This change allows to set arbitrary TCP socket options during the creation of
the transport.
Those values can be set passing a dictionray where the key is the name of
the parameter we want to set.
The names of the keys are the ones reported above.
Contributed by Andrea Rosa, Dallas Marlow and Rongze Zhu.
Additional logging for heartbeats.
Contributed by Davanum Srinivas, and Dmitry Mescheryakov.
SSL: Fixes issue with remote connection hanging
Fix contributed by Adrien Guinet.
SSL:
ssl
dict argument now supports thecheck_hostname
key(Issue #63).
Contributed by Vic Kumar.
Contributions by:
Adrien Guinet
Andrea Rosa
Artyom Koval
Corey Farwell
Craig Jellick
Dallas Marlow
Davanum Srinivas
Federico Ficarelli
Jared Lewis
Rémy Greinhofer
Rongze Zhu
Yury Selivanov
Vic Kumar
Vladimir Bolshakov
:github_user:
lezeroq
.. _version-1.4.9:
v1.4.9
Compare Source
=====
:release-date: 2016-01-08 5:50 P.M PST
:release-by: Ask Solem
Fixes compatibility with Linux/macOS instances where the
ctypes
moduledoes not exist.
Fix contributed by Jared Lewis.
.. _version-1.4.8:
v1.4.8
Compare Source
=====
:release-date: 2015-12-07 12:25 A.M
:release-by: Ask Solem
abstract_channel.wait
now accepts a floattimeout
parameter expressedin seconds
Contributed by Goir.
.. _version-1.4.7:
v1.4.7
Compare Source
=====
:release-date: 2015-10-02 05:30 P.M PDT
:release-by: Ask Solem
Fixed libSystem error on macOS 10.11 (El Capitan)
Fix contributed by Eric Wang.
channel.basic_publish
now raises :exc:amqp.exceptions.NotConfirmed
onbasic.nack
.AMQP timestamps received are now converted from GMT instead of local time
(Issue #67).
Wheel package installation now supported by both Python 2 and Python3.
Fix contributed by Rémy Greinhofer.
.. _version-1.4.6:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.