Skip to contentSkip to conversation

python3-attrs: upgrade 22.1.0 -> 23.2.0

PATCH New [email protected] 2 participants 3 messages Jan 3, 2024 – Jan 9, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-attrs: upgrade 22.1.0 -> 23.2.0

From: Wang Mingyu <[email protected]>

Changelog:
===========
- The type annotation for 'attrs.resolve_types()' is now correct.
- Type stubs now use 'typing.dataclass_transform' to decorate dataclass-like decorators, instead of the non-standard '__dataclass_transform__' special form, which is only supported by Pyright.
- Fixed serialization of namedtuple fields using 'attrs.asdict/astuple()' with 'retain_collection_types=True'.
- 'attrs.AttrsInstance' is now a 'typing.Protocol' in both type hints and code. This allows you to subclass it along with another 'Protocol'.
- If *attrs* detects that '__attrs_pre_init__' accepts more than just 'self', it will call it with the same arguments as '__init__' was called. This allows you to, for example, pass arguments to 'super().__init__()'.
- Slotted classes now transform 'functools.cached_property' decorated methods to support equivalent semantics.
- Added *class_body* argument to 'attrs.make_class()' to provide additional attributes for newly created classes.
It is, for example, now possible to attach methods.

---
 .../python/{python3-attrs_23.1.0.bb => python3-attrs_23.2.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-attrs_23.1.0.bb => python3-attrs_23.2.0.bb} (82%)
meta/recipes-devtools/python/python3-attrs_23.2.0.bb renamed from meta/recipes-devtools/python/python3-attrs_23.1.0.bb +1 -1
similarity index 82%
rename from meta/recipes-devtools/python/python3-attrs_23.1.0.bb
rename to meta/recipes-devtools/python/python3-attrs_23.2.0.bb
index 314053de08..e00e152015 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.attrs.org/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=5e55731824cf9205cfabeab9a0600887"
 
-SRC_URI[sha256sum] = "6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015"
+SRC_URI[sha256sum] = "935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30"
 
 inherit pypi python_hatchling
 
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/1 python3-lxml: upgrade 4.9.4 -> 45.0.0

From: Wang Mingyu <[email protected]>

Changelog:
==========
-LP#1976304: The "Element.addnext()" method previously inserted the new element
before existing tail text. The tail text of both sibling elements now stays on the respective elements.
-LP#1980767, GH#379: "TreeBuilder.close()" could fail with a "TypeError" after
parsing incorrect input.
-"Element.itertext(with_tail=False)" returned the tail text of comments and
processing instructions, despite the explicit option.
-GH#370: A crash with recent libxml2 2.11.x versions was resolved.
-A compile problem with recent libxml2 2.12.x versions was resolved. -The internal exception handling in C callbacks was improved for Cython 3.0. -The exception declarations of "xmlInputReadCallback", "xmlInputCloseCallback", -"xmlOutputWriteCallback" and "xmlOutputCloseCallback" in "tree.pxd" were
corrected to prevent running Python code or calling into the C-API with a live exception set.
-GH#385: The long deprecated "unittest.makeSuite()" function is no longer used. -LP#1522052: A file-system specific test is now optional and should no longer fail
on systems that don't support it.
-GH#392: Some tests were adapted for libxml2 2.13.
-Contains all fixes from lxml 4.9.4.

---
 .../python/{python3-lxml_4.9.4.bb => python3-lxml_5.0.0.bb}    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-lxml_4.9.4.bb => python3-lxml_5.0.0.bb} (94%)
meta/recipes-devtools/python/python3-lxml_5.0.0.bb renamed from meta/recipes-devtools/python/python3-lxml_4.9.4.bb +2 -1
similarity index 94%
rename from meta/recipes-devtools/python/python3-lxml_4.9.4.bb
rename to meta/recipes-devtools/python/python3-lxml_5.0.0.bb
index ed8bce0735..e27405fd23 100644
@@ -18,10 +18,11 @@ LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=e4c045ebad958ead4b48008f70838403 \
 
 DEPENDS += "libxml2 libxslt"
 
-SRC_URI[sha256sum] = "b1541e50b78e15fa06a2670157a1962ef06591d4c998b998047fff5e3236880e"
+SRC_URI[sha256sum] = "2219cbf790e701acf9a21a31ead75f983e73daf0eceb9da6990212e4d20ebefe"
 
 SRC_URI += "${PYPI_SRC_URI}"
 inherit pkgconfig pypi setuptools3
+PYPI_PACKAGE_EXT = "zip"
 
 # {standard input}: Assembler messages:
 # {standard input}:1488805: Error: branch out of range
Signature · 1 line
2.34.1
#2 lore raw

Re: [OE-core] [PATCH] python3-lxml: upgrade 4.9.4 -> 45.0.0

subject line should say 5.0.0 instead of 45.0.0

Secondly, be aware that this upgrade will need to disable incompatible-function-pointer-types warning as error when using clang. I have added a relevant fix to nonclangable conf file in meta-clang.

Quoted 63 lines · wangmy

From: Wang Mingyu <[email protected]>

Changelog:
==========

(quoted diff) +0 -12
-LP#1976304: The "Element.addnext()" method previously inserted the new element
 before existing tail text.  The tail text of both sibling elements now stays on
 the respective elements.
-LP#1980767, GH#379: "TreeBuilder.close()" could fail with a "TypeError" after
 parsing incorrect input.
-"Element.itertext(with_tail=False)" returned the tail text of comments and
 processing instructions, despite the explicit option.
-GH#370: A crash with recent libxml2 2.11.x versions was resolved.
-A compile problem with recent libxml2 2.12.x versions was resolved.
-The internal exception handling in C callbacks was improved for Cython 3.0.
-The exception declarations of "xmlInputReadCallback", "xmlInputCloseCallback",
-"xmlOutputWriteCallback" and "xmlOutputCloseCallback" in "tree.pxd" were
 corrected to prevent running Python code or calling into the C-API with a live
 exception set.
-GH#385: The long deprecated "unittest.makeSuite()" function is no longer used.
-LP#1522052: A file-system specific test is now optional and should no longer fail
 on systems that don't support it.
-GH#392: Some tests were adapted for libxml2 2.13.
-Contains all fixes from lxml 4.9.4.
---
 .../python/{python3-lxml_4.9.4.bb => python3-lxml_5.0.0.bb}    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-lxml_4.9.4.bb => python3-lxml_5.0.0.bb} (94%)
meta/recipes-devtools/python/python3-lxml_5.0.0.bb renamed from meta/recipes-devtools/python/python3-lxml_4.9.4.bb +2 -2
similarity index 94%
rename from meta/recipes-devtools/python/python3-lxml_4.9.4.bb
rename to meta/recipes-devtools/python/python3-lxml_5.0.0.bb
index ed8bce0735..e27405fd23 100644
@@ -18,10 +18,11 @@ LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=e4c045ebad958ead4b48008f70838403 \
 
 DEPENDS += "libxml2 libxslt"
 
-SRC_URI[sha256sum] = "b1541e50b78e15fa06a2670157a1962ef06591d4c998b998047fff5e3236880e"
+SRC_URI[sha256sum] = "2219cbf790e701acf9a21a31ead75f983e73daf0eceb9da6990212e4d20ebefe"
 
 SRC_URI += "${PYPI_SRC_URI}"
 inherit pkgconfig pypi setuptools3
+PYPI_PACKAGE_EXT = "zip"
 
 # {standard input}: Assembler messages:
 # {standard input}:1488805: Error: branch out of range
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193276): https://lists.openembedded.org/g/openembedded-core/message/193276
Mute This Topic: https://lists.openembedded.org/mt/103498685/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-