Skip to contentSkip to conversation

python(3)-beautifulsoup4: fix RDEPENDS

PATCH New Peter Kolbus 1 participant 4 messages Dec 29, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/4 python(3)-beautifulsoup4: fix RDEPENDS

The RDEPENDS for class-target also apply to class-native.

---
 meta-python/recipes-devtools/python/python-beautifulsoup4.inc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-python/recipes-devtools/python/python-beautifulsoup4.inc +1 -2
index acf52dd7d..a52c96487 100644
@@ -8,8 +8,7 @@ SRC_URI[sha256sum] = "6135db2ba678168c07950f9a16c4031822c6f4aec75a65e0a97bc5ca09
 
 inherit pypi
 
-RDEPENDS_${PN}_class-target = "\
-    ${PYTHON_PN}-core \
+RDEPENDS_${PN} = "\
     ${PYTHON_PN}-html5lib \
     ${PYTHON_PN}-lxml \
 "
Signature · 1 line
2.24.1
#1 lore raw

PATCH v2 2/4 python3-soupsieve: add recipe

Soupsieve is a CSS selector library used by python(3)-beautifulsoup4 since 4.7.0.

---
 .../recipes-devtools/python/python-soupsieve.inc     | 12 ++++++++++++
 .../python/python3-soupsieve_1.9.4.bb                |  2 ++
 2 files changed, 14 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-soupsieve.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-soupsieve_1.9.4.bb
meta-python/recipes-devtools/python/python-soupsieve.inc new file +12 -0
new file mode 100644
index 000000000..ccb04f445
@@ -0,0 +1,12 @@
+SUMMARY = "CSS selector library for python-beautifulsoup4"
+HOMEPAGE = "https://github.com/facelessuser/soupsieve"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5a6fd3b0c24fc5a041a3d1bbb22c81b5"
+
+SRC_URI[md5sum] = "43d8ea20c58494446aa65ba5cc6320fe"
+SRC_URI[sha256sum] = "605f89ad5fdbfefe30cdc293303665eff2d188865d4dbe4eb510bba1edfbfce3"
+
+inherit pypi
+
+BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python3-soupsieve_1.9.4.bb new file +2 -0
new file mode 100644
index 000000000..1b9663691
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-soupsieve.inc
Signature · 1 line
2.24.1
#2 lore raw

PATCH v2 3/4 python-soupsieve: add recipe

In reply to Peter Kolbus

Backport python3-soupsieve to python2; this enables use in python-beautifulsoup4.

---
 meta-python/recipes-devtools/python/python-soupsieve_1.9.4.bb | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-soupsieve_1.9.4.bb
meta-python/recipes-devtools/python/python-soupsieve_1.9.4.bb new file +4 -0
new file mode 100644
index 000000000..55a673ecc
@@ -0,0 +1,4 @@
+inherit setuptools
+require python-soupsieve.inc
+
+RDEPENDS_${PN} += "${PYTHON_PN}-backports-functools-lru-cache"
Signature · 1 line
2.24.1
#3 lore raw

PATCH v2 4/4 python(3)-beautifulsoup4: add soupsieve to RDEPENDS

In reply to Peter Kolbus

Since version 4.7.0, beautifulsoup4 uses soupsieve for CSS selectors. Add to RDEPENDS to address this oversight.

---
 meta-python/recipes-devtools/python/python-beautifulsoup4.inc | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python-beautifulsoup4.inc +1 -0
index a52c96487..8c9dbfc68 100644
@@ -11,6 +11,7 @@ inherit pypi
 RDEPENDS_${PN} = "\
     ${PYTHON_PN}-html5lib \
     ${PYTHON_PN}-lxml \
+    ${PYTHON_PN}-soupsieve \
 "
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.24.1