mirror of
https://git.yoctoproject.org/poky
synced 2026-02-11 19:23:03 +01:00
python3-hypothesis: upgrade 6.86.2 -> 6.87.4
Changelog: ============ -When randoms() was called with use_true_randoms=False, calling sample on it with an empty sequence and 0 elements would result in an error, when it should have returned an empty sequence to agree with the normal behaviour of random.Random. This fixes that discrepancy. -This patch ensures that the hypothesis codemod CLI will print a warning instead of stopping with an internal error if one of your files contains invalid syntax (issue #3759). -This patch makes some small changes to our NumPy integration to ensure forward compatibility. Thanks to Mateusz Sokół for pull request #3761. -Fixes issue #3755, where an internal condition turns out to be reachable after all. -This release deprecates use of assume() and reject() outside of property-based tests, because these functions work by raising a special exceptioni. It also fixes some type annotations (issue #3753). (From OE-Core rev: 634f289c702e112964cc91eee02f9af7b6431bc5) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8eb2dfb795
commit
849eba582b
39
meta/recipes-devtools/python/python3-hypothesis_6.87.4.bb
Normal file
39
meta/recipes-devtools/python/python3-hypothesis_6.87.4.bb
Normal file
@@ -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] = "c508779be66e266c45dbf9c1b2713e560dfd89abb044d92eafe91e8b2728af01"
|
||||
|
||||
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"
|
||||
Reference in New Issue
Block a user