[meta-virtualization] [meta-cloud-services] [PATCH 3/5] python3-pecan: migrate to python_setuptools_build_meta and use SPDX-2 BSD-3-Clause instead of bare BSD

Wang Mingyu < [email protected]>
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <[email protected]>
From: Wang Mingyu <[email protected]>

PEP 517 backend switch and the scripts= sed in setup.py.

Signed-off-by: Wang Mingyu <[email protected]>
---
 .../recipes-devtools/python/python3-pecan_1.4.0.bb        | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta-openstack/recipes-devtools/python/python3-pecan_1.4.0.bb b/meta-openstack/recipes-devtools/python/python3-pecan_1.4.0.bb
index b772ca40..b8ed8231 100644
--- a/meta-openstack/recipes-devtools/python/python3-pecan_1.4.0.bb
+++ b/meta-openstack/recipes-devtools/python/python3-pecan_1.4.0.bb
@@ -1,13 +1,13 @@
 DESCRIPTION = "WSGI object-dispatching web framework"
 HOMEPAGE = "https://pypi.python.org/pypi/pecan/"
 SECTION = "devel/python"
-LICENSE = "BSD"
+LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=d846877d24bbb3d7a00a985c90378e8c"
 
 SRC_URI[md5sum] = "70667908b648043bc8a3fcb7d1e4d53a"
 SRC_URI[sha256sum] = "4b2acd6802a04b59e306d0a6ccf37701d24376f4dc044bbbafba3afdf9d3389a"
 
-inherit setuptools3 pypi
+inherit python_setuptools_build_meta pypi
 
 RDEPENDS:${PN} = "${PYTHON_PN}-mako \
                   ${PYTHON_PN}-webtest \
@@ -17,3 +17,7 @@ RDEPENDS:${PN} = "${PYTHON_PN}-mako \
                   ${PYTHON_PN}-backlash \
                   ${PYTHON_PN}-pprint \
 "
+
+do_configure:prepend() {
+    sed -i "/scripts.*bin\/pecan/d" ${S}/setup.py
+}
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.