Skip to contentSkip to conversation

python3-pydantic: Upgrade 2.7.3 -> 2.8.2

PATCH In review Leon Anavi 2 participants 7 messages Aug 8, 2024

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/6 python3-pydantic: Upgrade 2.7.3 -> 2.8.2

Upgrade to version 2.8.2:

- Fix issue with assertion caused by pluggable schema
- Fix breaking change in to_snake from v2.7 -> v2.8
- Fix list constraint json schema application
- Support time duration more than 23
- Fix millisecond fraction being handled with the wrong scale
- Handle negative fractional durations correctly
- Update citation version automatically with new releases
- Add support for Python 3.13
- Experimental: support defer_build for TypeAdapter
- Implement deprecated field in json schema
- Experimental: Add pipeline API
- Add support for programmatic title generation
- Implement fail_fast feature
- Add ser_json_inf_nan='strings' mode to produce valid JSON

---
 .../{python3-pydantic_2.7.3.bb => python3-pydantic_2.8.2.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.7.3.bb => python3-pydantic_2.8.2.bb} (95%)
meta-python/recipes-devtools/python/python3-pydantic_2.8.2.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.7.3.bb +1 -1
similarity index 95%
rename from meta-python/recipes-devtools/python/python3-pydantic_2.7.3.bb
rename to meta-python/recipes-devtools/python/python3-pydantic_2.8.2.bb
index 423fe7673..fb1e7b3ac 100644
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
 
 inherit pypi python_hatchling
 
-SRC_URI[sha256sum] = "c46c76a40bb1296728d7a8b99aa73dd70a48c3510111ff290034f860c99c419e"
+SRC_URI[sha256sum] = "6f62c13d067b0755ad1c21a34bdd06c0c12625a22b0fc09c6b149816604f7c2a"
 
 DEPENDS += "python3-hatch-fancy-pypi-readme-native"
 
Signature · 1 line
2.39.2
author
#1 lore raw

PATCH 2/6 python3-coverage: switch to PEP-517 build backend

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fixes:
WARNING: python3-coverage-7.6.1-r0 do_check_backend: QA Issue:
inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-coverage_7.6.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-coverage_7.6.0.bb +1 -1
index f0dece4ac..5901d9993 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ee41112a44fe7014dce33e26468ba93"
 
 SRC_URI[sha256sum] = "289cc803fa1dc901f84701ac10c9ee873619320f2f9aff38794db4a4a0268d51"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} += " \
     python3-crypt \
Signature · 1 line
2.39.2
author
#2 lore raw

PATCH 3/6 coverage: Upgrade 7.6.0 -> 7.6.1

In reply to Leon Anavi

Upgrade to release 7.6.1:

- Fix: coverage used to fail when measuring code using runpy.run_path <python:runpy.run_path> with a Path <python:pathlib.Path> argument. This is now fixed.
- Fix: backslashes preceding a multi-line backslashed string could confuse the HTML report. This is now fixed.

---
 .../{python3-coverage_7.6.0.bb => python3-coverage_7.6.1.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-coverage_7.6.0.bb => python3-coverage_7.6.1.bb} (84%)
meta-python/recipes-devtools/python/python3-coverage_7.6.1.bb renamed from meta-python/recipes-devtools/python/python3-coverage_7.6.0.bb +1 -1
similarity index 84%
rename from meta-python/recipes-devtools/python/python3-coverage_7.6.0.bb
rename to meta-python/recipes-devtools/python/python3-coverage_7.6.1.bb
index 5901d9993..7749158f5 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://coverage.readthedocs.io"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2ee41112a44fe7014dce33e26468ba93"
 
-SRC_URI[sha256sum] = "289cc803fa1dc901f84701ac10c9ee873619320f2f9aff38794db4a4a0268d51"
+SRC_URI[sha256sum] = "953510dfb7b12ab69d20135a0662397f077c59b1e6379a768e97c59d852ee51d"
 
 inherit pypi python_setuptools_build_meta
 
Signature · 1 line
2.39.2
author
#3 lore raw

PATCH 4/6 python3-aiohttp: Upgrade 3.10.0 -> 3.10.1

In reply to Leon Anavi

Upgrade to release 3.10.1:

- Fixed WebSocket server heartbeat timeout logic to terminate :py:meth:~aiohttp.ClientWebSocketResponse.receive and return :py:class:~aiohttp.ServerTimeoutError
- Fixed url dispatcher index not matching when a variable is preceded by a fixed string after a slash

---
 .../{python3-aiohttp_3.10.0.bb => python3-aiohttp_3.10.1.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-aiohttp_3.10.0.bb => python3-aiohttp_3.10.1.bb} (86%)
meta-python/recipes-devtools/python/python3-aiohttp_3.10.1.bb renamed from meta-python/recipes-devtools/python/python3-aiohttp_3.10.0.bb +1 -1
similarity index 86%
rename from meta-python/recipes-devtools/python/python3-aiohttp_3.10.0.bb
rename to meta-python/recipes-devtools/python/python3-aiohttp_3.10.1.bb
index 68494a05d..f9f007d08 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/aio-libs/aiohttp"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=748073912af33aa59430d3702aa32d41"
 
-SRC_URI[sha256sum] = "e8dd7da2609303e3574c95b0ec9f1fd49647ef29b94701a2862cceae76382e1d"
+SRC_URI[sha256sum] = "8b0d058e4e425d3b45e8ec70d49b402f4d6b21041e674798b1f91ba027c73f28"
 
 PYPI_PACKAGE = "aiohttp"
 inherit python_setuptools_build_meta pypi
Signature · 1 line
2.39.2
author
#4 lore raw

PATCH 5/6 python3-hatch-requirements-txt: Add recipe

In reply to Leon Anavi

This is a hatchling plugin to read project dependencies from requirements.txt, release 0.4.1.

---
 .../python/python3-hatch-requirements-txt_0.4.1.bb   | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-hatch-requirements-txt_0.4.1.bb
meta-python/recipes-devtools/python/python3-hatch-requirements-txt_0.4.1.bb new file +12 -0
new file mode 100644
index 000000000..8b3218790
@@ -0,0 +1,12 @@
+SUMMARY = "Hatchling plugin to read project dependencies from requirements.txt"
+HOMEPAGE = "https://github.com/repo-helper/hatch-requirements-txt"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=58206c261591d2c13b00ab61cec32abe"
+
+SRC_URI[sha256sum] = "2c686e5758fd05bb55fa7d0c198fdd481f8d3aaa3c693260f5c0d74ce3547d20"
+
+PYPI_PACKAGE = "hatch_requirements_txt"
+
+inherit pypi python_hatchling
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
author
#5 lore raw

PATCH 6/6 python3-pymongo: Upgrade 4.7.3 -> 4.8.0

In reply to Leon Anavi

Upgrade to release 4.8.0:

- The handshake metadata for "os.name" on Windows has been simplified to "Windows" to improve import time.
- The repr of bson.binary.Binary is now redacted when the subtype is SENSITIVE_SUBTYPE(8).
- Secure Software Development Life Cycle automation for release process.
- GitHub Releases now include a Software Bill of Materials, and signature files corresponding to the distribution files released on PyPI.
- Fixed a bug in change streams where both startAtOperationTime and resumeToken could be added to a retry attempt, which caused the retry to fail.
- Fallback to stdlib ssl module when pyopenssl import fails with AttributeError.
- Improved performance of MongoClient operations, especially when many operations are being run concurrently.

---
 ...thon3-pymongo_4.7.3.bb => python3-pymongo_4.8.0.bb} | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-pymongo_4.7.3.bb => python3-pymongo_4.8.0.bb} (76%)
meta-python/recipes-devtools/python/python3-pymongo_4.8.0.bb renamed from meta-python/recipes-devtools/python/python3-pymongo_4.7.3.bb +8 -2
similarity index 76%
rename from meta-python/recipes-devtools/python/python3-pymongo_4.7.3.bb
rename to meta-python/recipes-devtools/python/python3-pymongo_4.8.0.bb
index baaf3847a..fcce456d8 100644
@@ -8,14 +8,18 @@ HOMEPAGE = "http://github.com/mongodb/mongo-python-driver"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
 
-SRC_URI[sha256sum] = "6354a66b228f2cd399be7429685fb68e07f19110a3679782ecb4fdb68da03831"
+SRC_URI[sha256sum] = "454f2295875744dc70f1881e4b2eb99cdad008a33574bc8aaf120530f66c0cde"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi python_setuptools_build_meta python_hatchling
 
 PACKAGES =+ "python3-bson"
 
 FILES:python3-bson = "${PYTHON_SITEPACKAGES_DIR}/bson/*"
 
+DEPENDS += " \
+     python3-hatch-requirements-txt-native \
+"
+
 RDEPENDS:python3-bson += " \
      python3-datetime \
      python3-json \
@@ -27,4 +31,6 @@ RDEPENDS:python3-bson += " \
 RDEPENDS:${PN} += " \
     python3-bson \
     python3-pprint \
+    python3-difflib \
+    python3-logging \
 "
Signature · 1 line
2.39.2
#6 lore raw
In reply to Leon Anavi

Please hold off on this one, it requires a newer python3-pydantic-core that I am working on now.

Quoted 59 lines · Leon Anavi via lists.openembedded.org

Upgrade to version 2.8.2:

- Fix issue with assertion caused by pluggable schema
- Fix breaking change in to_snake from v2.7 -> v2.8
- Fix list constraint json schema application
- Support time duration more than 23
- Fix millisecond fraction being handled with the wrong scale
- Handle negative fractional durations correctly
- Update citation version automatically with new releases
- Add support for Python 3.13
- Experimental: support defer_build for TypeAdapter
- Implement deprecated field in json schema
- Experimental: Add pipeline API
- Add support for programmatic title generation
- Implement fail_fast feature
- Add ser_json_inf_nan='strings' mode to produce valid JSON

---
 .../{python3-pydantic_2.7.3.bb => python3-pydantic_2.8.2.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.7.3.bb =>

python3-pydantic_2.8.2.bb} (95%)

meta-python/recipes-devtools/python/python3-pydantic_2.8.2.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.7.3.bb +0 -0
similarity index 95%
rename from meta-python/recipes-devtools/python/python3-pydantic_2.7.3.bb
rename to meta-python/recipes-devtools/python/python3-pydantic_2.8.2.bb
index 423fe7673..fb1e7b3ac 100644
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM =

"file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"

inherit pypi python_hatchling

-SRC_URI[sha256sum] = "c46c76a40bb1296728d7a8b99aa73dd70a48c3510111ff290034f860c99c419e" +SRC_URI[sha256sum] = "6f62c13d067b0755ad1c21a34bdd06c0c12625a22b0fc09c6b149816604f7c2a"

DEPENDS += "python3-hatch-fancy-pypi-readme-native"

--
2.39.2

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