From af5a88f28b7387457e6f74d266fd39657d4f022b Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 17 Jan 2023 15:24:22 +0800 Subject: python3-pyzmq: upgrade 24.0.1 -> 25.0.0 Changelog: ========== New: ------ - Added socket_class argument to zmq.Context.socket() - Support shadowing sockets with socket objects, not just via address, e.g. zmq.asyncio.Socket(other_socket). Shadowing an object preserves a reference to the original, unlike shadowing via address. - in zmq.auth, CredentialsProvider callbacks may now be async. - ZMQStream callbacks may now be async. - Add zmq.ReconnectStop draft constants. - Add manylinux_2_28 wheels for x86_64 CPython 3.10, 3.11, and PyPy 3.9 (these are in addition to not instead of the manylinux_2014 wheels). Fixed: ------- - When ZMQStream is given an async socket, it now warns and hooks up events correctly with the underlying socket, so the callback gets the received message, instead of sending the callback the incorrect arguments. - Fixed toml parse error in pyproject.toml, when installing from source with very old pip. - Removed expressed dependency on py when running with pypy, which hasn't been used in some time. Deprecated: ---------- - zmq.auth.ioloop.IOLoopAuthenticator is deprecated in favor of zmq.auth.asyncio.AsyncioAuthenticator - As part of migrating toward modern pytest, zmq.tests.BaseZMQTestCase is deprecated and should not be used outside pyzmq. - python setup.py test is deprecated as a way to launch the tests. Just use pytest. Removed: ---------- - Bundled subset of tornado's IOLoop (deprecated since pyzmq 17) is removed, so ZMQStream cannot be used without an actual install of tornado. - Remove support for tornado 4, meaning tornado is always assumed to run on asyncio. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-pyzmq_24.0.1.bb | 55 ---------------------- .../python/python3-pyzmq_25.0.0.bb | 55 ++++++++++++++++++++++ 2 files changed, 55 insertions(+), 55 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pyzmq_24.0.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-pyzmq_25.0.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-pyzmq_24.0.1.bb b/meta-python/recipes-devtools/python/python3-pyzmq_24.0.1.bb deleted file mode 100644 index b3b0aefe1f..0000000000 --- a/meta-python/recipes-devtools/python/python3-pyzmq_24.0.1.bb +++ /dev/null @@ -1,55 +0,0 @@ -SUMMARY = "PyZMQ: Python bindings for ZMQ" -DESCRIPTION = "This package contains Python bindings for ZeroMQ. ZMQ is a lightweight and fast messaging implementation." -HOMEPAGE = "http://zeromq.org/bindings:python" -LICENSE = "BSD-3-Clause & LGPL-3.0-only" -LIC_FILES_CHKSUM = "\ - file://COPYING.BSD;md5=11c65680f637c3df7f58bbc8d133e96e \ - file://COPYING.LESSER;md5=12c592fa0bcfff3fb0977b066e9cb69e \ -" - -DEPENDS = "python3-packaging-native zeromq" - -SRC_URI:append = " \ - file://club-rpath-out.patch \ - file://run-ptest \ -" -SRC_URI[sha256sum] = "216f5d7dbb67166759e59b0479bca82b8acf9bed6015b526b8eb10143fb08e77" - -inherit pypi pkgconfig python_setuptools_build_meta ptest - -PACKAGES =+ "\ - ${PN}-test \ -" - -FILES:${PN}-test += "\ - ${libdir}/${PYTHON_DIR}/site-packages/*/tests \ -" - -RDEPENDS:${PN} += "\ - ${PYTHON_PN}-json \ - ${PYTHON_PN}-multiprocessing \ -" - -RDEPENDS:${PN}-ptest += "\ - ${PN}-test \ - ${PYTHON_PN}-pytest \ -" - -do_compile:prepend() { - echo [global] > ${S}/setup.cfg - echo zmq_prefix = ${STAGING_DIR_HOST} >> ${S}/setup.cfg - echo have_sys_un_h = True >> ${S}/setup.cfg - echo skip_check_zmq = True >> ${S}/setup.cfg - echo libzmq_extension = False >> ${S}/setup.cfg - echo no_libzmq_extension = True >> ${S}/setup.cfg -} - -do_install:append() { - sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/config.json - sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/compiler.json -} - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/zmq/tests/* ${D}${PTEST_PATH}/tests/ -} diff --git a/meta-python/recipes-devtools/python/python3-pyzmq_25.0.0.bb b/meta-python/recipes-devtools/python/python3-pyzmq_25.0.0.bb new file mode 100644 index 0000000000..39a7614fc5 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyzmq_25.0.0.bb @@ -0,0 +1,55 @@ +SUMMARY = "PyZMQ: Python bindings for ZMQ" +DESCRIPTION = "This package contains Python bindings for ZeroMQ. ZMQ is a lightweight and fast messaging implementation." +HOMEPAGE = "http://zeromq.org/bindings:python" +LICENSE = "BSD-3-Clause & LGPL-3.0-only" +LIC_FILES_CHKSUM = "\ + file://COPYING.BSD;md5=11c65680f637c3df7f58bbc8d133e96e \ + file://COPYING.LESSER;md5=12c592fa0bcfff3fb0977b066e9cb69e \ +" + +DEPENDS = "python3-packaging-native zeromq" + +SRC_URI:append = " \ + file://club-rpath-out.patch \ + file://run-ptest \ +" +SRC_URI[sha256sum] = "f330a1a2c7f89fd4b0aa4dcb7bf50243bf1c8da9a2f1efc31daf57a2046b31f2" + +inherit pypi pkgconfig python_setuptools_build_meta ptest + +PACKAGES =+ "\ + ${PN}-test \ +" + +FILES:${PN}-test += "\ + ${libdir}/${PYTHON_DIR}/site-packages/*/tests \ +" + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-json \ + ${PYTHON_PN}-multiprocessing \ +" + +RDEPENDS:${PN}-ptest += "\ + ${PN}-test \ + ${PYTHON_PN}-pytest \ +" + +do_compile:prepend() { + echo [global] > ${S}/setup.cfg + echo zmq_prefix = ${STAGING_DIR_HOST} >> ${S}/setup.cfg + echo have_sys_un_h = True >> ${S}/setup.cfg + echo skip_check_zmq = True >> ${S}/setup.cfg + echo libzmq_extension = False >> ${S}/setup.cfg + echo no_libzmq_extension = True >> ${S}/setup.cfg +} + +do_install:append() { + sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/config.json + sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/compiler.json +} + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/zmq/tests/* ${D}${PTEST_PATH}/tests/ +} -- cgit v1.2.3-54-g00ecf