Skip to contentSkip to conversation

python-beautifulsoup4: add new recipe and required packages

PATCH New [email protected] 1 participant 4 messages Aug 25, 2017

lore
Share & tools
lore
#0 lore raw

cover python-beautifulsoup4: add new recipe and required packages

From: Jackie Huang <[email protected]>

--
The following changes since commit ac2a6d2b5d69937577effcb8bb2149651bac0176:

json-spirit: Add -latomic to LDFLAGS (2017-08-13 13:21:04 +0200)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib.git jhuang0/r_up_python-beautifulsoup4_170825_0
http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/r_up_python-beautifulsoup4_170825_0

Jackie Huang (3):
python-html5lib: add Python3 support
python-webencodings: add Python3 support
python-beautifulsoup4: add new recipe for both python2 and python3

 .../recipes-devtools/python/python-beautifulsoup4.inc   | 17 +++++++++++++++++
 .../python/python-beautifulsoup4_4.6.0.bb               |  2 ++
 meta-python/recipes-devtools/python/python-html5lib.inc | 14 ++++++++++++++
 .../python/python-html5lib_0.999999999.bb               | 16 ++--------------
 .../recipes-devtools/python/python-webencodings.inc     | 10 ++++++++++
 .../python/python-webencodings_0.5.1.bb                 | 12 ++----------
 .../python/python3-beautifulsoup4_4.6.0.bb              |  2 ++
 .../python/python3-html5lib_0.999999999.bb              |  2 ++
 .../python/python3-webencodings_0.5.1.bb                |  2 ++
 9 files changed, 53 insertions(+), 24 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-beautifulsoup4.inc
 create mode 100644 meta-python/recipes-devtools/python/python-beautifulsoup4_4.6.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python-html5lib.inc
 create mode 100644 meta-python/recipes-devtools/python/python-webencodings.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-beautifulsoup4_4.6.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-html5lib_0.999999999.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-webencodings_0.5.1.bb
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/3 python-html5lib: add Python3 support

From: Jackie Huang <[email protected]>

Extend the recipe for Python3 support.

---
 meta-python/recipes-devtools/python/python-html5lib.inc  | 14 ++++++++++++++
 .../python/python-html5lib_0.999999999.bb                | 16 ++--------------
 .../python/python3-html5lib_0.999999999.bb               |  2 ++
 3 files changed, 18 insertions(+), 14 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-html5lib.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-html5lib_0.999999999.bb
meta-python/recipes-devtools/python/python-html5lib.inc new file +14 -0
new file mode 100644
index 000000000..9c59e0d18
@@ -0,0 +1,14 @@
+SUMMARY = "HTML parser based on the WHATWG HTML specifcation"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ba5ada9e6fead1fdc32f43c9f10ba7c"
+
+SRC_URI[md5sum] = "8578e4e3a341436cb9743a9e4a299239"
+SRC_URI[sha256sum] = "ee747c0ffd3028d2722061936b5c65ee4fe13c8e4613519b4447123fc4546298"
+
+inherit pypi
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-six \
+    ${PYTHON_PN}-webencodings \
+    ${PYTHON_PN}-xml \
+    "
meta-python/recipes-devtools/python/python-html5lib_0.999999999.bb +2 -14
index d0f7b56ee..f5941a2a1 100644
@@ -1,14 +1,2 @@
-SUMMARY = "HTML parser based on the WHATWG HTML specifcation"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=1ba5ada9e6fead1fdc32f43c9f10ba7c"
-
-SRC_URI[md5sum] = "8578e4e3a341436cb9743a9e4a299239"
-SRC_URI[sha256sum] = "ee747c0ffd3028d2722061936b5c65ee4fe13c8e4613519b4447123fc4546298"
-
-inherit pypi setuptools
-
-RDEPENDS_${PN} += "\
-    ${PYTHON_PN}-six \
-    ${PYTHON_PN}-webencodings \
-    ${PYTHON_PN}-xml \
-    "
+inherit setuptools
+require python-html5lib.inc
meta-python/recipes-devtools/python/python3-html5lib_0.999999999.bb new file +2 -0
new file mode 100644
index 000000000..6bd8b49f5
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-html5lib.inc
Signature · 1 line
2.11.0
#2 lore raw

PATCH 2/3 python-webencodings: add Python3 support

In reply to [email protected]

From: Jackie Huang <[email protected]>

Extend the recipe for Python3 support.

---
 meta-python/recipes-devtools/python/python-webencodings.inc  | 10 ++++++++++
 .../recipes-devtools/python/python-webencodings_0.5.1.bb     | 12 ++----------
 .../recipes-devtools/python/python3-webencodings_0.5.1.bb    |  2 ++
 3 files changed, 14 insertions(+), 10 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-webencodings.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-webencodings_0.5.1.bb
meta-python/recipes-devtools/python/python-webencodings.inc new file +10 -0
new file mode 100644
index 000000000..ed57c52e5
@@ -0,0 +1,10 @@
+SUMMARY = "Character encoding aliases for legacy web content"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://PKG-INFO;startline=8;endline=9;md5=af5c81bfe98855a56d36b6ba5de2906f"
+
+SRC_URI[md5sum] = "32f6e261d52e57bf7e1c4d41546d15b8"
+SRC_URI[sha256sum] = "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
+
+inherit pypi
+
+RDEPENDS_${PN} += "${PYTHON_PN}-codecs"
meta-python/recipes-devtools/python/python-webencodings_0.5.1.bb +2 -10
index d7e4d2ebb..5de2ed1d7 100644
@@ -1,10 +1,2 @@
-SUMMARY = "Character encoding aliases for legacy web content"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://PKG-INFO;startline=8;endline=9;md5=af5c81bfe98855a56d36b6ba5de2906f"
-
-SRC_URI[md5sum] = "32f6e261d52e57bf7e1c4d41546d15b8"
-SRC_URI[sha256sum] = "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
-
-inherit pypi setuptools
-
-RDEPENDS_${PN} += "${PYTHON_PN}-codecs"
+inherit setuptools
+require python-webencodings.inc
meta-python/recipes-devtools/python/python3-webencodings_0.5.1.bb new file +2 -0
new file mode 100644
index 000000000..71fe741e4
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-webencodings.inc
Signature · 1 line
2.11.0
#3 lore raw

PATCH 3/3 python-beautifulsoup4: add new recipe for both python2 and python3

In reply to [email protected]

From: Jackie Huang <[email protected]>

Beautiful Soup sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree.

---
 .../recipes-devtools/python/python-beautifulsoup4.inc   | 17 +++++++++++++++++
 .../python/python-beautifulsoup4_4.6.0.bb               |  2 ++
 .../python/python3-beautifulsoup4_4.6.0.bb              |  2 ++
 3 files changed, 21 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-beautifulsoup4.inc
 create mode 100644 meta-python/recipes-devtools/python/python-beautifulsoup4_4.6.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-beautifulsoup4_4.6.0.bb
meta-python/recipes-devtools/python/python-beautifulsoup4.inc new file +17 -0
new file mode 100644
index 000000000..d60d987ca
@@ -0,0 +1,17 @@
+SUMMARY = "Screen-scraping library"
+HOMEPAGE = " https://www.crummy.com/software/BeautifulSoup/bs4"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=f2d38d8a40bf73fd4b3d16ca2e5882d1"
+
+SRC_URI[md5sum] = "c17714d0f91a23b708a592cb3c697728"
+SRC_URI[sha256sum] = "808b6ac932dccb0a4126558f7dfdcf41710dd44a4ef497a0bb59a77f9f078e89"
+
+inherit pypi
+
+RDEPENDS_${PN}_class-target = "\
+    ${PYTHON_PN}-core \
+    ${PYTHON_PN}-html5lib \
+    ${PYTHON_PN}-lxml \
+"
+
+BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python-beautifulsoup4_4.6.0.bb new file +2 -0
new file mode 100644
index 000000000..907285ac1
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-beautifulsoup4.inc
meta-python/recipes-devtools/python/python3-beautifulsoup4_4.6.0.bb new file +2 -0
new file mode 100644
index 000000000..d98df11e3
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-beautifulsoup4.inc
Signature · 1 line
2.11.0