Skip to contentSkip to conversation

Fix runtime dependencies of 2 python packages

PATCH New iwanicki92 1 participant 3 messages Aug 2

lore
Share & tools
lore

iwanicki92

author
#0 lore raw

cover Fix runtime dependencies of 2 python packages

Those packages are python3-rich and python3-typer. Packages are completely unusable if they are the only python packages installed due to missing many runtime dependencies.

iwanicki92 (2):
python3-rich: add missing runtime dependencies
python3-typer: add missing runtime dependencies

 .../python/python3-typer_0.27.0.bb            | 13 ++++++++----
 .../python-rich/python3-rich_15.0.0.bb        | 21 ++++++++++++++-----
 2 files changed, 25 insertions(+), 9 deletions(-)
Signature · 1 line
2.55.0
author
#1 lore raw

PATCH 1/2 python3-rich: add missing runtime dependencies

python3-markdown-it-py was missing along with some python3 modules. I went through the code and added everything imported that I noticed, except modules imported on Windows.

---
 .../python-rich/python3-rich_15.0.0.bb        | 21 ++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)
meta-python/recipes-extended/python-rich/python3-rich_15.0.0.bb +16 -5
index 2ab3b2fdbc24..e15e84253548 100644
@@ -12,10 +12,21 @@ SRC_URI[sha256sum] = "edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b
 
 inherit pypi python_poetry_core
 
-RDEPENDS:${PN} = "python3-html \
-                  python3-image \
-                  python3-pygments \
-                  python3-unixadmin \
-                  "
+RDEPENDS:${PN} = " \
+    python3-datetime \
+    python3-html \
+    python3-image \
+    python3-io \
+    python3-json \
+    python3-logging \
+    python3-markdown-it-py \
+    python3-math \
+    python3-mmap \
+    python3-numbers \
+    python3-pickle \
+    python3-pygments \
+    python3-threading \
+    python3-unixadmin \
+"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.55.0
author
#2 lore raw

PATCH 2/2 python3-typer: add missing runtime dependencies

In reply to iwanicki92

Move rich and shellingham from ptest to main package as typer depends on them. Remove click since it was vendored in 0.26.0 and typing-extensions since it isn't mentioned in pyproject.toml, and the only use is in module that is loaded when running on Windows.

Add missing annotated-doc package rdependency, and missing python3 modules (went through the code to check the imports)

---
 .../recipes-devtools/python/python3-typer_0.27.0.bb | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
meta-python/recipes-devtools/python/python3-typer_0.27.0.bb +9 -4
index 42b5cdc07d03..11c8ff6fccaf 100644
@@ -18,8 +18,15 @@ SRC_URI:append = " \
 PYPI_PACKAGE = "typer"
 
 RDEPENDS:${PN} += "\
-    python3-click \
-    python3-typing-extensions \
+    python3-annotated-doc \
+    python3-datetime \
+    python3-difflib \
+    python3-io \
+    python3-math \
+    python3-rich \
+    python3-shell \
+    python3-shellingham \
+    python3-threading \
 "
 # python3-misc for webbrowser module
 RDEPENDS:${PN}-ptest += "\
@@ -32,8 +39,6 @@ RDEPENDS:${PN}-ptest += "\
     python3-pytest-cov \
     python3-pytest-sugar \
     python3-pytest-xdist \
-    python3-rich \
-    python3-shellingham \
     python3-toml \
     python3-unittest-automake-output \
 "
Signature · 1 line
2.55.0