diff options
| author | wangmy <wangmy@fujitsu.com> | 2022-03-01 17:41:44 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-02 18:43:24 +0000 |
| commit | 9a2c44ff6100ccc19193e9e76a12df85c6f84eb4 (patch) | |
| tree | 9b34cbff48f5f5d45efeb10f64f003ba0dc876cb /meta/recipes-devtools/python/python3-hypothesis_6.39.0.bb | |
| parent | f91f0d2046fe9de1bc7caf69d021375938443f49 (diff) | |
| download | poky-9a2c44ff6100ccc19193e9e76a12df85c6f84eb4.tar.gz | |
python3-hypothesis: upgrade 6.37.2 -> 6.39.0
Changelog:
=========
This release improves Hypothesis' handling of positional-only arguments,
which are now allowed @st.composite strategies.
On Python 3.8 and later, the first arguments to builds() and from_model()
are now natively positional-only. In cases which were already errors, the
TypeError from incorrect usage will therefore be raises immediately when
the function is called, rather than when the strategy object is used.
(From OE-Core rev: 4278a345300dd9c42fcd28a7f2149e6046b3467e)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-hypothesis_6.39.0.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-hypothesis_6.39.0.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-hypothesis_6.39.0.bb b/meta/recipes-devtools/python/python3-hypothesis_6.39.0.bb new file mode 100644 index 0000000000..81bc26208d --- /dev/null +++ b/meta/recipes-devtools/python/python3-hypothesis_6.39.0.bb | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | SUMMARY = "A library for property-based testing" | ||
| 2 | HOMEPAGE = "https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python" | ||
| 3 | LICENSE = "MPL-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c" | ||
| 5 | |||
| 6 | PYPI_PACKAGE = "hypothesis" | ||
| 7 | |||
| 8 | inherit pypi setuptools3 ptest | ||
| 9 | |||
| 10 | SRC_URI += " \ | ||
| 11 | file://run-ptest \ | ||
| 12 | file://test_binary_search.py \ | ||
| 13 | file://test_rle.py \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRC_URI[sha256sum] = "1744b82251ce89173e9d5b3627c59723ec0b5130df1c1710e19b8e6f5f42399b" | ||
| 17 | |||
| 18 | RDEPENDS:${PN} += " \ | ||
| 19 | python3-attrs \ | ||
| 20 | python3-compression \ | ||
| 21 | python3-core \ | ||
| 22 | python3-json \ | ||
| 23 | python3-sortedcontainers \ | ||
| 24 | python3-statistics \ | ||
| 25 | python3-unittest \ | ||
| 26 | " | ||
| 27 | |||
| 28 | RDEPENDS:${PN}-ptest += " \ | ||
| 29 | ${PYTHON_PN}-pytest \ | ||
| 30 | " | ||
| 31 | |||
| 32 | do_install_ptest() { | ||
| 33 | install -d ${D}${PTEST_PATH}/examples | ||
| 34 | install -m 0755 ${WORKDIR}/test_binary_search.py ${D}${PTEST_PATH}/examples/ | ||
| 35 | install -m 0755 ${WORKDIR}/test_rle.py ${D}${PTEST_PATH}/examples/ | ||
| 36 | } | ||
| 37 | |||
| 38 | BBCLASSEXTEND = "native nativesdk" | ||
