mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

Upgrade to stable version 1.17.0: - Add __format__() method to ObjectProxy class to allow formatting of wrapped object. - Added C extension internal flag to indicate that wrapt should be safe for Python 3.13 free threading mode. Releases will include free threading variants of Python wheels. Note that as free threading is new, one should be cautious about using it in production until it has been more widely tested. - When a normal function or builtin function which had wrapt.decorator or a function wrapper applied, was assigned as a class attribute, and the function attribute called via the class or an instance of the class, an additional argument was being passed, inserted as the first argument, which was the class or instance. This was not the correct behaviour and the class or instance should not have been passed as the first argument. - When an instance of a callable class object was wrapped which didn't have a __get__() method for binding, and it was called in context whhere binding would be attempted, it would fail with error that __get__() did not exist when instead it should have been called directly, ignoring that binding was not possible. - The __round__ hook for the object proxy didn't accept ndigits argument. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
36 lines
887 B
BlitzBasic
36 lines
887 B
BlitzBasic
SUMMARY = "A Python module for decorators, wrappers and monkey patching."
|
|
HOMEPAGE = "http://wrapt.readthedocs.org/"
|
|
LICENSE = "BSD-2-Clause"
|
|
SECTION = "devel/python"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=dc34cbad60bc961452eb7ade801d25f7"
|
|
|
|
SRC_URI[sha256sum] = "5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d"
|
|
|
|
inherit setuptools3 ptest
|
|
|
|
SRCREV = "e663d4910a81d666786ac773ad7c16199b01d31b"
|
|
SRC_URI += "git://github.com/GrahamDumpleton/wrapt;protocol=https;branch=develop \
|
|
file://run-ptest \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
# python3-misc for 'this' module
|
|
RDEPENDS:${PN}-ptest += " \
|
|
python3-misc \
|
|
python3-pytest \
|
|
python3-unittest-automake-output \
|
|
"
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/tests
|
|
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
|
}
|
|
|
|
RDEPENDS:${PN}:class-target += "\
|
|
python3-stringold \
|
|
python3-threading \
|
|
"
|
|
|
|
BBCLASSEXTEND = "native"
|