[PATCH 4/8] python3-pytest-html: fix DEPENDS, don't depend on pip
Add a DEPENDS on ptyhon3-setuptools-scm-git-archive-native as the setup.p=
y 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 depen= d on a specific build tool being present. Signed-off-by: Ross Burton <ross.burton@...> --- .../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-ht= ml/no-pip.patch diff --git a/meta-python/recipes-devtools/python/python3-pytest-html/no-p= ip.patch b/meta-python/recipes-devtools/python/python3-pytest-html/no-pip= .patch new file mode 100644 index 0000000000..e120498846 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-html/no-pip.patc= h @@ -0,0 +1,24 @@ +Upstream-Status: Submitted [https://github.com/pytest-dev/pytest-html/pu= ll/516] +Signed-off-by: Ross Burton <ross.burton@...> + +From d7fbc79d428323c838ce68a51e1e1806c2096a76 Mon Sep 17 00:00:00 2001 +From: Ross Burton <ross.burton@...> +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 p= ip, 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 =3D [ +- "pip >=3D 19.3.1", + "setuptools >=3D 42", + "setuptools_scm[toml] >=3D 3.5.0", + "setuptools_scm_git_archive >=3D 1.1", diff --git a/meta-python/recipes-devtools/python/python3-pytest-html_3.1.= 1.bb b/meta-python/recipes-devtools/python/python3-pytest-html_3.1.1.bb index ce55554a01..1bbdfb633b 100644 --- a/meta-python/recipes-devtools/python/python3-pytest-html_3.1.1.bb +++ b/meta-python/recipes-devtools/python/python3-pytest-html_3.1.1.bb @@ -10,6 +10,10 @@ PYPI_PACKAGE =3D "pytest-html" =20 inherit pypi python_setuptools_build_meta =20 +DEPENDS +=3D "python3-setuptools-scm-git-archive-native" + +SRC_URI +=3D "file://no-pip.patch" + RDEPENDS:${PN} +=3D " \ ${PYTHON_PN}-pytest \ " --=20 2.34.1
|
|