pkgsrc/net/py-amqp/Makefile

24 lines
730 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.30 2022/07/11 08:39:57 adam Exp $
DISTNAME= amqp-5.1.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= net python
2016-06-08 19:43:20 +02:00
MASTER_SITES= ${MASTER_SITE_PYPI:=a/amqp/}
2017-09-16 21:26:41 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
2019-07-09 13:35:14 +02:00
HOMEPAGE= https://amqp.readthedocs.io/
COMMENT= Low-level AMQP client for Python
LICENSE= gnu-lgpl-v2.1
py-amqp: updated to 5.0.6 5.0.6 ===== - 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 - Pass long_description to setup() - Fix for tox-docker 2.0 - Moved to GitHub actions CI 5.0.5 ===== - Removed mistakenly introduced code which was causing import errors 5.0.4 ===== - Add missing load_default_certs() call to fix a regression in v5.0.3 release. 5.0.3 ===== - 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. 5.0.2 ===== - Whhels are no longer universal. - Added debug representation to Connection and *Transport classes - Reintroduce ca_certs and ciphers parameters of SSLTransport._wrap_socket_sni() - Fix infinite wait when using confirm_publish 5.0.1 ===== - Require vine 5.0.0. 5.0.0 ===== - Stop to use deprecated method ssl.wrap_socket. 5.0.0b1 ======= - Dropped Python 3.5 support. - Removed additional compatibility code. 5.0.0a1 ======= - Dropped Python 2.x support. - Dropped Python 3.4 support. - Depend on :pypi:`vine` 5.0.0a1. Code Cleanups & Improvements: 2.6.1 ===== - Fix buffer overflow in frame_writer after frame_max is increased. `frame_writer` allocates a `bytearray` on intialization 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`. 2.6.0 ===== - Implement speedups in cython - Updated some tests & code improvements - Separate logger for Connection.heartbeat_tick method - Cython generic content - Improve documentation a_global parameter of basic_qos() method. - Fix saving partial read buffer on windows during socket timeout. - 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
2021-05-07 19:58:09 +02:00
DEPENDS+= ${PYPKGPREFIX}-vine>=5.0.0:../../devel/py-vine
TEST_DEPENDS+= ${PYPKGPREFIX}-test>=6.2.5:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-rerunfailures>=6.0:../../devel/py-test-rerunfailures
TEST_DEPENDS+= ${PYPKGPREFIX}-test-sugar>=0.9.1:../../devel/py-test-sugar
py-amqp: updated to 2.4.0 2.4.0 - 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. - 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 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. - 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 AMQP protocol header for AMQP 0-9-1. - Add support for Python 3.7. Change direct SSLSocket instantiation with wrap_socket. Added Python 3.7 to CI. - Add support for field type "x" (byte array). - If there is an exception raised on Connection.connect or Connection.close, ensure that the underlying transport socket is closed. - TCP_USER_TIMEOUT has to be excluded from KNOWN_TCP_OPTS in BSD platforms. - Handle negative acknowledgments. - Added integration tests. - Fix basic_consume() with no consumer_tag provided. - Improved empty AMQPError string representation. - Drain events before publish. - Don't revive channel when connection is closing.
2019-01-15 12:42:59 +01:00
USE_LANGUAGES= # none
2017-04-09 19:07:09 +02:00
py-amqp: updated to 5.0.6 5.0.6 ===== - 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 - Pass long_description to setup() - Fix for tox-docker 2.0 - Moved to GitHub actions CI 5.0.5 ===== - Removed mistakenly introduced code which was causing import errors 5.0.4 ===== - Add missing load_default_certs() call to fix a regression in v5.0.3 release. 5.0.3 ===== - 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. 5.0.2 ===== - Whhels are no longer universal. - Added debug representation to Connection and *Transport classes - Reintroduce ca_certs and ciphers parameters of SSLTransport._wrap_socket_sni() - Fix infinite wait when using confirm_publish 5.0.1 ===== - Require vine 5.0.0. 5.0.0 ===== - Stop to use deprecated method ssl.wrap_socket. 5.0.0b1 ======= - Dropped Python 3.5 support. - Removed additional compatibility code. 5.0.0a1 ======= - Dropped Python 2.x support. - Dropped Python 3.4 support. - Depend on :pypi:`vine` 5.0.0a1. Code Cleanups & Improvements: 2.6.1 ===== - Fix buffer overflow in frame_writer after frame_max is increased. `frame_writer` allocates a `bytearray` on intialization 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`. 2.6.0 ===== - Implement speedups in cython - Updated some tests & code improvements - Separate logger for Connection.heartbeat_tick method - Cython generic content - Improve documentation a_global parameter of basic_qos() method. - Fix saving partial read buffer on windows during socket timeout. - 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
2021-05-07 19:58:09 +02:00
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"