From 260927ba5354db9ffc8dc2ea36832c5223c8e0a6 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Fri, 17 Nov 2023 08:32:05 -0800 Subject: python3-hypothesis: upgrade 6.88.3 -> 6.89.0 https://hypothesis.readthedocs.io/en/latest/changes.html#v6-89-0 https://hypothesis.readthedocs.io/en/latest/changes.html#v6-88-4 6.89.0 - 2023-11-16 This release teaches from_type() to handle constraints implied by the annotated-types package - as used by e.g. Pydantic. This is usually efficient, but falls back to filtering in a few remaining cases. Thanks to Viicos for pull request #3780! 6.88.4 - 2023-11-13 This patch adds a warning when @st.composite wraps a function annotated as returning a SearchStrategy, since this is usually an error (issue #3786). The function should return a value, and the decorator will convert it to a function which returns a strategy. (From OE-Core rev: 041e0a5ceeb55d40ab22071c5d2c358455bc8e23) Signed-off-by: Tim Orling Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- .../python/python3-hypothesis_6.89.0.bb | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-hypothesis_6.89.0.bb (limited to 'meta/recipes-devtools/python/python3-hypothesis_6.89.0.bb') diff --git a/meta/recipes-devtools/python/python3-hypothesis_6.89.0.bb b/meta/recipes-devtools/python/python3-hypothesis_6.89.0.bb new file mode 100644 index 0000000000..035809c394 --- /dev/null +++ b/meta/recipes-devtools/python/python3-hypothesis_6.89.0.bb @@ -0,0 +1,39 @@ +SUMMARY = "A library for property-based testing" +HOMEPAGE = "https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python" +LICENSE = "MPL-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c" + +PYPI_PACKAGE = "hypothesis" + +inherit pypi setuptools3 ptest + +SRC_URI += " \ + file://run-ptest \ + file://test_binary_search.py \ + file://test_rle.py \ + " + +SRC_URI[sha256sum] = "9168bb12cd29001067e66b5f25f1bbdeff08b80c29c3909e19fc8205d8b9aeed" + +RDEPENDS:${PN} += " \ + python3-attrs \ + python3-compression \ + python3-core \ + python3-json \ + python3-pytest \ + python3-sortedcontainers \ + python3-statistics \ + python3-unittest \ + " + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-unittest-automake-output \ + " + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/examples + install -m 0755 ${WORKDIR}/test_binary_search.py ${D}${PTEST_PATH}/examples/ + install -m 0755 ${WORKDIR}/test_rle.py ${D}${PTEST_PATH}/examples/ +} + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf