python3-gmpy2: upgrade 2.2.2 -> 2.3.0

1.Changelog:
https://github.com/gmpy2/gmpy2/releases/tag/v2.3.0

2.Add python3-setuptools-scm-native as depend to satisfy require check of setuptools_scm

3.Add 0001-Avoid-do_configure-requires-check-error.patch to fix require check error of setuptools
| ERROR Missing dependencies:
|       setuptools_scm[toml]>=6.0
|       setuptools<80,>=77

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Liu Yiding
2026-02-28 17:01:58 +08:00
committed by Khem Raj
parent f66593bab7
commit b4e2194a37
2 changed files with 35 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
Subject: [PATCH] Avoid do_configure requires check error.
The gmpy2-2.3.0 need setuptools < 80, but version in oe-core is 80.9.0,
so fix it to avoid following error.
| ERROR Missing dependencies:
| setuptools<80,>=77
Upstream-Status: Inappropriate
Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index 1f00809..3a4f3e2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
[build-system]
-requires = ['setuptools>=77,<80', 'setuptools_scm[toml]>=6.0']
+requires = ['setuptools>=77', 'setuptools_scm[toml]>=6.0']
build-backend = 'setuptools.build_meta'
[project]
--
2.43.0

View File

@@ -1,13 +1,16 @@
SUMMARY = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x"
SECTION = "devel/python"
HOMEPAGE = "https://github.com/gmpy2/gmpy2"
LICENSE = "GPL-3.0-only | LGPL-3.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"
DEPENDS += "gmp mpfr libmpc"
DEPENDS += "gmp mpfr libmpc python3-setuptools-scm-native"
SRC_URI[sha256sum] = "d9b8c81e0f5e1a3cabf1ea8d154b29b5ef6e33b8f4e4c37b3da957b2dd6a3fa8"
SRC_URI[sha256sum] = "2d943cc9051fcd6b15b2a09369e2f7e18c526bc04c210782e4da61b62495eb4a"
inherit pypi python_setuptools_build_meta python3native
SRC_URI += "file://0001-Avoid-do_configure-requires-check-error.patch"
inherit pypi python_setuptools_build_meta
BBCLASSEXTEND = "native nativesdk"