betterself icon indicating copy to clipboard operation
betterself copied to clipboard

Update amqp to 5.1.0

Open pyup-bot opened this issue 2 years ago • 0 comments

This PR updates amqp from 2.2.2 to 5.1.0.

Changelog

5.1.0

=====
:release-date: 2022-03-06 10:05 A.M. UTC+6:00
:release-by: Asif Saif Uddin

- Improve performance of _get_free_channel_id, fix channel max bug (385).
- Document memoryview usage, minor frame_writer.write_frame refactor (384).
- Start dropping python 3.6 (387).
- Added experimental __slots__ to some classes (368)
- Relaxed vine version for upcoming release.
- Upgraded topytest 7 (388).


.. _version-5.0.9:

5.0.9

=====
:release-date: 2021-12-20 11:00 A.M. UTC+6:00
:release-by: Asif Saif Uddin

- Append to _used_channel_ids in _used_channel_ids


.. _version-5.0.8:

5.0.8

=====
:release-date: 2021-12-19 11:15 A.M. UTC+6:00
:release-by: Asif Saif Uddin

- Reduce memory usage of Connection (377)
- Add additional error handling around code where an OSError 
may be raised on failed connections. Fixes (378)


.. _version-5.0.7:

5.0.7

=====
:release-date: 2021-12-13 15:45 P.M. UTC+6:00
:release-by: Asif Saif Uddin

- Remove dependency to case
- Bugfix: not closing socket after server disconnect 


.. _version-5.0.6:

5.0.6

=====
:release-date: 2021-04-01 10:45 A.M. UTC+6:00
:release-by: Asif Saif Uddin

- Change the order in which context.check_hostname and context.verify_mode get set
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.
- Remove TCP_USER_TIMEOUT option for Solaris (355) 
- Pass long_description to setup() (353)
- Fix for tox-docker 2.0
- Moved to GitHub actions CI (359)

.. _version-5.0.5:

5.0.5

=====
:release-date: 2021-01-28 4:30 P.M UTC+6:00
:release-by: Asif Saif Uddin

-  Removed mistakenly introduced code which was causing import errors



.. _version-5.0.4:

5.0.4

=====
:release-date: 2021-01-28 2:30 P.M UTC+6:00
:release-by: Asif Saif Uddin

-  Add missing load_default_certs() call to fix a regression in v5.0.3 release. (350)


.. _version-5.0.3:

5.0.3

=====
: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:

5.0.2

=====
: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:

5.0.1

=====
: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:

5.0.0

=====
: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:

5.0.0b1

=======
:release-date: 2020-09-01 6:20 P.M UTC+3:00
:release-by: Omer Katz

- Dropped Python 3.5 support.

Contributed by **Omer Katz**

- Removed additional compatibility code.

Contributed by **Omer Katz**

.. _version-5.0.0a1:

5.0.0a1

=======
:release-date: 2019-04-01 4:30 P.M UTC+3:00
:release-by: Omer Katz

- Dropped Python 2.x support.

Contributed by **Omer Katz**

- Dropped Python 3.4 support.

Contributed by **Omer Katz**

- Depend on :pypi:`vine` 5.0.0a1.

Contributed by **Omer Katz**

Code Cleanups & Improvements:

- **Omer Katz**


.. _version-2.6.0:

2.6.1

=====
:release-date: 2020-07-31 10.30 P.M UTC+6:00
:release-by: Asif Saif Uddin

- Fix buffer overflow in frame_writer after frame_max is increased. `frame_writer`
allocates a `bytearray` on initialization with a length based on the `connection.frame_max`
value. If `connection.frame_max` is changed to a larger value, this causes an
error like `pack_into requires a buffer of at least 408736 bytes`.


.. _version-2.6.0:

2.6.0

=====
:release-date: 20-06-01 12.00 P.M UTC+6:00
:release-by: Asif Saif Uddin

- Implement speedups in cython (311)
- Updated some tests & code improvements
- Separate logger for Connection.heartbeat_tick method
- Cython generic content (315)
- Improve documentation a_global parameter of basic_qos() method.
- Fix saving partial read buffer on windows during socket timeout. (321)
- Fix deserialization of long string field values that are not utf-8.
- Added simple cythonization of abstract_channel.py
- Speedups of serialization.py are more restrictive

.. _version-2.5.2:

2.5.2

=====
:release-date: 2019-09-30 19.00 P.M UTC+6:00
:release-by: Asif Saif Uddin

- Fixed a channel issue against a connection already closed
- Updated some tests & code improvements


.. _version-2.5.1:

2.5.1

=====
:release-date: 2019-08-14 22.00 P.M UTC+6:00
:release-by: Asif Saif Uddin

- Ignore all methods except Close and Close-OK when channel/connection is closing
- Fix faulty ssl sni intiation parameters (283)
- Undeprecate auto_delete flag for exchanges. (287)
- Improved tests and testing environments


.. _version-2.5.0:

2.5.0

=====
:release-date: 2019-05-30 17.30 P.M UTC+6:00
:release-by: Asif Saif Uddin

- Drop Python 3.4
- Add new platform
- Numerious bug fixes
.. _version-2.4.2:

2.4.2

=====
: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:

- **Patrick Cloke**
- **Matus Valo**
- **Jeremiah Cooper**
- **Omer Katz**

Test Coverage & CI Improvements:

- **Matus Valo**
- **Omer Katz**
- **Jeremiah Cooper**
- **Omer Katz**

.. _version-2.4.1:

2.4.1

=====
: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:

- **Matus Valo**
- **Antonio Ojea**

.. _version-2.4.0:

2.4.0

=====
: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:

2.3.2

=====
: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:

2.3.1

=====
: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:

2.3.0

=====
: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:

- :github_user:`eric-eric-eric`
- **Omer Katz**
- **Jon Dufresne**
- **Matthias Urlichs**

.. _version-2.2.2:
Links
  • PyPI: https://pypi.org/project/amqp
  • Changelog: https://pyup.io/changelogs/amqp/
  • Repo: http://github.com/celery/py-amqp

pyup-bot avatar Mar 06 '22 05:03 pyup-bot