summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-lief_0.16.6.bb (renamed from meta-python/recipes-devtools/python/python3-lief_0.16.5.bb)7
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic-core/0001-musl-enable-getrandom-on-all-musl-platforms.patch81
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb1
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch36
-rw-r--r--meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb (renamed from meta-python/recipes-devtools/python/python3-pydantic_2.11.3.bb)5
-rw-r--r--meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb2
-rw-r--r--meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb1
7 files changed, 125 insertions, 8 deletions
diff --git a/meta-python/recipes-devtools/python/python3-lief_0.16.5.bb b/meta-python/recipes-devtools/python/python3-lief_0.16.6.bb
index 8a0e30133c..2c5aeb6bb6 100644
--- a/meta-python/recipes-devtools/python/python3-lief_0.16.5.bb
+++ b/meta-python/recipes-devtools/python/python3-lief_0.16.6.bb
@@ -2,16 +2,15 @@ SUMMARY = "Library to instrument executable formats"
2DESCRIPTION = "LIEF: Library to Instrument Executable Formats" 2DESCRIPTION = "LIEF: Library to Instrument Executable Formats"
3HOMEPAGE = "https://github.com/lief-project/LIEF" 3HOMEPAGE = "https://github.com/lief-project/LIEF"
4LICENSE = "Apache-2.0" 4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=9ab5db472ff936b441055522f5000547" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=be298b85ef6036ef77810ae0dce93776"
6SECTION = "libs" 6SECTION = "libs"
7 7
8SRC_URI = " \ 8SRC_URI = " \
9 git://github.com/lief-project/LIEF.git;protocol=https;branch=main \ 9 git://github.com/lief-project/LIEF.git;protocol=https;branch=release/0.16.x;tag=${PV} \
10 file://0001-build-requirements.txt-Allow-newer-versions.patch \ 10 file://0001-build-requirements.txt-Allow-newer-versions.patch \
11 file://0002-api-python-config-default.toml-Debug.patch \ 11 file://0002-api-python-config-default.toml-Debug.patch \
12" 12"
13SRCREV = "abcf929efb748c7846dd59007cbb807e108db311" 13SRCREV = "d52c66d6da4d67c69438989df83a5415236ae08b"
14PV .= "+git"
15 14
16PEP517_SOURCE_PATH = "${S}/api/python" 15PEP517_SOURCE_PATH = "${S}/api/python"
17 16
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core/0001-musl-enable-getrandom-on-all-musl-platforms.patch b/meta-python/recipes-devtools/python/python3-pydantic-core/0001-musl-enable-getrandom-on-all-musl-platforms.patch
new file mode 100644
index 0000000000..fd94526686
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pydantic-core/0001-musl-enable-getrandom-on-all-musl-platforms.patch
@@ -0,0 +1,81 @@
1From 4253e25b7f31d207c69b9997f403b6e4e560e258 Mon Sep 17 00:00:00 2001
2From: Tamir Duberstein <tamird@gmail.com>
3Date: Thu, 20 Mar 2025 11:45:08 -0400
4Subject: [PATCH] musl: enable `getrandom` on all musl platforms
5
6The existing bindings were added in #1399 and limited to targets where
7rustc used musl version >= 1.1.20 which was not all musl targets at that
8time. Since https://github.com/rust-lang/rust/pull/107129 all musl
9targets use musl 1.2.3. Hence, move the binding to the module root so it
10is available for all musl targets.
11
12Upstream-Status: Backport [https://github.com/rust-lang/libc/pull/4346]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/unix/linux_like/linux/musl/b32/arm/mod.rs | 4 ----
16 src/unix/linux_like/linux/musl/b32/powerpc.rs | 4 ----
17 src/unix/linux_like/linux/musl/b32/x86/mod.rs | 4 ----
18 src/unix/linux_like/linux/musl/b64/mod.rs | 4 ----
19 src/unix/linux_like/linux/musl/mod.rs | 2 ++
20 5 files changed, 2 insertions(+), 16 deletions(-)
21
22--- a/src/unix/linux_like/linux/musl/b32/arm/mod.rs
23+++ b/src/unix/linux_like/linux/musl/b32/arm/mod.rs
24@@ -841,10 +841,6 @@ pub const SYS_process_mrelease: ::c_long
25 pub const SYS_futex_waitv: ::c_long = 449;
26 pub const SYS_set_mempolicy_home_node: ::c_long = 450;
27
28-extern "C" {
29- pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
30-}
31-
32 cfg_if! {
33 if #[cfg(libc_align)] {
34 mod align;
35--- a/src/unix/linux_like/linux/musl/b32/powerpc.rs
36+++ b/src/unix/linux_like/linux/musl/b32/powerpc.rs
37@@ -796,7 +796,3 @@ pub const SYS_memfd_secret: ::c_long = 4
38 pub const SYS_process_mrelease: ::c_long = 448;
39 pub const SYS_futex_waitv: ::c_long = 449;
40 pub const SYS_set_mempolicy_home_node: ::c_long = 450;
41-
42-extern "C" {
43- pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
44-}
45--- a/src/unix/linux_like/linux/musl/b32/x86/mod.rs
46+++ b/src/unix/linux_like/linux/musl/b32/x86/mod.rs
47@@ -956,10 +956,6 @@ pub const EFL: ::c_int = 14;
48 pub const UESP: ::c_int = 15;
49 pub const SS: ::c_int = 16;
50
51-extern "C" {
52- pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
53-}
54-
55 cfg_if! {
56 if #[cfg(libc_align)] {
57 mod align;
58--- a/src/unix/linux_like/linux/musl/b64/mod.rs
59+++ b/src/unix/linux_like/linux/musl/b64/mod.rs
60@@ -134,10 +134,6 @@ pub const __SIZEOF_PTHREAD_RWLOCK_T: usi
61 pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
62 pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32;
63
64-extern "C" {
65- pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
66-}
67-
68 cfg_if! {
69 if #[cfg(target_arch = "aarch64")] {
70 mod aarch64;
71--- a/src/unix/linux_like/linux/musl/mod.rs
72+++ b/src/unix/linux_like/linux/musl/mod.rs
73@@ -885,6 +885,8 @@ extern "C" {
74
75 pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
76 pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
77+ // Addded in `musl` 1.1.20
78+ pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
79 }
80
81 // Alias <foo> to <foo>64 to mimic glibc's LFS64 support
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb
index 1d0d1f477b..788cbd2ceb 100644
--- a/meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb
+++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.35.2.bb
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c"
11require ${BPN}-crates.inc 11require ${BPN}-crates.inc
12 12
13SRC_URI += "file://0001-Upgrade-radium-to-1.0.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/bitvec-1.0.1/" 13SRC_URI += "file://0001-Upgrade-radium-to-1.0.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/bitvec-1.0.1/"
14SRC_URI += "file://0001-musl-enable-getrandom-on-all-musl-platforms.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/libc-0.2.155/"
14SRC_URI += "file://0001-cargo.toml-Update-bitvec-to-use-radium-1.x.patch" 15SRC_URI += "file://0001-cargo.toml-Update-bitvec-to-use-radium-1.x.patch"
15SRC_URI[sha256sum] = "e010b13ff0d6375ee83f7478fbda42e1fbf55f1b2feef76b673c40861ffd31e6" 16SRC_URI[sha256sum] = "e010b13ff0d6375ee83f7478fbda42e1fbf55f1b2feef76b673c40861ffd31e6"
16 17
diff --git a/meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch b/meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch
new file mode 100644
index 0000000000..794ebdbbc7
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pydantic/0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch
@@ -0,0 +1,36 @@
1From 6558daf87f8ae156f913c0e76403cbffee40e3cc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 22 Jul 2025 11:46:35 -0700
4Subject: [PATCH] pyprojects: Bump pydantic-core to 2.35.2
5
6This matches with recipe in meta-python
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 pyproject.toml | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15--- a/pyproject.toml
16+++ b/pyproject.toml
17@@ -48,7 +48,7 @@ dependencies = [
18 'typing-extensions>=4.13.0',
19 'annotated-types>=0.6.0',
20 # Keep this in sync with the version in the `check_pydantic_core_version()` function:
21- 'pydantic-core==2.35.1',
22+ 'pydantic-core==2.35.2',
23 'typing-inspection>=0.4.0',
24 ]
25 dynamic = ['version', 'readme']
26--- a/pydantic/version.py
27+++ b/pydantic/version.py
28@@ -66,7 +66,7 @@ def version_info() -> str:
29 def check_pydantic_core_version() -> bool:
30 """Check that the installed `pydantic-core` dependency is compatible."""
31 # Keep this in sync with the version constraint in the `pyproject.toml` dependencies:
32- return __pydantic_core_version__ == '2.35.1'
33+ return __pydantic_core_version__ == '2.35.2'
34
35
36 def parse_mypy_version(version: str) -> tuple[int, int, int]:
diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.11.3.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
index 47c077853a..250a433726 100644
--- a/meta-python/recipes-devtools/python/python3-pydantic_2.11.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pydantic_2.11.7.bb
@@ -11,11 +11,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6"
11 11
12inherit python_hatchling ptest-python-pytest 12inherit python_hatchling ptest-python-pytest
13 13
14SRCREV = "bce81efdeac1cbefd0196b478a32aa2586bd595a" 14SRCREV = "702aaa6354cc30ae815676c57a8bbb4557ccb295"
15PV .= "+git" 15PV .= "+git"
16SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main" 16SRC_URI = "git://github.com/pydantic/pydantic;protocol=https;branch=main"
17 17SRC_URI += "file://0001-pyprojects-Bump-pydantic-core-to-2.35.2.patch"
18
19DEPENDS += "python3-hatch-fancy-pypi-readme-native" 18DEPENDS += "python3-hatch-fancy-pypi-readme-native"
20 19
21RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core." 20RECIPE_NO_UPDATE_REASON = "Must be updated in sync with python3-pydantic-core."
diff --git a/meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb b/meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb
index 1aa713ccc3..10b7b856bc 100644
--- a/meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb
+++ b/meta-python/recipes-devtools/python/python3-twitter_4.16.0.bb
@@ -2,7 +2,7 @@ SUMMARY = "Twitter for Python"
2DESCRIPTION = "Python module to support twitter API" 2DESCRIPTION = "Python module to support twitter API"
3 3
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=9;endline=9;md5=77d9066068d13ffd309659977e9909c9" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=48c84b17f84a9a623754604ab73f28fe"
6 6
7SRC_URI[sha256sum] = "1d95cbdc50bf6353a387f881f2584eaf60d14e00dbbdd8872a73de79c66878e3" 7SRC_URI[sha256sum] = "1d95cbdc50bf6353a387f881f2584eaf60d14e00dbbdd8872a73de79c66878e3"
8 8
diff --git a/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb b/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb
index 83dc52ca19..812288881d 100644
--- a/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb
+++ b/meta-python/recipes-devtools/python/python3-typeguard_4.4.4.bb
@@ -18,6 +18,7 @@ RDEPENDS:${PN}-ptest += " \
18 python3-typing-extensions \ 18 python3-typing-extensions \
19 python3-unixadmin \ 19 python3-unixadmin \
20 python3-mypy \ 20 python3-mypy \
21 python3-pathspec \
21" 22"
22 23
23DEPENDS += "\ 24DEPENDS += "\