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 <[email protected]>
---
 ...id-do_configure-requires-check-error.patch | 29 +++++++++++++++++++
 ...-gmpy2_2.2.2.bb => python3-gmpy2_2.3.0.bb} |  9 ++++--
 2 files changed, 35 insertions(+), 3 deletions(-)
 create mode 100644 
meta-python/recipes-devtools/python/python3-gmpy2/0001-Avoid-do_configure-requires-check-error.patch
 rename meta-python/recipes-devtools/python/{python3-gmpy2_2.2.2.bb => 
python3-gmpy2_2.3.0.bb} (52%)

diff --git 
a/meta-python/recipes-devtools/python/python3-gmpy2/0001-Avoid-do_configure-requires-check-error.patch
 
b/meta-python/recipes-devtools/python/python3-gmpy2/0001-Avoid-do_configure-requires-check-error.patch
new file mode 100644
index 0000000000..3c602cebe5
--- /dev/null
+++ 
b/meta-python/recipes-devtools/python/python3-gmpy2/0001-Avoid-do_configure-requires-check-error.patch
@@ -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 <[email protected]>
+---
+ 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
+
diff --git a/meta-python/recipes-devtools/python/python3-gmpy2_2.2.2.bb 
b/meta-python/recipes-devtools/python/python3-gmpy2_2.3.0.bb
similarity index 52%
rename from meta-python/recipes-devtools/python/python3-gmpy2_2.2.2.bb
rename to meta-python/recipes-devtools/python/python3-gmpy2_2.3.0.bb
index 2196616a0e..841d87097d 100644
--- a/meta-python/recipes-devtools/python/python3-gmpy2_2.2.2.bb
+++ b/meta-python/recipes-devtools/python/python3-gmpy2_2.3.0.bb
@@ -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"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#124770): 
https://lists.openembedded.org/g/openembedded-devel/message/124770
Mute This Topic: https://lists.openembedded.org/mt/118058491/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to