Use the newer setuptools build class to avoid an AttributeError thrown
after warnings about setuptools and related build modules:

|/home/tgamblin/workspace/ypbuilds/oe-nodistro-master-patchtest/build/tmp/work/x86-64-v3-oe-linux/python3-ukkonen/1.1.0/recipe-sysroot-native/usr/lib/python3.14/site-packages/setuptools/__init__.py:92:
 _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
|!!
|
|        
********************************************************************************
|        Requirements should be satisfied by a PEP 517 installer.
|        If you are using pip, you can try `pip install --use-pep517`.
|
|        This deprecation is overdue, please update your project and remove 
deprecated
|        calls to avoid build errors in the future.
|        
********************************************************************************
|
|!!

...

|  File 
"/home/tgamblin/workspace/ypbuilds/oe-nodistro-master-patchtest/build/tmp/work/x86-64-v3-oe-linux/python3-ukkonen/1.1.0/recipe-sysroot-native/usr/lib/python3.14/site-packages/packaging/utils.py",
 line 96, in canonicalize_name
|    value = name.lower().replace("_", "-").replace(".", "-")
|            ^^^^^^^^^^
|AttributeError: 'NoneType' object has no attribute 'lower'

Signed-off-by: Trevor Gamblin <[email protected]>
---
 meta-python/recipes-devtools/python/python3-ukkonen_1.1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python3-ukkonen_1.1.0.bb 
b/meta-python/recipes-devtools/python/python3-ukkonen_1.1.0.bb
index 8fc5af1ef7..fe25eda63e 100644
--- a/meta-python/recipes-devtools/python/python3-ukkonen_1.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-ukkonen_1.1.0.bb
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=7e49a187324d5a1a6c4ba2b9c3fd4033"
 
 PYPI_PACKAGE = "ukkonen"
 
-inherit setuptools3
+inherit python_setuptools_build_meta
 
 SRC_URI += 
"git://github.com/asottile/ukkonen;protocol=https;branch=main;tag=v${PV}"
 SRCREV = "5fa9858f0997927d9f9c1794e1741fe8dbd4c1e8"
-- 
2.55.0

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

Reply via email to