mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-27 12:01:38 +01:00
oe-core currently ships with Python 3.10.18. Python 3.10.17 has introduced a change in urlparse library, regarding how brackets are handled by urllib.parse.urlsplit() and urlparse() functions (which makes it more conformant to the specification). This has caused a regression in yarl: some tests have failed, and it also revealed a bug in how yarl treates brackets. This backported patch corrects this behavior, making it compatible once again with the current Python version - and it also allows the the ptests to pass once again. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
28 lines
722 B
BlitzBasic
28 lines
722 B
BlitzBasic
SUMMARY = "The module provides handy URL class for url parsing and changing"
|
|
HOMEPAGE = "https://github.com/aio-libs/yarl/"
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=e581798a7b985311f29fa3e163ea27ae"
|
|
|
|
SRC_URI[sha256sum] = "45399b46d60c253327a460e99856752009fcee5f5d3c80b2f7c0cae1c38d56dd"
|
|
|
|
SRC_URI += "file://run-ptest \
|
|
file://0001-Correct-square-bracket-handling-in-URL-netloc-882.patch"
|
|
|
|
PYPI_PACKAGE = "yarl"
|
|
|
|
inherit pypi ptest setuptools3
|
|
|
|
RDEPENDS:${PN} = "\
|
|
${PYTHON_PN}-multidict \
|
|
${PYTHON_PN}-idna \
|
|
"
|
|
|
|
RDEPENDS:${PN}-ptest += " \
|
|
${PYTHON_PN}-pytest \
|
|
"
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/tests
|
|
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
|
}
|