diff options
| author | Tim Orling <tim.orling@konsulko.com> | 2026-02-03 11:13:54 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-06 10:06:19 -0800 |
| commit | c6a7350f7c4e395cc43b172324379bd493a4a60f (patch) | |
| tree | a0d8f6abd6722c9aa0252dff3b88c6b741a51375 /meta-python/recipes-devtools/python | |
| parent | 8dd259ff4dfa1da1203a7b7f55c49492dd45f267 (diff) | |
| download | meta-openembedded-c6a7350f7c4e395cc43b172324379bd493a4a60f.tar.gz | |
python3-pendulum: add at v3.2.0
Python datetimes made easy.
* Add patch to not strip .so
* Enable ptests
* Use git fetcher so we have tests/
Testsuite summary
TOTAL: 1835
PASS: 1832
SKIP: 3
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 102
Dependency for python3-orjson ptest.
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
3 files changed, 118 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pendulum-crates.inc b/meta-python/recipes-devtools/python/python3-pendulum-crates.inc new file mode 100644 index 0000000000..71a7de9d05 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pendulum-crates.inc | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | # Autogenerated with 'bitbake -c update_crates python3-pendulum' | ||
| 2 | |||
| 3 | # from rust/Cargo.lock | ||
| 4 | SRC_URI += " \ | ||
| 5 | crate://crates.io/autocfg/1.5.0 \ | ||
| 6 | crate://crates.io/cc/1.2.55 \ | ||
| 7 | crate://crates.io/find-msvc-tools/0.1.9 \ | ||
| 8 | crate://crates.io/heck/0.5.0 \ | ||
| 9 | crate://crates.io/indoc/2.0.7 \ | ||
| 10 | crate://crates.io/libc/0.2.180 \ | ||
| 11 | crate://crates.io/memoffset/0.9.1 \ | ||
| 12 | crate://crates.io/once_cell/1.21.3 \ | ||
| 13 | crate://crates.io/portable-atomic/1.13.0 \ | ||
| 14 | crate://crates.io/proc-macro2/1.0.106 \ | ||
| 15 | crate://crates.io/pyo3/0.27.2 \ | ||
| 16 | crate://crates.io/pyo3-build-config/0.27.2 \ | ||
| 17 | crate://crates.io/pyo3-ffi/0.27.2 \ | ||
| 18 | crate://crates.io/pyo3-macros/0.27.2 \ | ||
| 19 | crate://crates.io/pyo3-macros-backend/0.27.2 \ | ||
| 20 | crate://crates.io/python3-dll-a/0.2.14 \ | ||
| 21 | crate://crates.io/quote/1.0.44 \ | ||
| 22 | crate://crates.io/rustversion/1.0.22 \ | ||
| 23 | crate://crates.io/shlex/1.3.0 \ | ||
| 24 | crate://crates.io/syn/2.0.114 \ | ||
| 25 | crate://crates.io/target-lexicon/0.13.4 \ | ||
| 26 | crate://crates.io/unicode-ident/1.0.22 \ | ||
| 27 | crate://crates.io/unindent/0.2.4 \ | ||
| 28 | " | ||
| 29 | |||
| 30 | SRC_URI[autocfg-1.5.0.sha256sum] = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" | ||
| 31 | SRC_URI[cc-1.2.55.sha256sum] = "47b26a0954ae34af09b50f0de26458fa95369a0d478d8236d3f93082b219bd29" | ||
| 32 | SRC_URI[find-msvc-tools-0.1.9.sha256sum] = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" | ||
| 33 | SRC_URI[heck-0.5.0.sha256sum] = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" | ||
| 34 | SRC_URI[indoc-2.0.7.sha256sum] = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706" | ||
| 35 | SRC_URI[libc-0.2.180.sha256sum] = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" | ||
| 36 | SRC_URI[memoffset-0.9.1.sha256sum] = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" | ||
| 37 | SRC_URI[once_cell-1.21.3.sha256sum] = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" | ||
| 38 | SRC_URI[portable-atomic-1.13.0.sha256sum] = "f89776e4d69bb58bc6993e99ffa1d11f228b839984854c7daeb5d37f87cbe950" | ||
| 39 | SRC_URI[proc-macro2-1.0.106.sha256sum] = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" | ||
| 40 | SRC_URI[pyo3-0.27.2.sha256sum] = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d" | ||
| 41 | SRC_URI[pyo3-build-config-0.27.2.sha256sum] = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6" | ||
| 42 | SRC_URI[pyo3-ffi-0.27.2.sha256sum] = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089" | ||
| 43 | SRC_URI[pyo3-macros-0.27.2.sha256sum] = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02" | ||
| 44 | SRC_URI[pyo3-macros-backend-0.27.2.sha256sum] = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9" | ||
| 45 | SRC_URI[python3-dll-a-0.2.14.sha256sum] = "d381ef313ae70b4da5f95f8a4de773c6aa5cd28f73adec4b4a31df70b66780d8" | ||
| 46 | SRC_URI[quote-1.0.44.sha256sum] = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" | ||
| 47 | SRC_URI[rustversion-1.0.22.sha256sum] = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" | ||
| 48 | SRC_URI[shlex-1.3.0.sha256sum] = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" | ||
| 49 | SRC_URI[syn-2.0.114.sha256sum] = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a" | ||
| 50 | SRC_URI[target-lexicon-0.13.4.sha256sum] = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba" | ||
| 51 | SRC_URI[unicode-ident-1.0.22.sha256sum] = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" | ||
| 52 | SRC_URI[unindent-0.2.4.sha256sum] = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3" | ||
diff --git a/meta-python/recipes-devtools/python/python3-pendulum/0001-rust-Cargo.toml-inhibit-strip.patch b/meta-python/recipes-devtools/python/python3-pendulum/0001-rust-Cargo.toml-inhibit-strip.patch new file mode 100644 index 0000000000..f721b9fe40 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pendulum/0001-rust-Cargo.toml-inhibit-strip.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 74db4bc77be0e02912975ea198e58addf97bc218 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tim Orling <tim.orling@konsulko.com> | ||
| 3 | Date: Fri, 30 Jan 2026 07:06:05 -0800 | ||
| 4 | Subject: [PATCH] rust/Cargo.toml: inhibit strip | ||
| 5 | |||
| 6 | For OpenEmbedded builds, we want debug symbols which will be stripped | ||
| 7 | later by us. | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [oe specific] | ||
| 10 | |||
| 11 | Signed-off-by: Tim Orling <tim.orling@konsulko.com> | ||
| 12 | --- | ||
| 13 | rust/Cargo.toml | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/rust/Cargo.toml b/rust/Cargo.toml | ||
| 17 | index 097321f..8bde1fd 100644 | ||
| 18 | --- a/rust/Cargo.toml | ||
| 19 | +++ b/rust/Cargo.toml | ||
| 20 | @@ -10,7 +10,7 @@ crate-type = ["cdylib"] | ||
| 21 | [profile.release] | ||
| 22 | lto = "fat" | ||
| 23 | codegen-units = 1 | ||
| 24 | -strip = true | ||
| 25 | +strip = false | ||
| 26 | overflow-checks = false | ||
| 27 | |||
| 28 | [dependencies] | ||
| 29 | -- | ||
| 30 | 2.43.0 | ||
| 31 | |||
diff --git a/meta-python/recipes-devtools/python/python3-pendulum_3.2.0.bb b/meta-python/recipes-devtools/python/python3-pendulum_3.2.0.bb new file mode 100644 index 0000000000..a2dc7e7d9e --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pendulum_3.2.0.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | SUMMARY = "Python datetimes made easy" | ||
| 2 | DESCRIPTION = "Pendulum is a Python package to ease datetimes manipulation. \ | ||
| 3 | It provides classes that are drop-in replacements for the native ones (they \ | ||
| 4 | inherit from them). \ | ||
| 5 | Special care has been taken to ensure timezones are handled correctly, and \ | ||
| 6 | are based on the underlying tzinfo implementation. For example, all \ | ||
| 7 | comparisons are done in UTC or in the timezone of the datetime being used. \ | ||
| 8 | The default timezone, except when using the now(), method will always be UTC. \ | ||
| 9 | " | ||
| 10 | HOMEPAGE = "https://pendulum.eustace.io" | ||
| 11 | LICENSE = "MIT" | ||
| 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=869e1c364438f234f09673c4039ed114" | ||
| 13 | |||
| 14 | DEPENDS = "python3-maturin-native" | ||
| 15 | |||
| 16 | SRCREV = "aea611d7a1c15ed0da56505c3f370fe4446ba733" | ||
| 17 | PYPI_SRC_URI = "git://github.com/python-pendulum/pendulum;protocol=https;branch=master;tag=${PV};destsuffix=pendulum-${PV}" | ||
| 18 | |||
| 19 | SRC_URI += "file://0001-rust-Cargo.toml-inhibit-strip.patch" | ||
| 20 | |||
| 21 | require ${BPN}-crates.inc | ||
| 22 | |||
| 23 | inherit pypi python_maturin cargo-update-recipe-crates ptest-python-pytest | ||
| 24 | |||
| 25 | do_install_ptest:append() { | ||
| 26 | install -d ${D}${PTEST_PATH}/tests | ||
| 27 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 28 | } | ||
| 29 | |||
| 30 | RDEPENDS:${PN} += "python3-dateutil python3-tzdata" | ||
| 31 | |||
| 32 | RDEPENDS:${PN}-ptest += "\ | ||
| 33 | python3-dateutil-zoneinfo \ | ||
| 34 | python3-time-machine \ | ||
| 35 | " | ||
