Skip to contentSkip to conversation

python3-wrapt: Upgrade 2.5.0 -> 2.5.1

PATCH New Leon Anavi 1 participant 5 messages Oct 18

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/5 python3-wrapt: Upgrade 2.5.0 -> 2.5.1

Upgrade to release 2.5.1:

- A LazyObjectProxy created with an interface argument that declared a path-like type, such as os.PathLike or pathlib.Path, did not define the __fspath__() special method on the class it generated. Because os.fspath() looks up __fspath__() on the type of the object, passing such a proxy to os.fspath(), the builtin open() or other standard library functions accepting paths raised TypeError before the factory callable had been invoked to create the wrapped object. The __fspath__() special method is now added when the declared interface provides it, in the same way as is already done for the other special methods looked up on the type, so the first path conversion triggers creation of the wrapped object and succeeds. With thanks to Muneeb Sheikh.
- A callback passed to wrapt.WeakFunctionProxy which was callable but evaluated as false, such as an event emitter object which reports its number of subscribers via __len__() and is empty when first created, was passed the underlying weak reference object instead of the proxy when the wrapped function expired. Where the wrapped function was a bound method, such a callback could also be called twice, once each when the instance and the function expired. Only None is now treated as meaning no callback was supplied, which mirrors the behaviour of weakref.ref() and weakref.proxy() in the standard library, so these callbacks now receive the proxy and are called only once, as for any other callback. With thanks to Huanyi Xie.
- A wrapt.AdapterFactory instance passed as the adapter argument to wrapt.decorator was ignored, and so never called, if the instance evaluated as false, such as when the factory class defined __bool__() or __len__(). The decorated function then retained its original signature instead of that produced by the factory. Whether an adapter factory was supplied is now determined by type before the truth value of the adapter is considered, so such factories are always called. As a consequence of this change a factory can now also return None, or any other false value, to indicate that no adapter should be used for a particular function, where previously this failed with an obscure error. With thanks to Luochenchen.

---
 .../python/{python3-wrapt_2.5.0.bb => python3-wrapt_2.5.1.bb} | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-wrapt_2.5.0.bb => python3-wrapt_2.5.1.bb} (82%)
meta-python/recipes-devtools/python/python3-wrapt_2.5.1.bb renamed from meta-python/recipes-devtools/python/python3-wrapt_2.5.0.bb +3 -1
similarity index 82%
rename from meta-python/recipes-devtools/python/python3-wrapt_2.5.0.bb
rename to meta-python/recipes-devtools/python/python3-wrapt_2.5.1.bb
index 588c123fda..8c75c173c3 100644
@@ -8,7 +8,7 @@ inherit pypi python_setuptools_build_meta ptest-python-pytest
 
 DEPENDS += "python3-wheel-native"
 
-SRC_URI[sha256sum] = "c48cdb6c904dca76d9915a579e4a5fab6b0c25f650c1019ce78a78effaf7a345"
+SRC_URI[sha256sum] = "f595bb0185aab3e9dc31950c95d914f56ea8278810c3b928f3426e12ed6d27bc"
 
 # python3-misc for 'this' module, python3-image for colorsys (test_deferred_patching)
 RDEPENDS:${PN}-ptest += " \
@@ -19,6 +19,8 @@ RDEPENDS:${PN}-ptest += " \
 RDEPENDS:${PN}:append:class-target = " \
     python3-stringold \
     python3-threading \
+    python3-asyncio \
+    python3-json \
 "
 
 BBCLASSEXTEND = "native"
Signature · 1 line
2.47.3
author
#1 lore raw

PATCH 2/5 python3-unidiff: Upgrade 1.0.0 -> 1.0.1

Upgrade to release 1.0.1:

- Parse consecutive added files sharing /dev/null source
- Handle empty (incl. DOS) context lines in metadata_only parsing
- Expose git submodule file mode via is_submodule
- Raise UnidiffParseError on target header without source
- Handle binary diffs without a target filename

---
 .../{python3-unidiff_1.0.0.bb => python3-unidiff_1.0.1.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-unidiff_1.0.0.bb => python3-unidiff_1.0.1.bb} (79%)
meta-python/recipes-devtools/python/python3-unidiff_1.0.1.bb renamed from meta-python/recipes-devtools/python/python3-unidiff_1.0.0.bb +1 -1
similarity index 79%
rename from meta-python/recipes-devtools/python/python3-unidiff_1.0.0.bb
rename to meta-python/recipes-devtools/python/python3-unidiff_1.0.1.bb
index ddc39da626..ad6d30c907 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/matiasb/python-unidiff"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=4c434b08ef42fea235bb019b5e5a97b3"
 
-SRC_URI[sha256sum] = "5e5d5cfab2dc98be819b74747ab7d9f5af8695369ec8710b93f9ab0f0ae6a449"
+SRC_URI[sha256sum] = "d9425bc516390c54743a1045b2c1c97f02d245a913a241dd499f958adb2df998"
 
 inherit pypi python_setuptools_build_meta ptest-python-pytest
 
Signature · 1 line
2.47.3
author
#2 lore raw

PATCH 3/5 python3-pybase64: Upgrade 1.5.0 -> 1.5.1

In reply to Leon Anavi

Upgrade to release 1.5.1:

- fix: swap PyBuffer_Release and PyErr_Format to prevent Use-After-Release

---
 .../{python3-pybase64_1.5.0.bb => python3-pybase64_1.5.1.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pybase64_1.5.0.bb => python3-pybase64_1.5.1.bb} (75%)
meta-python/recipes-devtools/python/python3-pybase64_1.5.1.bb renamed from meta-python/recipes-devtools/python/python3-pybase64_1.5.0.bb +1 -1
similarity index 75%
rename from meta-python/recipes-devtools/python/python3-pybase64_1.5.0.bb
rename to meta-python/recipes-devtools/python/python3-pybase64_1.5.1.bb
index a07c5042d5..19a8e094a3 100644
@@ -5,6 +5,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5042ea9bdb8e0560ebab12bceefcd3f7"
 
 inherit pypi python_setuptools_build_meta
 
-SRC_URI[sha256sum] = "545ab2a433769e3b8e1ce2b4f7b07218bbde202f4954fbfe52948b2522120727"
+SRC_URI[sha256sum] = "aa924f7c2e90349d472d7d57c3680de8d222a32c2d3d07f922ab2f60516e478d"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.47.3
author
#3 lore raw

PATCH 4/5 python3-alembic: Upgrade 1.19.1 -> 1.20.0

In reply to Leon Anavi

Upgrade to release 1.20.0:

usecase:

- [usecase] [batch] Added a warning for the case where an unnamed CHECK constraint on a reflected table is omitted from a batch "recreate" operation. An unnamed CHECK constraint can't be reliably carried over in a batch recreate as it may refer to columns that are being dropped or changed. This omission was
previously a silent operation. The presence of any
~sqlalchemy.schema.CheckConstraint in Operations.batch_alter_table.table_args is taken to indicate that the case has been accommodated, and no warning is emitted.

- [usecase] [autogenerate] Autogenerate now renders a warning comment above any rendered Operations.drop_constraint() directive for which the constraint name is None, as is the case when a constraint that has no name in the model is dropped, most typically within the downgrade() function of a migration that adds an unnamed constraint. A warning is also emitted on the console when the migration script is generated. The directive requires a non-None name in order to be able to emit a "DROP CONSTRAINT" command.

bug:

- [bug] [batch] Fixed bug in batch mode where adding a column with a type that generates its own CHECK constraint, such as ~sqlalchemy.types.Boolean or ~sqlalchemy.types.Enum with ~sqlalchemy.types.Boolean.create_constraint set to True, would emit the constraint twice when the table was recreated, once under the name generated by the naming convention in use and once under the name given to the type. The constraint is now emitted once, using the same name that would be used outside of batch mode.

- [bug] [batch] Fixed bug in batch mode where a CHECK constraint generated by a type such as ~sqlalchemy.types.Boolean or ~sqlalchemy.types.Enum would lose the name established for it by the naming convention in use when the table was recreated, as the constraint was regenerated against the temporary table used for the recreate operation. The naming convention is now resolved against the name of the table being replaced.

As part of this change, a type that generates a CHECK constraint but has no name of its own, used in conjunction with a naming convention that includes the %(constraint_name)s token, now emits a warning, as the convention has no name to interpolate; the constraint continues to be emitted without a name. As noted at batch_check_constraints, these datatypes should be given a name in order to participate fully in batch mode.

- [bug] [batch] Fixed bug in batch mode where the Operations.batch_alter_table.naming_convention parameter would re-generate the names of constraints that already had a name when reflected, in the case where the convention included the %(constraint_name)s token, leading to a name that included the convention's own prefix twice. The convention is now applied only to those constraints that are reflected without a name, which is the use case the parameter is documented for.

- [bug] [mysql] Fixed bug where autogenerate with EnvironmentContext.configure.compare_server_default would report a persistent server default change for Float, Numeric and other decimal columns on MySQL. MySQL reports a literal server default for such a column either in quoted form, e.g. '1', or, when the value is fractional, as a parenthesized expression, e.g. (2.5); neither form was accommodated for columns other than those of Integer affinity, so that a default such as server_default="1" on a sqlalchemy.Float column would never compare as equal to the reflected value.

- [bug] [mysql] Fixed bug where autogenerate with EnvironmentContext.configure.compare_server_default would report a persistent server default change for an expression server default such as (rand()). MySQL reports such a default with the surrounding parenthesis included whereas MariaDB reports it without them, so that the parenthesis are now disregarded when comparing.

misc:

- [change] [general] Support for SQLAlchemy 1.4 is dropped as of Alembic 1.20.0; SQLAlchemy 2.0.0 is now the minimum required version. SQLAlchemy 1.4 has no support for Python 3.13 and above, and the version-conditional code paths it required throughout Alembic have been removed in favor of the SQLAlchemy 2.0 API.

---
 .../{python3-alembic_1.19.1.bb => python3-alembic_1.20.0.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-alembic_1.19.1.bb => python3-alembic_1.20.0.bb} (80%)
meta-python/recipes-devtools/python/python3-alembic_1.20.0.bb renamed from meta-python/recipes-devtools/python/python3-alembic_1.19.1.bb +1 -1
similarity index 80%
rename from meta-python/recipes-devtools/python/python3-alembic_1.19.1.bb
rename to meta-python/recipes-devtools/python/python3-alembic_1.20.0.bb
index ae0ee99743..f3c165bb9f 100644
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ff111c41e8748bbfa45e8ba92347b681"
 
 inherit pypi python_setuptools_build_meta
 
-SRC_URI[sha256sum] = "e0fca0518118c78acc493e31bcb5402f190057aaf6df8b5b95ce94c4789cf648"
+SRC_URI[sha256sum] = "db505480647bc60386c5369402f4a57a506b7539c9e9ef5e270d45cbbe4939bf"
 
 RDEPENDS:${PN} += "\
     python3-dateutil \
Signature · 1 line
2.47.3
author
#4 lore raw

PATCH 5/5 python3-anyio: Upgrade 4.14.2 -> 4.15.1

In reply to Leon Anavi

Upgrade to release 4.15.1:

- Implemented a compatibility fix for supporting direct access of anyio.* submodules from the main package even when those submodules were not directly imported first.

---
 .../python/{python3-anyio_4.14.2.bb => python3-anyio_4.15.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-anyio_4.14.2.bb => python3-anyio_4.15.1.bb} (88%)
meta-python/recipes-devtools/python/python3-anyio_4.15.1.bb renamed from meta-python/recipes-devtools/python/python3-anyio_4.14.2.bb +1 -1
similarity index 88%
rename from meta-python/recipes-devtools/python/python3-anyio_4.14.2.bb
rename to meta-python/recipes-devtools/python/python3-anyio_4.15.1.bb
index f817610a1c..8c262a848e 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c0a769411d2af7894099e8ff75058c9f"
 
 inherit pypi python_setuptools_build_meta
 
-SRC_URI[sha256sum] = "cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f"
+SRC_URI[sha256sum] = "9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94"
 
 DEPENDS += " \
 	python3-setuptools-scm-native \
Signature · 1 line
2.47.3