Skip to contentSkip to conversation

python3-pyflakes: Add python3 version

PATCH New Khem Raj 1 participant 3 messages Feb 18, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 python3-pyflakes: Add python3 version

---
 .../python/python3-pyflakes_2.1.1.bb             | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pyflakes_2.1.1.bb
meta-python/recipes-devtools/python/python3-pyflakes_2.1.1.bb new file +16 -0
new file mode 100644
index 0000000000..c138822400
@@ -0,0 +1,16 @@
+SUMMARY = "passive checker of Python programs"
+HOMEPAGE = "https://github.com/dreamhost/cliff"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://README.rst;md5=5127315117a8561a1504343d59620647"
+
+SRC_URI[md5sum] = "a0f71a15724e553c46e03ba5ed56703c"
+SRC_URI[sha256sum] = "d976835886f8c5b31d47970ed689944a0262b5f3afa00a5a7b4dc81e5449f8a2"
+
+inherit pypi setuptools3
+
+RDEPENDS_${PN} += " \
+    ${PYTHON_PN}-prettytable \
+    ${PYTHON_PN}-cmd2 \
+    ${PYTHON_PN}-pyparsing"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/3 netplan: rdep on python3 version of pyflakes

---
 meta-networking/recipes-connectivity/netplan/netplan_0.98.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/netplan/netplan_0.98.bb +1 -1
index 860762c494..db029a4b8a 100644
@@ -19,7 +19,7 @@ SRC_URI = " \
 "
 
 DEPENDS = "glib-2.0 libyaml"
-RDEPENDS_${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python-pyflakes util-linux-libuuid"
+RDEPENDS_${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python3-pyflakes util-linux-libuuid"
 
 inherit pkgconfig systemd
 
Signature · 1 line
2.25.1
author
#2 lore raw

PATCH 3/3 rsyslog: Use python3 in ptests

In reply to Khem Raj

Adjusts rdeps accordingly

---
 meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb +7 -1
index 29bba2d9a7..f82caf7b5c 100644
@@ -77,6 +77,12 @@ PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi,"
 PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,,"
 PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind,"
 
+do_configure_prepend() {
+    sed -i -e 's|python |python3 |g' ${S}/tests/*.sh
+    sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/tests/*.py
+    sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/tests/testsuites/*.py
+}
+
 TESTDIR = "tests"
 do_compile_ptest() {
     echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile
@@ -186,6 +192,6 @@ VALGRIND_riscv64 = ""
 
 RDEPENDS_${PN}-ptest += "\
   make diffutils gzip bash gawk coreutils procps \
-  libgcc python-core python-io \
+  libgcc python3-core python3-io \
   "
 RRECOMMENDS_${PN}-ptest += "${TCLIBC}-dbg ${VALGRIND}"
Signature · 1 line
2.25.1