mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
python3-maturin: upgrade 1.4.0 -> 1.5.1
* Drop riscv-32 patch (merged in 1.5.0)
* Refresh ${BPN}-crates.inc
1.5.1 - 2024-03-21
* Fix usage of --compatibility when run as a PEP517 backend in #1992
* Fix upload returning malformed summary error in #2002
1.5.0 - 2024-03-05
* Bump metadata version from 2.1 to 2.3 in #1965. Source distributions
created by maturin now have reliable metadata, meaning tool such as
pip, uv and poetry could skip building them for version resolution.
* Allow identical VIRTUAL_ENV and CONDA_PREFIX env vars in #1879
* Reject -i python when cross compiling in #1891
* Support uniffi-bindgen in cargo workspaces in #1909
* Add support for configuring xwin using env vars in #1961
* Add validation for crate/package name in new/init in #1943
* Add 32-bit RISC-V support in #1969
* Improve import hook changes in #1958
* Adjust cbindgen Overrides for CFFI in #1957
https://github.com/PyO3/maturin/compare/v1.4.0...v1.5.1
(From OE-Core rev: 6dd2ad8cce1eb38ace7e69fc51f9fe047e6e28f1)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a73e9446b1
commit
69ce2f90ce
@@ -1,102 +0,0 @@
|
||||
From a945706bd610c5400fc85a248d5e0c96ebd2e953 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 27 Feb 2024 10:38:49 -0800
|
||||
Subject: [PATCH] Add 32-bit RISC-V support
|
||||
|
||||
Tested with qemuriscv32 and it builds fine with all tests passed on a
|
||||
qemu machine.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/PyO3/maturin/pull/1969]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/target.rs | 11 ++++++++++-
|
||||
1 file changed, 10 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/target.rs b/src/target.rs
|
||||
index fbb93531..33fa9273 100644
|
||||
--- a/src/target.rs
|
||||
+++ b/src/target.rs
|
||||
@@ -69,6 +69,7 @@ pub enum Arch {
|
||||
X86_64,
|
||||
S390X,
|
||||
Wasm32,
|
||||
+ Riscv32,
|
||||
Riscv64,
|
||||
Mips64el,
|
||||
Mips64,
|
||||
@@ -91,6 +92,7 @@ impl fmt::Display for Arch {
|
||||
Arch::X86_64 => write!(f, "x86_64"),
|
||||
Arch::S390X => write!(f, "s390x"),
|
||||
Arch::Wasm32 => write!(f, "wasm32"),
|
||||
+ Arch::Riscv32 => write!(f, "riscv32"),
|
||||
Arch::Riscv64 => write!(f, "riscv64"),
|
||||
Arch::Mips64el => write!(f, "mips64el"),
|
||||
Arch::Mips64 => write!(f, "mips64"),
|
||||
@@ -115,7 +117,7 @@ impl Arch {
|
||||
Arch::Powerpc | Arch::Powerpc64Le | Arch::Powerpc64 => "powerpc",
|
||||
Arch::X86 => "i386",
|
||||
Arch::X86_64 => "amd64",
|
||||
- Arch::Riscv64 => "riscv",
|
||||
+ Arch::Riscv32 | Arch::Riscv64 => "riscv",
|
||||
Arch::Mips64el | Arch::Mips64 | Arch::Mipsel | Arch::Mips => "mips",
|
||||
// sparc64 is unsupported since FreeBSD 13.0
|
||||
Arch::Sparc64 => "sparc64",
|
||||
@@ -139,6 +141,7 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
|
||||
Arch::S390X,
|
||||
Arch::X86,
|
||||
Arch::X86_64,
|
||||
+ Arch::Riscv32,
|
||||
Arch::Riscv64,
|
||||
Arch::Mips64el,
|
||||
Arch::Mips64,
|
||||
@@ -158,6 +161,7 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
|
||||
Arch::Powerpc64Le,
|
||||
Arch::X86,
|
||||
Arch::X86_64,
|
||||
+ Arch::Riscv32,
|
||||
Arch::Riscv64,
|
||||
Arch::Mips64el,
|
||||
Arch::Mipsel,
|
||||
@@ -171,6 +175,7 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
|
||||
Arch::Powerpc,
|
||||
Arch::Powerpc64,
|
||||
Arch::Powerpc64Le,
|
||||
+ Arch::Riscv32,
|
||||
Arch::Riscv64,
|
||||
Arch::Sparc64,
|
||||
],
|
||||
@@ -255,6 +260,7 @@ impl Target {
|
||||
Architecture::Powerpc64le => Arch::Powerpc64Le,
|
||||
Architecture::S390x => Arch::S390X,
|
||||
Architecture::Wasm32 => Arch::Wasm32,
|
||||
+ Architecture::Riscv32(_) => Arch::Riscv32,
|
||||
Architecture::Riscv64(_) => Arch::Riscv64,
|
||||
Architecture::Mips64(mips64_arch) => match mips64_arch {
|
||||
Mips64Architecture::Mips64el => Arch::Mips64el,
|
||||
@@ -343,6 +349,7 @@ impl Target {
|
||||
Arch::X86_64 => "x86_64",
|
||||
Arch::S390X => "s390x",
|
||||
Arch::Wasm32 => "wasm32",
|
||||
+ Arch::Riscv32 => "riscv32",
|
||||
Arch::Riscv64 => "riscv64",
|
||||
// It's kinda surprising that Python doesn't include the `el` suffix
|
||||
Arch::Mips64el | Arch::Mips64 => "mips64",
|
||||
@@ -388,6 +395,7 @@ impl Target {
|
||||
}
|
||||
Arch::Armv6L
|
||||
| Arch::Wasm32
|
||||
+ | Arch::Riscv32
|
||||
| Arch::Riscv64
|
||||
| Arch::Mips64el
|
||||
| Arch::Mips64
|
||||
@@ -418,6 +426,7 @@ impl Target {
|
||||
| Arch::Wasm32
|
||||
| Arch::Mipsel
|
||||
| Arch::Mips
|
||||
+ | Arch::Riscv32
|
||||
| Arch::Powerpc => 32,
|
||||
}
|
||||
}
|
||||
--
|
||||
2.44.0
|
||||
|
||||
Reference in New Issue
Block a user