From e710ce117d09c733a1d89d1e2792096859de9c6b Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 8 Nov 2021 12:42:35 +0200 Subject: python3-soupsieve: Upgrade 2.2.1 -> 2.3 Upgrade to release 2.3: - Officially support Python 3.10. - Add static typing. - :has(), :is(), and :where() now use use a forgiving selector list. While not as forgiving as CSS might be, it will forgive such things as empty sets and empty slots due to multiple consecutive commas, leading commas, or trailing commas. Essentially, these pseudo-classes will match all non-empty selectors and ignore empty ones. As the scraping environment is different than a browser environment, it was chosen not to aggressively forgive bad syntax and invalid features to ensure the user is alerted that their program may not perform as expected. - Add support to output a pretty print format of a compiled SelectorList for debug purposes. - Some small corner cases discovered with static typing. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../python/python3-soupsieve_2.2.1.bb | 25 ------------------- .../python/python3-soupsieve_2.3.bb | 29 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 25 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-soupsieve_2.2.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-soupsieve_2.3.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-soupsieve_2.2.1.bb b/meta-python/recipes-devtools/python/python3-soupsieve_2.2.1.bb deleted file mode 100644 index a656af6246..0000000000 --- a/meta-python/recipes-devtools/python/python3-soupsieve_2.2.1.bb +++ /dev/null @@ -1,25 +0,0 @@ -SUMMARY = "CSS selector library for python-beautifulsoup4" -HOMEPAGE = "https://github.com/facelessuser/soupsieve" - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE.md;md5=33c3a77def9b3ad83e01c65bdcc1af67" - -SRC_URI[sha256sum] = "052774848f448cf19c7e959adf5566904d525f33a3f8b6ba6f6f8f26ec7de0cc" - -inherit pypi setuptools3 ptest - -SRC_URI += " \ - file://run-ptest \ -" - -RDEPENDS:${PN}-ptest += " \ - ${PYTHON_PN}-pytest \ - ${PYTHON_PN}-beautifulsoup4 \ -" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/tests - cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ -} - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-soupsieve_2.3.bb b/meta-python/recipes-devtools/python/python3-soupsieve_2.3.bb new file mode 100644 index 0000000000..3e0e6f0ee1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-soupsieve_2.3.bb @@ -0,0 +1,29 @@ +SUMMARY = "CSS selector library for python-beautifulsoup4" +HOMEPAGE = "https://github.com/facelessuser/soupsieve" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=33c3a77def9b3ad83e01c65bdcc1af67" + +SRC_URI[sha256sum] = "e4860f889dfa88774c07da0b276b70c073b6470fa1a4a8350800bb7bce3dcc76" + +inherit pypi setuptools3 ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN} += "\ + ${PYTHON_PN}-beautifulsoup4 \ +" + +RDEPENDS:${PN}-ptest += " \ + ${PYTHON_PN}-pytest \ + ${PYTHON_PN}-beautifulsoup4 \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf