Skip to contentSkip to conversation

python3-service-identity: switch to PEP-517 build backend

PATCH In review alperak 2 participants 15 messages Aug 9, 2024

lore
Share & tools
lore

alperak

author
#0 lore raw

PATCH 1/13 python3-service-identity: switch to PEP-517 build backend

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-service-identity-21.1.0-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../recipes-devtools/python/python3-service-identity_21.1.0.bb  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb +1 -1
index 006fae290..267bbea13 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8a0f079f4e6a215d6bd6f9d97cab4d5f"
 SRC_URI[md5sum] = "5e5c195d8fcedc72f9068be2ad9b5a13"
 SRC_URI[sha256sum] = "6e6c6086ca271dc11b033d17c3a8bea9f24ebff920c587da090afc9519419d34"
 
-inherit pypi setuptools3 ptest
+inherit pypi python_setuptools_build_meta ptest
 
 SRC_URI += " \
 	file://run-ptest \
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/13 python3-argcomplete: switch to PEP-517 build backend

- The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

- The PyPi package name (defaults to PN without the python3- prefix), so there is no need to set PYPI_PACKAGE as argcomplete, it is by default.

Fix:

WARNING: python3-argcomplete-3.4.0-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../recipes-devtools/python/python3-argcomplete_3.4.0.bb      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-python/recipes-devtools/python/python3-argcomplete_3.4.0.bb +2 -2
index be3ded82b..d350a6342 100644
@@ -5,9 +5,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=2ee41112a44fe7014dce33e26468ba93"
 
 SRC_URI[sha256sum] = "c2abcdfe1be8ace47ba777d4fce319eb13bf8ad9dace8d085dcad6eded88057f"
 
-PYPI_PACKAGE = "argcomplete"
+inherit pypi python_setuptools_build_meta
 
-inherit pypi setuptools3
+DEPENDS += "python3-setuptools-scm-native"
 
 RDEPENDS:${PN} += "\
     python3-core \
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 3/13 python3-parse-type: switch to PEP-517 build backend

In reply to alperak

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-parse-type-0.6.2-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-parse-type_0.6.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-parse-type_0.6.2.bb +1 -1
index a7d8cd86c..7e7ff8926 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2e469278ace89c246d52505acc39c3da"
 SRC_URI[sha256sum] = "79b1f2497060d0928bc46016793f1fca1057c4aacdf15ef876aa48d75a73a355"
 
 PYPI_PACKAGE = "parse_type"
-inherit pypi ptest setuptools3
+inherit pypi ptest python_setuptools_build_meta
 
 RDEPENDS:${PN} += "python3-parse"
 
Signature · 1 line
2.25.1
author
#3 lore raw

PATCH 4/13 python3-regex: switch to PEP-517 build backend

In reply to alperak

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-regex-2024.7.24-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-regex_2024.7.24.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-regex_2024.7.24.bb +1 -1
index 682c30fc9..b6e09fc83 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "https://bitbucket.org/mrabarnett/mrab-regex/src"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7b5751ddd6b643203c31ff873051d069"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 SRC_URI[sha256sum] = "9cfd009eed1a46b27c14039ad5bbc5e71b6367c5b2e6d5f5da0ea91600817506"
 
Signature · 1 line
2.25.1
author
#4 lore raw

PATCH 5/13 python3-pytest-timeout: switch to PEP-517 build backend

In reply to alperak

- The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

- The PyPi package name (defaults to PN without the python3- prefix), so there is no need to set PYPI_PACKAGE as pytest-timeout, it is by default.

Fix:

WARNING: python3-pytest-timeout-2.3.1-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../recipes-devtools/python/python3-pytest-timeout_2.3.1.bb   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-python/recipes-devtools/python/python3-pytest-timeout_2.3.1.bb +1 -3
index b56c26aad..fe9d814c0 100644
@@ -3,10 +3,8 @@ HOMEPAGE = "https://github.com/pytest-dev/pytest-timeout/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=d8048cd156eda3df2e7f111b0ae9ceff"
 
-PYPI_PACKAGE = "pytest-timeout"
-
 SRC_URI[sha256sum] = "12397729125c6ecbdaca01035b9e5239d4db97352320af155b3f5de1ba5165d9"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} = "python3-pytest"
Signature · 1 line
2.25.1
author
#5 lore raw

PATCH 6/13 python3-pytest-metadata: switch to PEP-517 build backend

In reply to alperak

- The project has a proper pyproject.toml which declares the poetry.core.masonry.api PEP-517 backend.

- The PyPi package name (defaults to PN without the python3- prefix), so there is no need to set PYPI_PACKAGE as pytest-metadata, it is by default.

Fix:

WARNING: python3-pytest-metadata-2.0.2-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with poetry.core.masonry.api, use the correct class [pep517-backend]

---
 .../recipes-devtools/python/python3-pytest-metadata_2.0.2.bb  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-python/recipes-devtools/python/python3-pytest-metadata_2.0.2.bb +1 -3
index 163a363f8..9243f6646 100644
@@ -6,9 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5d425c8f3157dbf212db2ec53d9e5132"
 
 SRC_URI[sha256sum] = "fcd2f416f15be295943527b3c8ba16a44ae5a7141939c90c3dc5ce9d167cf2a5"
 
-PYPI_PACKAGE = "pytest-metadata"
-
-inherit pypi setuptools3
+inherit pypi python_poetry_core
 
 RDEPENDS:${PN} = " \
     python3-pytest \
Signature · 1 line
2.25.1
author
#6 lore raw

PATCH 7/13 python3-pyroute: switch to PEP-517 build backend

In reply to alperak

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-pyroute2-0.7.12-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-pyroute2_0.7.12.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyroute2_0.7.12.bb +1 -1
index 3ea980f44..cf9885df7 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=dccbff78d7d79ae7e53953d43445c6e6 \
 
 SRC_URI[sha256sum] = "54d226fc3ff2732f49bac9b26853c50c9d05be05a4d9daf09c7cf6d77301eff3"
 
-inherit setuptools3 pypi ptest
+inherit python_setuptools_build_meta pypi ptest
 
 RDEPENDS:${PN} += " \
     python3-ctypes \
Signature · 1 line
2.25.1
author
#7 lore raw

PATCH 8/13 python3-pyjwt: switch to PEP-517 build backend

In reply to alperak

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-pyjwt-2.8.0-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-pyjwt_2.8.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyjwt_2.8.0.bb +1 -1
index 92a8f44c6..06d481a3b 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e4b56d2c9973d8cf54655555be06e551"
 SRC_URI[sha256sum] = "57e28d156e3d5c10088e0c68abb90bfac3df82b40a71bd0daa20c65ccd5c23de"
 
 PYPI_PACKAGE = "PyJWT"
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} = " \
     python3-json \
Signature · 1 line
2.25.1
author
#8 lore raw

PATCH 9/13 python3-pyasn1-modules: switch to PEP-517 build backend

In reply to alperak

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-pyasn1-modules-0.4.0-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../recipes-devtools/python/python3-pyasn1-modules_0.4.0.bb     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyasn1-modules_0.4.0.bb +1 -1
index 34f3639e5..48372d917 100644
@@ -10,7 +10,7 @@ SRC_URI[sha256sum] = "831dbcea1b177b28c9baddf4c6d1013c24c3accd14a1873fffaa6a2e90
 
 PYPI_PACKAGE = "pyasn1_modules"
 
-inherit pypi ptest setuptools3
+inherit pypi ptest python_setuptools_build_meta
 
 RDEPENDS:${PN} = "python3-pyasn1"
 
Signature · 1 line
2.25.1
author
#9 lore raw

PATCH 10/13 python3-py-cpuinfo: switch to PEP-517 build backend

In reply to alperak

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-py-cpuinfo-9.0.0-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-py-cpuinfo_9.0.0.bb +1 -1
index 857afd1db..20a401131 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d2379ecb0d7a8299101b1e4c160cd1f7"
 
 SRC_URI[sha256sum] = "3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3f49690"
 
-inherit ptest pypi setuptools3
+inherit ptest pypi python_setuptools_build_meta
 
 SRC_URI += "file://run-ptest \
             file://0001-test_cli.py-disable.patch \
Signature · 1 line
2.25.1
author
#10 lore raw

PATCH 11/13 python3-django: switch to PEP-517 build backend

In reply to alperak

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-django-5.0.6-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-django_5.0.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-django_5.0.6.bb +1 -1
index 69b25742d..513032876 100644
@@ -1,5 +1,5 @@
 require python-django.inc
-inherit setuptools3
+inherit python_setuptools_build_meta
 
 SRC_URI[sha256sum] = "ff1b61005004e476e0aeea47c7f79b85864c70124030e95146315396f1e7951f"
 
Signature · 1 line
2.25.1
author
#11 lore raw

PATCH 12/13 python3-greenlet: switch to PEP-517 build backend

In reply to alperak

- The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

- python3-greenlet was supposed to be native because of the python3-gevent build. It's python3-gevent's dependency.

Fix:

WARNING: python3-greenlet-3.0.3-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-greenlet_3.0.3.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-greenlet_3.0.3.bb +3 -1
index abd6c49ca..a79db0049 100644
@@ -6,4 +6,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e95668d68e4329085c7ab3535e6a7aee \
 
 SRC_URI[sha256sum] = "43374442353259554ce33599da8b692d5aa96f8976d567d4badf263371fbe491"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
author
#12 lore raw

PATCH 13/13 python3-gevent: switch to PEP-517 build backend

In reply to alperak

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-gevent-24.2.1-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 meta-python/recipes-devtools/python/python3-gevent_24.2.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-python/recipes-devtools/python/python3-gevent_24.2.1.bb +2 -2
index 806e09391..e44972178 100644
@@ -4,7 +4,7 @@ a high-level synchronous API on top of the libevent event loop."
 HOMEPAGE = "http://www.gevent.org"
 LICENSE = "MIT & Python-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=4de99aac27b470c29c6c309e0c279b65"
-DEPENDS += "python3-greenlet libev libuv c-ares python3-cython-native"
+DEPENDS += "python3-greenlet-native python3-greenlet libev libuv python3-cython-native python3-cffi-native"
 
 RDEPENDS:${PN} = "python3-greenlet \
 		  python3-mime \
@@ -18,7 +18,7 @@ SRC_URI += "file://0001-_setuputils.py-Do-not-add-sys_inc_dir.patch \
 
 SRC_URI[sha256sum] = "432fc76f680acf7cf188c2ee0f5d3ab73b63c1f03114c7cd8a34cebbe5aa2056"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 # Don't embed libraries, link to the system provided libs instead
 export GEVENTSETUP_EMBED_CARES = "0"
Signature · 1 line
2.25.1
#13 lore raw
In reply to alperak

Thanks for the patch series, Can you rebase them on top of master-next and resend please

Quoted 37 lines · Alper Ak via lists.openembedded.org

The project has a proper pyproject.toml which declares the setuptools.build.meta PEP-517 backend.

Fix:

WARNING: python3-service-identity-21.1.0-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../recipes-devtools/python/python3-service-identity_21.1.0.bb  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb +1 -2
index 006fae290..267bbea13 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8a0f079f4e6a215d6bd6f9d97cab4d5f"
 SRC_URI[md5sum] = "5e5c195d8fcedc72f9068be2ad9b5a13"
 SRC_URI[sha256sum] = "6e6c6086ca271dc11b033d17c3a8bea9f24ebff920c587da090afc9519419d34"
 
-inherit pypi setuptools3 ptest
+inherit pypi python_setuptools_build_meta ptest
 
 SRC_URI += " \
        file://run-ptest \
--

2.25.1

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

author
#14 lore raw

Thanks, I rebased it as you said. Only removed python3-argcomplete because it was already updated by Leon Anavi.

Khem Raj <[email protected]>, 9 Ağu 2024 Cum, 19:04 tarihinde şunu yazdı:

Quoted 54 lines

Thanks for the patch series, Can you rebase them on top of master-next and resend please

Quoted 2 lines · Alper Ak via lists.openembedded.org

The project has a proper pyproject.toml which declares the

setuptools.build.meta PEP-517 backend.

Quoted 4 lines

Fix:

WARNING: python3-service-identity-21.1.0-r0 do_check_backend: QA Issue:

inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

Review

Quoted 7 lines
---
 .../recipes-devtools/python/python3-service-identity_21.1.0.bb  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

python3-service-identity_21.1.0.bb b/meta-python/recipes-devtools/python/ python3-service-identity_21.1.0.bb

Quoted 2 lines

index 006fae290..267bbea13 100644
--- a/meta-python/recipes-devtools/python/

python3-service-identity_21.1.0.bb

Quoted 1 line

+++ b/meta-python/recipes-devtools/python/

python3-service-identity_21.1.0.bb

Review LIC_FILES_CHKSUM =

Quoted 1 line
(quoted diff) +0 -0
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM =

"file://LICENSE;md5=8a0f079f4e6a215d6bd6f9d97cab4d5f"

Review LIC_FILES_CHKSUM = · line 8

Quoted 2 lines
(quoted diff) +0 -0
 SRC_URI[md5sum] = "5e5c195d8fcedc72f9068be2ad9b5a13"
 SRC_URI[sha256sum] =

"6e6c6086ca271dc11b033d17c3a8bea9f24ebff920c587da090afc9519419d34"

Quoted 10 lines
meta-python/recipes-devtools/python/python3-service-identity_21.1.0.bb +1 -2
-inherit pypi setuptools3 ptest
+inherit pypi python_setuptools_build_meta ptest
 
 SRC_URI += " \
        file://run-ptest \
--

2.25.1

Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#111697):

https://lists.openembedded.org/g/openembedded-devel/message/111697

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/107810496/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-