Skip to contentSkip to conversation

python3-hypothesis: upgrade 6.129.2 -> 6.131.0

PATCH New Lei Maohui 1 participant 2 messages Apr 18, 2025

lore
Share & tools
lore

Lei Maohui

author
#0 lore raw

PATCH v2 1/2 python3-hypothesis: upgrade 6.129.2 -> 6.131.0

This package change to be built using python_setuptools_build_meta build class now

Changelog:
https://github.com/HypothesisWorks/hypothesis/blob/master/hypothesis-python/docs/changelog.rst

---
 ...n3-hypothesis_6.129.2.bb => python3-hypothesis_6.131.0.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-hypothesis_6.129.2.bb => python3-hypothesis_6.131.0.bb} (87%)
meta/recipes-devtools/python/python3-hypothesis_6.131.0.bb renamed from meta/recipes-devtools/python/python3-hypothesis_6.129.2.bb +2 -2
similarity index 87%
rename from meta/recipes-devtools/python/python3-hypothesis_6.129.2.bb
rename to meta/recipes-devtools/python/python3-hypothesis_6.131.0.bb
index df9bd6b7c7..0542a9d188 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c"
 
 PYPI_PACKAGE = "hypothesis"
 
-inherit pypi setuptools3 ptest
+inherit pypi python_setuptools_build_meta ptest
 
 SRC_URI += " \
     file://run-ptest \
@@ -13,7 +13,7 @@ SRC_URI += " \
     file://test_rle.py \
     "
 
-SRC_URI[sha256sum] = "23f180782dbbbcb6e59051794295d75783ad59241e6629a5bf700936c28a995b"
+SRC_URI[sha256sum] = "4b807daeeee47852edfd9818ba0e33df14902f1b78a5524f1a3fb71f80c7cec3"
 
 RDEPENDS:${PN} += " \
     python3-attrs \
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH v2 2/2 python3-hypothesis: Update to use the new ptest-python-pytest class

---
 .../python/python3-hypothesis/run-ptest          | 10 ----------
 .../python/python3-hypothesis_6.131.0.bb         | 16 ++++++----------
 2 files changed, 6 insertions(+), 20 deletions(-)
 delete mode 100644 meta/recipes-devtools/python/python3-hypothesis/run-ptest
meta/recipes-devtools/python/python3-hypothesis/run-ptest deleted +0 -10
deleted file mode 100644
index 54f6e7930f..0000000000
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-# Upstream "fast" tests take about 5 minutes and currently do not run cleanly
-# (tests/cover and tests/pytest)
-# https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python/tests
-# https://github.com/HypothesisWorks/hypothesis/blob/master/hypothesis-python/scripts/basic-test.sh#L18
-#
-# Instead we run two test suites imported from examples/
-
-pytest --automake
meta/recipes-devtools/python/python3-hypothesis_6.131.0.bb +6 -10
index 0542a9d188..d7656dc1d8 100644
@@ -4,11 +4,11 @@ LICENSE = "MPL-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c"
 
 PYPI_PACKAGE = "hypothesis"
+PTEST_PYTEST_DIR ?= "examples"
 
-inherit pypi python_setuptools_build_meta ptest
+inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 SRC_URI += " \
-    file://run-ptest \
     file://test_binary_search.py \
     file://test_rle.py \
     "
@@ -27,14 +27,10 @@ RDEPENDS:${PN} += " \
     python3-zoneinfo \
     "
 
-RDEPENDS:${PN}-ptest += " \
-    python3-unittest-automake-output \
-    "
-
-do_install_ptest() {
-    install -d ${D}${PTEST_PATH}/examples
-    install -m 0755 ${UNPACKDIR}/test_binary_search.py ${D}${PTEST_PATH}/examples/
-    install -m 0755 ${UNPACKDIR}/test_rle.py ${D}${PTEST_PATH}/examples/
+do_install_ptest:append() {
+    install -d ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}
+    install -m 0755 ${UNPACKDIR}/test_binary_search.py ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}/
+    install -m 0755 ${UNPACKDIR}/test_rle.py ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}/
 }
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.43.0