Skip to contentSkip to conversation

python3-pydantic: upgrade 2.5.3 -> 2.6.0

PATCH In review [email protected] 3 participants 3 messages Feb 6, 2024 – Feb 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-pydantic: upgrade 2.5.3 -> 2.6.0

From: Wang Mingyu <[email protected]>

Changelog:
============
-Drop Python3.7 support
-Drop Python 3.7, and PyPy 3.7 and 3.8
-Use positional-only self in BaseModel constructor, so no field name can ever
conflict with it
-Make @validate_call return a function instead of a custom descriptor - fixes
binding issue with inheritance and adds self/cls argument to validation errors
-Exclude BaseModel docstring from JSON schema description -Introducing classproperty decorator for model_computed_fields -Explicitly raise an error if field names clashes with types
-Use stricter serializer for unions of simple types

---
 .../{python3-pydantic_2.5.3.bb => python3-pydantic_2.6.0.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.5.3.bb => python3-pydantic_2.6.0.bb} (94%)
meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.5.3.bb +1 -1
similarity index 94%
rename from meta-python/recipes-devtools/python/python3-pydantic_2.5.3.bb
rename to meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb
index 21341d26c..af465f423 100644
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
 
 inherit pypi python_hatchling
 
-SRC_URI[sha256sum] = "b3ef57c62535b0941697cce638c08900d87fcb67e29cfa99e8a68f747f393f7a"
+SRC_URI[sha256sum] = "ae887bd94eb404b09d86e4d12f93893bdca79d766e738528c6fa1c849f3c6bcf"
 
 DEPENDS += "python3-hatch-fancy-pypi-readme-native"
 
Signature · 1 line
2.34.1
#1 lore raw

this fails ptests on qemux86-64

Failed ptests:
{'python3-pydantic': 'START: ptest-runner\n'

                     '2024-02-07T18:01\n'

'============================================================================\n'

                     'Testsuite summary\n'
                     '# TOTAL: 0\n'
                     '# PASS: 0\n'
                     '# SKIP: 0\n'
                     '# XFAIL: 0\n'
                     '# FAIL: 0\n'
                     '# XPASS: 0\n'

              '# ERROR: 0\n'
                     '\n'

              'ERROR: Exit status is 2\n'
                     'DURATION: 7\n'}

ptests which had no test results:
['python3-pydantic']

Quoted 50 lines · wangmy via lists.openembedded.org

From: Wang Mingyu <[email protected]>

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

(quoted diff) +0 -8
-Drop Python3.7 support
-Drop Python 3.7, and PyPy 3.7 and 3.8
-Use positional-only self in BaseModel constructor, so no field name can ever
 conflict with it
-Make @validate_call return a function instead of a custom descriptor - fixes
 binding issue with inheritance and adds self/cls argument to validation errors
-Exclude BaseModel docstring from JSON schema description
-Introducing classproperty decorator for model_computed_fields
-Explicitly raise an error if field names clashes with types
-Use stricter serializer for unions of simple types
---
 .../{python3-pydantic_2.5.3.bb => python3-pydantic_2.6.0.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.5.3.bb => python3-pydantic_2.6.0.bb} (94%)
meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.5.3.bb +1 -2
similarity index 94%
rename from meta-python/recipes-devtools/python/python3-pydantic_2.5.3.bb
rename to meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb
index 21341d26c..af465f423 100644
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
 
 inherit pypi python_hatchling
 
-SRC_URI[sha256sum] = "b3ef57c62535b0941697cce638c08900d87fcb67e29cfa99e8a68f747f393f7a"
+SRC_URI[sha256sum] = "ae887bd94eb404b09d86e4d12f93893bdca79d766e738528c6fa1c849f3c6bcf"
 
 DEPENDS += "python3-hatch-fancy-pypi-readme-native"
 
--

2.34.1

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

#2 lore raw
Quoted 22 lines · Khem Raj

this fails ptests on qemux86-64

Failed ptests:
{'python3-pydantic': 'START: ptest-runner\n'

                     '2024-02-07T18:01\n'

'============================================================================\n'

                     'Testsuite summary\n'
                     '# TOTAL: 0\n'
                     '# PASS: 0\n'
                     '# SKIP: 0\n'
                     '# XFAIL: 0\n'
                     '# FAIL: 0\n'
                     '# XPASS: 0\n'

              '# ERROR: 0\n'
                     '\n'

              'ERROR: Exit status is 2\n'
                     'DURATION: 7\n'}
Quoted 3 lines

ptests which had no test results:
['python3-pydantic']

Thus might be because it also needs an upgrade of python3-pydantic-core (and others)
https://docs.pydantic.dev/latest/changelog/#packaging_1

Quoted 68 lines

Review

Quoted 8 lines · wangmy via lists.openembedded.org

From: Wang Mingyu <[email protected]>

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

(quoted diff) +0 -3
-Drop Python3.7 support
-Drop Python 3.7, and PyPy 3.7 and 3.8
-Use positional-only self in BaseModel constructor, so no field name can

ever

Quoted 2 lines

conflict with it
-Make @validate_call return a function instead of a custom descriptor -

fixes

Quoted 1 line

binding issue with inheritance and adds self/cls argument to validation

errors

Quoted 10 lines
(quoted diff) +0 -4
-Exclude BaseModel docstring from JSON schema description
-Introducing classproperty decorator for model_computed_fields
-Explicitly raise an error if field names clashes with types
-Use stricter serializer for unions of simple types
---
 .../{python3-pydantic_2.5.3.bb => python3-pydantic_2.6.0.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.5.3.bb

=> python3-pydantic_2.6.0.bb} (94%)

Review

Quoted 2 lines
(quoted diff) +0 -0

python3-pydantic_2.5.3.bb b/meta-python/recipes-devtools/python/ python3-pydantic_2.6.0.bb

Quoted 2 lines

similarity index 94%
rename from meta-python/recipes-devtools/python/

python3-pydantic_2.5.3.bb

meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb LIC_FILES_CHKSUM =

Quoted 5 lines

rename to meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb index 21341d26c..af465f423 100644

meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.5.3.bb +0 -0
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM =

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

meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"

Quoted 4 lines
meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.5.3.bb +0 -1
 inherit pypi python_hatchling
 
-SRC_URI[sha256sum] =

"b3ef57c62535b0941697cce638c08900d87fcb67e29cfa99e8a68f747f393f7a"

meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb LIC_FILES_CHKSUM = · line 13

Quoted 1 line
meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.5.3.bb +1 -0
+SRC_URI[sha256sum] =

"ae887bd94eb404b09d86e4d12f93893bdca79d766e738528c6fa1c849f3c6bcf"

Quoted 9 lines
meta-python/recipes-devtools/python/python3-pydantic_2.6.0.bb renamed from meta-python/recipes-devtools/python/python3-pydantic_2.5.3.bb +0 -1
 DEPENDS += "python3-hatch-fancy-pypi-readme-native"
 
--

2.34.1

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