From 79178cdda696035e83f72228d6deae41beeb9877 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 28 Nov 2024 12:38:55 +0200 Subject: python3-wrapt: Upgrade 1.17.0rc1 -> 1.17.0 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 Signed-off-by: Khem Raj --- .../python/python3-wrapt_1.17.0.bb | 35 ++++++++++++++++++++++ .../python/python3-wrapt_1.17.0rc1.bb | 35 ---------------------- 2 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-wrapt_1.17.0.bb delete mode 100644 meta-python/recipes-devtools/python/python3-wrapt_1.17.0rc1.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-wrapt_1.17.0.bb b/meta-python/recipes-devtools/python/python3-wrapt_1.17.0.bb new file mode 100644 index 0000000000..b72bafb6de --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-wrapt_1.17.0.bb @@ -0,0 +1,35 @@ +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" diff --git a/meta-python/recipes-devtools/python/python3-wrapt_1.17.0rc1.bb b/meta-python/recipes-devtools/python/python3-wrapt_1.17.0rc1.bb deleted file mode 100644 index 636d677555..0000000000 --- a/meta-python/recipes-devtools/python/python3-wrapt_1.17.0rc1.bb +++ /dev/null @@ -1,35 +0,0 @@ -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 = "75f291f8bf1fe6535b13b0b3dfedca012ca6c8a5" -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" -- cgit v1.2.3-54-g00ecf