Skip to contentSkip to conversation

python3-qrcode: Convert optional dependencies into PACKAGECONFIG

PATCH New Alex Kiernan 1 participant 1 message Sep 1

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-qrcode: Convert optional dependencies into PACKAGECONFIG

Both python3-pillow and python3-pypng are optional, make them PACKAGECONFIG entries and enable both so that the default stays the same. Drop python3-six which was removed in 4d80a78 ("Remove six").

---
 meta-python/recipes-devtools/python/python3-qrcode_8.2.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
meta-python/recipes-devtools/python/python3-qrcode_8.2.bb +4 -3
index 1671864c1f6e..78532d9cec9f 100644
@@ -7,9 +7,10 @@ SRC_URI[sha256sum] = "35c3f2a4172b33136ab9f6b3ef1c00260dd2f66f858f24d88418a015f4
 
 inherit pypi python_poetry_core
 
+PACKAGECONFIG ?= "pillow png"
+PACKAGECONFIG[pillow] = ",,,python3-pillow"
+PACKAGECONFIG[png] = ",,,python3-pypng"
+
 RDEPENDS:${PN} = " \
-    python3-six \
-    python3-pillow \
-    python3-pypng \
     python3-typing-extensions \
 "