python3-cbor2: add missing build dependency
PATCH 1/8 python3-cbor2: add missing build dependency
The build doesn't generate the right filenames without this package.
--- meta-python/recipes-devtools/python/python3-cbor2_5.4.3.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-cbor2_5.4.3.bb +2 -0
@@ -8,6 +8,8 @@ SRC_URI[sha256sum] = "62b863c5ee6ced4032afe948f3c1484f375550995d3b8498145237fe28 inherit pypi python_setuptools_build_meta ptest +DEPENDS += "python3-setuptools-scm-native" + SRC_URI += " \ file://run-ptest \ "
Signature · 1 line
2.34.1
PATCH 2/8 python3-simpleeval: remove 'build' build dependency
In the future we'll have a Python building tool which validates build requirements. No package should require a specific tool to be present (not even used, just present), so remove the dependency on 'build'.
--- .../python/python3-simpleeval/no-build.patch | 24 +++++++++++++++++++ .../python/python3-simpleeval_0.9.12.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-simpleeval/no-build.patch
meta-python/recipes-devtools/python/python3-simpleeval/no-build.patch new file +24 -0
@@ -0,0 +1,24 @@ +Upstream-Status: Submitted [https://github.com/danthedeckie/simpleeval/pull/119] +Signed-off-by: Ross Burton <[email protected]> + +From 08bc99211aec32882d5f1c83896eb5d72b9fb125 Mon Sep 17 00:00:00 2001 +From: Ross Burton <[email protected]> +Date: Mon, 23 May 2022 11:35:00 +0100 +Subject: [PATCH] pyproject.toml: remove build as a build-dependency + +pypa/build is one possible build tool, but not the only build tool. Forcing build to be present as a build dependency is meaningless: either the user is using build so obviously have build, or are using something else so having build is irrelevant. +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 052a55a..416482b 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools>=30.3.0", "wheel", "build"] ++requires = ["setuptools>=30.3.0", "wheel"] + build-backend = "setuptools.build_meta" + + [tool.black]
meta-python/recipes-devtools/python/python3-simpleeval_0.9.12.bb +1 -0
@@ -10,6 +10,7 @@ inherit pypi python_setuptools_build_meta ptest BBCLASSEXTEND = "native nativesdk" SRC_URI += " \ + file://no-build.patch \ file://run-ptest \ "
Signature · 1 line
2.34.1
PATCH 3/8 python3-pyrad: fix build system specification
In reply to Ross BurtonThe upstream pyproject.toml says it needs to be built with the Poetry frontend, but that's deprecated behaviour and it should use the Poetry Core API instead.
--- .../python3-pyrad/use-poetry-core.patch | 26 +++++++++++++++++++ .../python/python3-pyrad_2.4.bb | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pyrad/use-poetry-core.patch
meta-python/recipes-devtools/python/python3-pyrad/use-poetry-core.patch new file +26 -0
@@ -0,0 +1,26 @@ +Upstream-Status: Backport [https://github.com/pyradius/pyrad/commit/ffe182a44909e8f8278fb3e2ea052ddc097b48b9] +Signed-off-by: Ross Burton <[email protected]> + +From a4b70067dd6269e14a2f9530d820390a8a454231 Mon Sep 17 00:00:00 2001 +From: Martin Weinelt <[email protected]> +Date: Thu, 14 Apr 2022 22:07:37 +0200 +Subject: [PATCH] Use poetry-core for pyproject based builds + +https://github.com/python-poetry/poetry-core#why-is-this-required +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 87b1df3..711c52f 100755 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] +-requires = ["poetry>=1.0"] +-build-backend = "poetry.masonry.api" ++requires = ["poetry-core>=1.0.0"] ++build-backend = "poetry.core.masonry.api" + + [tool.poetry] + name = "pyrad"
meta-python/recipes-devtools/python/python3-pyrad_2.4.bb +2 -0
@@ -6,4 +6,6 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665 PYPI_PACKAGE = "pyrad" SRC_URI[sha256sum] = "057de4b7e89d8da57ba782c1bde45c63ebee720ae2c0b0a69beaff15c47e30d9" +SRC_URI += "file://use-poetry-core.patch" + inherit pypi python_poetry_core
Signature · 1 line
2.34.1
PATCH 4/8 python3-pytest-html: fix DEPENDS, don't depend on pip
In reply to Ross BurtonAdd a DEPENDS on ptyhon3-setuptools-scm-git-archive-native as the setup.py uses it.
In the future we'll have a Python building tool which validates build requirements, so remove pip from those dependencies as it shouldn't depend on a specific build tool being present.
--- .../python/python3-pytest-html/no-pip.patch | 24 +++++++++++++++++++ .../python/python3-pytest-html_3.1.1.bb | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pytest-html/no-pip.patch
meta-python/recipes-devtools/python/python3-pytest-html/no-pip.patch new file +24 -0
@@ -0,0 +1,24 @@ +Upstream-Status: Submitted [https://github.com/pytest-dev/pytest-html/pull/516] +Signed-off-by: Ross Burton <[email protected]> + +From d7fbc79d428323c838ce68a51e1e1806c2096a76 Mon Sep 17 00:00:00 2001 +From: Ross Burton <[email protected]> +Date: Mon, 23 May 2022 13:46:50 +0100 +Subject: [PATCH] pip isn't a build dependency + +It's possible, and even desirable, to build modern Python code without pip, for example by using the `build` and `installer` packages. +--- + pyproject.toml | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 2683f072..e3f25bf7 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,5 @@ + [build-system] + requires = [ +- "pip >= 19.3.1", + "setuptools >= 42", + "setuptools_scm[toml] >= 3.5.0", + "setuptools_scm_git_archive >= 1.1",
meta-python/recipes-devtools/python/python3-pytest-html_3.1.1.bb +4 -0
@@ -10,6 +10,10 @@ PYPI_PACKAGE = "pytest-html" inherit pypi python_setuptools_build_meta +DEPENDS += "python3-setuptools-scm-git-archive-native" + +SRC_URI += "file://no-pip.patch" + RDEPENDS:${PN} += " \ ${PYTHON_PN}-pytest \ "
Signature · 1 line
2.34.1
PATCH 5/8 python3-ansi2html: fix DEPENDS
In reply to Ross BurtonThere's no need to depend on python3-toml-native, but this does need python3-setuptools-scm-git-archive-native.
--- meta-python/recipes-devtools/python/python3-ansi2html_1.8.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-ansi2html_1.8.0.bb +1 -1
@@ -11,7 +11,7 @@ inherit pypi python_setuptools_build_meta DEPENDS += " \ ${PYTHON_PN}-setuptools-scm-native \ - ${PYTHON_PN}-toml-native \ + ${PYTHON_PN}-setuptools-scm-git-archive-native \ " RDEPENDS:${PN} = " \
Signature · 1 line
2.34.1
PATCH 6/8 python3-pytest-helpers-namespace: add missing build dependencies
In reply to Ross Burton--- .../python/python3-pytest-helpers-namespace_2021.12.29.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-pytest-helpers-namespace_2021.12.29.bb +2 -0
@@ -8,6 +8,8 @@ SRC_URI[sha256sum] = "792038247e0021beb966a7ea6e3a70ff5fcfba77eb72c6ec8fd6287af8 inherit pypi python_setuptools_build_meta +DEPENDS += "python3-setuptools-scm-native python3-setuptools-declarative-requirements-native" + RDEPENDS:${PN} += " \ ${PYTHON_PN}-pytest \ "
Signature · 1 line
2.34.1
PATCH 7/8 python3-pyzmq: add missing build dependency
In reply to Ross Burton--- meta-python/recipes-devtools/python/python3-pyzmq_22.3.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-pyzmq_22.3.0.bb +2 -0
@@ -10,6 +10,8 @@ SRC_URI[sha256sum] = "8eddc033e716f8c91c6a2112f0a8ebc5e00532b4a6ae1eb0ccc48e027f inherit pypi pkgconfig python_setuptools_build_meta +DEPENDS += "python3-packaging-native" + RDEPENDS:${PN} += " \ ${PYTHON_PN}-multiprocessing \ ${PYTHON_PN}-json \
Signature · 1 line
2.34.1
PATCH 8/8 python3-path: add missing build dependencies
In reply to Ross Burton--- meta-python/recipes-devtools/python/python3-path_16.4.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-path_16.4.0.bb +2 -0
@@ -6,4 +6,6 @@ SRC_URI[sha256sum] = "baf2e757c4b19be8208f9e67e48fb475b4a577d5613590ce46693bdbdf inherit pypi python_setuptools_build_meta +DEPENDS += "python3-setuptools-scm-native" + BBCLASSEXTEND = "nativesdk native"
Signature · 1 line
2.34.1