diff options
| author | alperak <alperyasinak1@gmail.com> | 2024-03-06 09:30:51 +0300 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-03-05 23:00:05 -0800 |
| commit | a0237019f5b5c003fd0c6fd4486859214e24be01 (patch) | |
| tree | d16974501d5d3df082e7bc8b7ac2a463bd0944ca | |
| parent | 658408c2a09679164864e47ea1f4fdefef425ef6 (diff) | |
| download | meta-openembedded-a0237019f5b5c003fd0c6fd4486859214e24be01.tar.gz | |
python3-marshmallow: upgrade 3.20.2 -> 3.21.1 and add ptest
* Upstream provides a pyproject.toml which declares a flit_core.buildapi build backend instead of setuptools.
* Updated runtime dependencies.
* Ptest and library example tested on qemux86-64 and qemuarm64
* Add ptest into PTESTS_SLOW_META_PYTHON
* Upstream, excluded test/mypy_test_cases in the pyproject.toml file. More descriptively,
norecursedirs tells pytest where not to look and tests/mypy_test_cases already defined in it so has been removed from runtime.
https://github.com/marshmallow-code/marshmallow/blob/df23ad0048b5443346fe47810cda052641558257/pyproject.toml#L89C61-L89C76
License-Update: Removed license year
Ptest result:
==============
qemux86-64:
Testsuite summary
TOTAL: 1228
PASS: 1228
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 56
END: /usr/lib/python3-marshmallow/ptest
2024-03-06T05:33
STOP: ptest-runner
TOTAL: 1 FAIL: 0
qemuarm64:
Testsuite summary
TOTAL: 1228
PASS: 1228
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 51
END: /usr/lib/python3-marshmallow/ptest
2024-03-06T05:28
STOP: ptest-runner
TOTAL: 1 FAIL: 0
=============
Changelog:
3.21.1 (2024-03-04)
Bug fixes:
Fix error message when field is declared as a class and not an instance (#2245). Thanks @travnick for reporting.
3.21.0 (2024-02-26)
Bug fixes:
Fix validation of URL fields to allow missing user field, per NWG RFC 3986 (#2232). Thanks @ddennerline3 for reporting and @deckar01 for the PR.
Other changes:
Backwards-incompatible: __version__, __parsed_version__, and __version_info__ attributes are deprecated (#2227). Use feature detection or importlib.metadata.version("marshmallow") instead.
Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
4 files changed, 44 insertions, 23 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 99cae21b29..5d9eb0fa1c 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc | |||
| @@ -77,6 +77,7 @@ PTESTS_FAST_META_PYTHON = "\ | |||
| 77 | PTESTS_SLOW_META_PYTHON = "\ | 77 | PTESTS_SLOW_META_PYTHON = "\ |
| 78 | python3-arrow \ | 78 | python3-arrow \ |
| 79 | python3-lz4 \ | 79 | python3-lz4 \ |
| 80 | python3-marshmallow \ | ||
| 80 | python3-yappi \ | 81 | python3-yappi \ |
| 81 | " | 82 | " |
| 82 | 83 | ||
diff --git a/meta-python/recipes-devtools/python/python3-marshmallow/run-ptest b/meta-python/recipes-devtools/python/python3-marshmallow/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-marshmallow/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
diff --git a/meta-python/recipes-devtools/python/python3-marshmallow_3.20.2.bb b/meta-python/recipes-devtools/python/python3-marshmallow_3.20.2.bb deleted file mode 100644 index c08aec5bec..0000000000 --- a/meta-python/recipes-devtools/python/python3-marshmallow_3.20.2.bb +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | SUMMARY = "Simplified object serialization in python" | ||
| 2 | DESCRIPTION = "Marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes." | ||
| 3 | HOMEPAGE = "https://github.com/marshmallow-code/marshmallow" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "\ | ||
| 6 | file://LICENSE;md5=653847350fed2e0e7b02791a35b98d59 \ | ||
| 7 | file://docs/license.rst;md5=13da439ad060419fb7cf364523017cfb" | ||
| 8 | |||
| 9 | SRC_URI[sha256sum] = "4c1daff273513dc5eb24b219a8035559dc573c8f322558ef85f5438ddd1236dd" | ||
| 10 | |||
| 11 | inherit setuptools3 pypi | ||
| 12 | |||
| 13 | PIP_INSTALL_PACKAGE = "marshmallow" | ||
| 14 | |||
| 15 | RDEPENDS:${PN} += " \ | ||
| 16 | python3-core \ | ||
| 17 | python3-datetime \ | ||
| 18 | python3-netclient \ | ||
| 19 | python3-numbers \ | ||
| 20 | python3-json \ | ||
| 21 | python3-pprint \ | ||
| 22 | python3-packaging \ | ||
| 23 | " | ||
diff --git a/meta-python/recipes-devtools/python/python3-marshmallow_3.21.1.bb b/meta-python/recipes-devtools/python/python3-marshmallow_3.21.1.bb new file mode 100644 index 0000000000..5a0a79a541 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-marshmallow_3.21.1.bb | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | SUMMARY = "Simplified object serialization in python" | ||
| 2 | DESCRIPTION = "Marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes." | ||
| 3 | HOMEPAGE = "https://github.com/marshmallow-code/marshmallow" | ||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "\ | ||
| 6 | file://LICENSE;md5=27586b20700d7544c06933afe56f7df4 \ | ||
| 7 | file://docs/license.rst;md5=13da439ad060419fb7cf364523017cfb" | ||
| 8 | |||
| 9 | SRC_URI[sha256sum] = "4e65e9e0d80fc9e609574b9983cf32579f305c718afb30d7233ab818571768c3" | ||
| 10 | |||
| 11 | inherit python_flit_core pypi ptest | ||
| 12 | |||
| 13 | PIP_INSTALL_PACKAGE = "marshmallow" | ||
| 14 | |||
| 15 | SRC_URI += " \ | ||
| 16 | file://run-ptest \ | ||
| 17 | " | ||
| 18 | |||
| 19 | RDEPENDS:${PN}-ptest += " \ | ||
| 20 | python3-pytest \ | ||
| 21 | python3-pytz \ | ||
| 22 | python3-simplejson \ | ||
| 23 | python3-unittest-automake-output \ | ||
| 24 | " | ||
| 25 | |||
| 26 | do_install_ptest() { | ||
| 27 | install -d ${D}${PTEST_PATH}/tests | ||
| 28 | rm -rf ${S}/tests/mypy_test_cases | ||
| 29 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 30 | } | ||
| 31 | |||
| 32 | RDEPENDS:${PN} += " \ | ||
| 33 | python3-compression \ | ||
| 34 | python3-datetime \ | ||
| 35 | python3-email \ | ||
| 36 | python3-json \ | ||
| 37 | python3-numbers \ | ||
| 38 | python3-pprint \ | ||
| 39 | python3-packaging \ | ||
| 40 | " | ||
