python3-zeroconf: Upgrade 0.149.16 -> 0.149.17
PATCH 1/2 python3-zeroconf: Upgrade 0.149.16 -> 0.149.17
- Precompute address hash instead of per-instance lru_cache
- Add benchmarks for cache mark-to-expire path
- Add benchmarks for ipaddress object creation and hashing
- Synchronise test_integration on browser first-query
Signed-off-by Leon Anavi <[email protected]>
---
...ython3-zeroconf_0.149.16.bb => python3-zeroconf_0.149.17.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-zeroconf_0.149.16.bb => python3-zeroconf_0.149.17.bb} (81%)meta-python/recipes-devtools/python/python3-zeroconf_0.149.17.bb renamed from meta-python/recipes-devtools/python/python3-zeroconf_0.149.16.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/jstasiak/python-zeroconf" LICENSE = "LGPL-2.1-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=9fe712b1bc27c5c4e9ecd7f31d208900" -SRC_URI[sha256sum] = "5e6b5a3b153c2cc2a8d9e6f6f189ec5638f7d9c86fc3e88a6c53eb6863761a5e" +SRC_URI[sha256sum] = "f10e58071bc5e749176b8dc8d7e7ed4d2e6b507dde20fd8169b760cf4f7f4c5a" inherit pypi python_poetry_core cython
Signature · 1 line
2.47.3
PATCH 2/2 python3-zeroconf: Enable tests
Inherit ptest and includes tests for python3-zeroconf.
Signed-off-by Leon Anavi <[email protected]>
--- .../python/python3-zeroconf/run-ptest | 3 +++ .../python/python3-zeroconf_0.149.17.bb | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-zeroconf/run-ptest
meta-python/recipes-devtools/python/python3-zeroconf/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake
meta-python/recipes-devtools/python/python3-zeroconf_0.149.17.bb +15 -1
@@ -5,9 +5,23 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9fe712b1bc27c5c4e9ecd7f31d208900" SRC_URI[sha256sum] = "f10e58071bc5e749176b8dc8d7e7ed4d2e6b507dde20fd8169b760cf4f7f4c5a" -inherit pypi python_poetry_core cython +SRC_URI += "file://run-ptest" + +inherit pypi python_poetry_core cython ptest RDEPENDS:${PN} += " \ python3-ifaddr (>=0.1.7) \ python3-async-timeout \ " + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-pytest-asyncio \ + python3-pytest-codspeed \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +}
Signature · 1 line
2.47.3