Skip to contentSkip to conversation

python3-hypothesis upgrade

PATCH New Tim Orling 1 participant 3 messages Jun 14, 2021

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

cover python3-hypothesis upgrade

AUH upgrade for python3-hypothesis.

This turns out to add RDEPENDS on python3-statistics, which previously had not been a subpackage. Rather than falling back to python3-misc, create a new python3-statistics subpackage.

The following changes since commit 75110a9cc5e6840c65ed24bcca7d4cf1748ab67d:

gcc: Fixes for ARC (2021-06-12 22:53:32 +0100)

are available in the Git repository at:

git://push.openembedded.org/openembedded-core-contrib timo/recipe-upgrades-20210613

Tim Orling (2):
python3-manifest: add statistics subpackage
python3-hypothesis: upgrade 6.13.14 -> 6.14.0

 ...is_6.13.14.bb => python3-hypothesis_6.14.0.bb} | 12 ++++++++++--
 .../python/python3/python3-manifest.json          | 15 +++++++++++++++
 2 files changed, 25 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-hypothesis_6.13.14.bb => python3-hypothesis_6.14.0.bb} (54%)
Signature · 1 line
2.29.2
author
#1 lore raw

PATCH 1/2 python3-manifest: add statistics subpackage

cpython/Lib/statistics.py contains common statistics functions

"""
Basic statistics module.
This module provides functions for calculating statistics of data, including averages, variance, and standard deviation.
"""

---
 .../python/python3/python3-manifest.json          | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
meta/recipes-devtools/python/python3/python3-manifest.json +15 -0
index 615dc3a5e5d..d65cf49cb8c 100644
@@ -814,6 +814,7 @@
             "shell",
             "smtpd",
             "sqlite3",
+	    "statistics",
             "stringold",
             "syslog",
             "terminal",
@@ -1085,6 +1086,20 @@
         ],
         "cached": []
     },
+    "statistics": {
+	"summary": "Basic statistics module",
+	"rdepends": [
+	    "core",
+	    "math",
+	    "numbers"
+	],
+	"files": [
+	    "${libdir}/python${PYTHON_MAJMIN}/statistics.py"
+	],
+	"cached": [
+	    "${libdir}/python${PYTHON_MAJMIN}/__pycache__/statistics.*.pyc"
+	]
+    },
     "stringold": {
         "summary": "Python string APIs [deprecated]",
         "rdepends": [
Signature · 1 line
2.29.2
author
#2 lore raw

PATCH 2/2 python3-hypothesis: upgrade 6.13.14 -> 6.14.0

In reply to Tim Orling

Add runtime dependency on:
- python3-compression
- python3-json
- python3-statistics

Upstream release notes:

6.14.0 - 2021-06-09
The explain phase now requires shrinking to be enabled, and will be automatically skipped for deadline-exceeded errors.

https://hypothesis.readthedocs.io/en/latest/changes.html#v6-14-0

---
 ...hesis_6.13.14.bb => python3-hypothesis_6.14.0.bb} | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-hypothesis_6.13.14.bb => python3-hypothesis_6.14.0.bb} (54%)
meta/recipes-devtools/python/python3-hypothesis_6.14.0.bb renamed from meta/recipes-devtools/python/python3-hypothesis_6.13.14.bb +10 -2
similarity index 54%
rename from meta/recipes-devtools/python/python3-hypothesis_6.13.14.bb
rename to meta/recipes-devtools/python/python3-hypothesis_6.14.0.bb
index 150dc8a5d6b..89071b2a974 100644
@@ -7,8 +7,16 @@ PYPI_PACKAGE = "hypothesis"
 
 inherit pypi setuptools3
 
-SRC_URI[sha256sum] = "36ef2d58f600be2973f694f45a55a5502de705d7594f9cf841276aec9082c414"
+SRC_URI[sha256sum] = "9bdee01ae260329b16117e9b0229a839b4a77747a985922653f595bd2a6a541a"
 
-RDEPENDS_${PN} += "python3-attrs python3-core python3-sortedcontainers python3-unittest"
+RDEPENDS_${PN} += " \
+    python3-attrs \
+    python3-compression \
+    python3-core \
+    python3-json \
+    python3-sortedcontainers \
+    python3-statistics \
+    python3-unittest \
+    "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.29.2