Skip to contentSkip to conversation

python3-daemon: switch to PEP-517 build backend

PATCH In review alperak 3 participants 4 messages Aug 7, 2024 – Aug 9, 2024

lore
Share & tools
lore

alperak

author
#0 lore raw

PATCH 1/1 python3-daemon: 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-daemon-3.0.1-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../python/python3-daemon_3.0.1.bb             | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb +9 -9
index 715d3bf12..4cdbff0ee 100644
@@ -1,18 +1,18 @@
 DESCRIPTION = "Library to implement a well-behaved Unix daemon process"
 HOMEPAGE = "https://pagure.io/python-daemon/"
 SECTION = "devel/python"
-
-DEPENDS += "python3-docutils-native"
-RDEPENDS:${PN} = "python3-docutils \
-                  python3-lockfile (>= 0.10) \
-                  python3-resource \
-"
-
 LICENSE = "Apache-2.0 & GPL-3.0-only"
 LIC_FILES_CHKSUM = "file://README;md5=a3a94c615dc969a70525f1eebbacf235"
 
-inherit pypi setuptools3
+PYPI_PACKAGE = "python-daemon"
+
+inherit pypi python_setuptools_build_meta
 
 SRC_URI[sha256sum] = "6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5"
 
-PYPI_PACKAGE = "python-daemon"
+DEPENDS += "python3-docutils-native"
+
+RDEPENDS:${PN} = "python3-docutils \
+                  python3-lockfile (>= 0.10) \
+                  python3-resource \
+"
Signature · 1 line
2.25.1
#1 lore raw

it fails to compile see

https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/4025/steps/15/logs/stdio

Quoted 56 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-daemon-3.0.1-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../python/python3-daemon_3.0.1.bb             | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb +9 -10
index 715d3bf12..4cdbff0ee 100644
@@ -1,18 +1,18 @@
 DESCRIPTION = "Library to implement a well-behaved Unix daemon process"
 HOMEPAGE = "https://pagure.io/python-daemon/"
 SECTION = "devel/python"
-
-DEPENDS += "python3-docutils-native"
-RDEPENDS:${PN} = "python3-docutils \
-                  python3-lockfile (>= 0.10) \
-                  python3-resource \
-"
-
 LICENSE = "Apache-2.0 & GPL-3.0-only"
 LIC_FILES_CHKSUM = "file://README;md5=a3a94c615dc969a70525f1eebbacf235"
 
-inherit pypi setuptools3
+PYPI_PACKAGE = "python-daemon"
+
+inherit pypi python_setuptools_build_meta
 
 SRC_URI[sha256sum] = "6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5"
 
-PYPI_PACKAGE = "python-daemon"
+DEPENDS += "python3-docutils-native"
+
+RDEPENDS:${PN} = "python3-docutils \
+                  python3-lockfile (>= 0.10) \
+                  python3-resource \
+"
--

2.25.1

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

#2 lore raw

here is link to error for just this recipe -
https://errors.yoctoproject.org/Errors/Details/797752/

Quoted 63 lines · Khem Raj

it fails to compile see

https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/4025/steps/15/logs/stdio

Quoted 56 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-daemon-3.0.1-r0 do_check_backend: QA Issue: inherits setuptools3 but has pyproject.toml with setuptools.build_meta, use the correct class [pep517-backend]

---
 .../python/python3-daemon_3.0.1.bb             | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb +9 -10
index 715d3bf12..4cdbff0ee 100644
@@ -1,18 +1,18 @@
 DESCRIPTION = "Library to implement a well-behaved Unix daemon process"
 HOMEPAGE = "https://pagure.io/python-daemon/"
 SECTION = "devel/python"
-
-DEPENDS += "python3-docutils-native"
-RDEPENDS:${PN} = "python3-docutils \
-                  python3-lockfile (>= 0.10) \
-                  python3-resource \
-"
-
 LICENSE = "Apache-2.0 & GPL-3.0-only"
 LIC_FILES_CHKSUM = "file://README;md5=a3a94c615dc969a70525f1eebbacf235"
 
-inherit pypi setuptools3
+PYPI_PACKAGE = "python-daemon"
+
+inherit pypi python_setuptools_build_meta
 
 SRC_URI[sha256sum] = "6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5"
 
-PYPI_PACKAGE = "python-daemon"
+DEPENDS += "python3-docutils-native"
+
+RDEPENDS:${PN} = "python3-docutils \
+                  python3-lockfile (>= 0.10) \
+                  python3-resource \
+"
--

2.25.1

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

#3 lore raw
Quoted 2 lines · Khem Raj via lists.openembedded.org

here is link to error for just this recipe -
https://errors.yoctoproject.org/Errors/Details/797752/

The key to that backtrace is:
ModuleNotFoundError: No module named 'setuptools.extern'

Where to go from there is less obvious.

Quoted 82 lines · Khem Raj
Quoted 4 lines

it fails to compile see

https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/4025/steps/15/logs/stdio

Quoted 5 lines
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
Quoted 4 lines

Fix:

WARNING: python3-daemon-3.0.1-r0 do_check_backend: QA Issue: inherits

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

Quoted 4 lines
Quoted 4 lines
---
 .../python/python3-daemon_3.0.1.bb             | 18

+++++++++---------

Quoted 3 lines

Review

Quoted 3 lines
 1 file changed, 9 insertions(+), 9 deletions(-)
(quoted diff) +0 -0

python3-daemon_3.0.1.bb b/meta-python/recipes-devtools/python/ python3-daemon_3.0.1.bb

Quoted 5 lines

meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb line 1

Quoted 5 lines

index 715d3bf12..4cdbff0ee 100644

meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb +0 -0
@@ -1,18 +1,18 @@
 DESCRIPTION = "Library to implement a well-behaved Unix daemon

process"

Quoted 11 lines

meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb

Quoted 11 lines
meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb +0 -7
 HOMEPAGE = "https://pagure.io/python-daemon/"
 SECTION = "devel/python"
-
-DEPENDS += "python3-docutils-native"
-RDEPENDS:${PN} = "python3-docutils \
-                  python3-lockfile (>= 0.10) \
-                  python3-resource \
-"
-
 LICENSE = "Apache-2.0 & GPL-3.0-only"
 LIC_FILES_CHKSUM =

"file://README;md5=a3a94c615dc969a70525f1eebbacf235"

Quoted 7 lines

meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb

Quoted 7 lines
meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb +3 -1
-inherit pypi setuptools3
+PYPI_PACKAGE = "python-daemon"
+
+inherit pypi python_setuptools_build_meta
 
 SRC_URI[sha256sum] =

"6c57452372f7eaff40934a1c03ad1826bf5e793558e87fef49131e6464b4dae5"

Quoted 14 lines
Quoted 9 lines
meta-python/recipes-devtools/python/python3-daemon_3.0.1.bb +6 -2
-PYPI_PACKAGE = "python-daemon"
+DEPENDS += "python3-docutils-native"
+
+RDEPENDS:${PN} = "python3-docutils \
+                  python3-lockfile (>= 0.10) \
+                  python3-resource \
+"
--
Quoted 5 lines

2.25.1

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