* [meta-python][PATCH 0/6] Support updated python3-pylint
@ 2023-05-02 16:49 Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 1/6] python3-platformdirs: Add recipe Trevor Gamblin
` (5 more replies)
0 siblings, 6 replies; 14+ messages in thread
From: Trevor Gamblin @ 2023-05-02 16:49 UTC (permalink / raw)
To: openembedded-devel
Patchtest relies on python3-pylint, but it's a very old version in that
repo. Before proceeding with updating, it seemed important to uprev the
recipe in meta-python and add a ptest at the same time. This required
significant changes and the addition of a few new recipes, some of which
also existed in other layers but in older forms: python3-platformdirs,
python3-pytest-mock, python3-tomlkit. I've added ptests for each of
these, as well.
Note that this patch set relies (indirectly) on some changes sent to
oe-core to update python3-hatchling and add two new recipes that it
in turn relies on (python3-trove-classifiers and python3-calver), so
the recipes and ptests won't be fully functional until those are merged.
Trevor Gamblin (6):
python3-platformdirs: Add recipe
python3-pytest-mock: Add recipe
python3-tomlkit: Add recipe
python3-pylint: upgrade 2.14.5 -> 2.17.3
python3-pylint: add ptest
ptest-packagelists-meta-python: Add new tests
.../ptest-packagelists-meta-python.inc | 4 ++
.../python/python3-platformdirs/run-ptest | 3 ++
.../python/python3-platformdirs_3.5.0.bb | 35 +++++++++++++++
....toml-Remove-hard-coded-dependencies.patch | 24 +++++++++++
.../python/python3-pylint/run-ptest | 3 ++
.../python/python3-pylint_2.14.5.bb | 18 --------
.../python/python3-pylint_2.17.3.bb | 43 +++++++++++++++++++
.../python/python3-pytest-mock/run-ptest | 3 ++
.../python/python3-pytest-mock_3.10.0.bb | 26 +++++++++++
.../python/python3-tomlkit/run-ptest | 3 ++
.../python/python3-tomlkit_0.11.8.bb | 23 ++++++++++
11 files changed, 167 insertions(+), 18 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
create mode 100644 meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
create mode 100644 meta-python/recipes-devtools/python/python3-pylint/run-ptest
delete mode 100644 meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb
create mode 100644 meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest
create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb
create mode 100644 meta-python/recipes-devtools/python/python3-tomlkit/run-ptest
create mode 100644 meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb
--
2.40.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* [meta-python][PATCH 1/6] python3-platformdirs: Add recipe
2023-05-02 16:49 [meta-python][PATCH 0/6] Support updated python3-pylint Trevor Gamblin
@ 2023-05-02 16:50 ` Trevor Gamblin
2023-05-02 21:46 ` [oe] " Khem Raj
2023-05-02 16:50 ` [meta-python][PATCH 2/6] python3-pytest-mock: " Trevor Gamblin
` (4 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Trevor Gamblin @ 2023-05-02 16:50 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
.../python/python3-platformdirs/run-ptest | 3 ++
.../python/python3-platformdirs_3.5.0.bb | 35 +++++++++++++++++++
2 files changed, 38 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
new file mode 100644
index 000000000..b63c4de0d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
new file mode 100644
index 000000000..b5ff369d0
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
@@ -0,0 +1,35 @@
+SUMMARY = "A small Python module for determining appropriate platform-specific dirs"
+HOMEPAGE = "https://github.com/platformdirs/platformdirs"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
+
+SRC_URI = " \
+ git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
+ file://run-ptest \
+"
+
+SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
+SRC_URI[sha256sum] = "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
+
+inherit python_setuptools_build_meta ptest
+
+DEPENDS += " \
+ python3-hatch-vcs-native \
+ python3-setuptools-scm-native \
+ python3-toml-native \
+"
+
+S = "${WORKDIR}/git"
+
+RDEPENDS:${PN}-ptest += " \
+ ${PYTHON_PN}-appdirs \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-pytest-mock \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/Tests
+ cp -rf ${S}/tests ${D}${PTEST_PATH}/
+}
+
+BBCLASSEXTEND = "native"
--
2.40.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [meta-python][PATCH 2/6] python3-pytest-mock: Add recipe
2023-05-02 16:49 [meta-python][PATCH 0/6] Support updated python3-pylint Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 1/6] python3-platformdirs: Add recipe Trevor Gamblin
@ 2023-05-02 16:50 ` Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 3/6] python3-tomlkit: " Trevor Gamblin
` (3 subsequent siblings)
5 siblings, 0 replies; 14+ messages in thread
From: Trevor Gamblin @ 2023-05-02 16:50 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
.../python/python3-pytest-mock/run-ptest | 3 +++
.../python/python3-pytest-mock_3.10.0.bb | 26 +++++++++++++++++++
2 files changed, 29 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest
create mode 100644 meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb
diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest b/meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest
new file mode 100644
index 000000000..b63c4de0d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-mock/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb b/meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb
new file mode 100644
index 000000000..c4e672f33
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-mock_3.10.0.bb
@@ -0,0 +1,26 @@
+SUMMARY = "Thin-wrapper around the mock package for easier use with pytest"
+HOMEPAGE = "https://github.com/pytest-dev/pytest-mock/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = " \
+ file://LICENSE;md5=b2ddb1e69238461b7e4ef2a84d874109 \
+"
+
+SRC_URI = " \
+ git://github.com/pytest-dev/pytest-mock;branch=main;protocol=https \
+ file://run-ptest \
+"
+
+SRCREV ?= "6c03dfd4240de4a178bab67c0a32fba28d8bcf91"
+
+SRC_URI[sha256sum] = "fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f"
+
+inherit setuptools3 ptest
+
+DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
+
+S = "${WORKDIR}/git"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests ${D}${PTEST_PATH}/
+}
--
2.40.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [meta-python][PATCH 3/6] python3-tomlkit: Add recipe
2023-05-02 16:49 [meta-python][PATCH 0/6] Support updated python3-pylint Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 1/6] python3-platformdirs: Add recipe Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 2/6] python3-pytest-mock: " Trevor Gamblin
@ 2023-05-02 16:50 ` Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 4/6] python3-pylint: upgrade 2.14.5 -> 2.17.3 Trevor Gamblin
` (2 subsequent siblings)
5 siblings, 0 replies; 14+ messages in thread
From: Trevor Gamblin @ 2023-05-02 16:50 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
.../python/python3-tomlkit/run-ptest | 3 +++
.../python/python3-tomlkit_0.11.8.bb | 23 +++++++++++++++++++
2 files changed, 26 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-tomlkit/run-ptest
create mode 100644 meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb
diff --git a/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest b/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest
new file mode 100644
index 000000000..b63c4de0d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-tomlkit/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb b/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb
new file mode 100644
index 000000000..71a43c455
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-tomlkit_0.11.8.bb
@@ -0,0 +1,23 @@
+SUMMARY = "Style preserving TOML library"
+HOMEPAGE = "https://pypi.org/project/tomlkit/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=31aac0dbc1babd278d5386dadb7f8e82"
+
+SRC_URI[sha256sum] = "9330fc7faa1db67b541b28e62018c17d20be733177d290a13b24c62d1614e0c3"
+
+inherit pypi python_poetry_core ptest
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+ ${PYTHON_PN}-poetry-core \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-pyyaml \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
--
2.40.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [meta-python][PATCH 4/6] python3-pylint: upgrade 2.14.5 -> 2.17.3
2023-05-02 16:49 [meta-python][PATCH 0/6] Support updated python3-pylint Trevor Gamblin
` (2 preceding siblings ...)
2023-05-02 16:50 ` [meta-python][PATCH 3/6] python3-tomlkit: " Trevor Gamblin
@ 2023-05-02 16:50 ` Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 5/6] python3-pylint: add ptest Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 6/6] ptest-packagelists-meta-python: Add new tests Trevor Gamblin
5 siblings, 0 replies; 14+ messages in thread
From: Trevor Gamblin @ 2023-05-02 16:50 UTC (permalink / raw)
To: openembedded-devel
Change pylint to inherit python_setuptools_build_meta instead of
setuptools3. Also add a patch to remove hard-coded version depdendencies
for wheel and setuptools from the pyproject.toml, otherwise the
following error occurs during do_compile:
| ERROR Missing dependencies:
| wheel~=0.37.1
| setuptools~=62.6
Release note links:
2.17.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.17/index.html
2.16.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.16/index.html
2.15.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.15/index.html
2.14.x: https://pylint.readthedocs.io/en/latest/whatsnew/2/2.14/index.html
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
....toml-Remove-hard-coded-dependencies.patch | 30 +++++++++++++++++++
...int_2.14.5.bb => python3-pylint_2.17.3.bb} | 5 ++--
2 files changed, 33 insertions(+), 2 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
rename meta-python/recipes-devtools/python/{python3-pylint_2.14.5.bb => python3-pylint_2.17.3.bb} (72%)
diff --git a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
new file mode 100644
index 000000000..55d42b101
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
@@ -0,0 +1,30 @@
+From 843d050f1bf889b81fa8fc3e7a1350385c8348ec Mon Sep 17 00:00:00 2001
+From: Trevor Gamblin <tgamblin@baylibre.com>
+Date: Mon, 1 May 2023 11:32:24 -0400
+Subject: [PATCH] pyproject.toml: Remove hard-coded dependencies
+
+The upstream pyproject.toml has hard-coded dependencies on specific
+versions of wheel and setuptools. This breaks builds of pylint
+2.17.3, so patch it to remove the pinned versions.
+
+Upstream-Status: Pending
+
+Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index e4b63c660..0ee21e0eb 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools~=62.6", "wheel~=0.37.1"]
++requires = ["setuptools", "wheel"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
+--
+2.40.0
+
diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
similarity index 72%
rename from meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb
rename to meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
index 738b9250c..b85f77503 100644
--- a/meta-python/recipes-devtools/python/python3-pylint_2.14.5.bb
+++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
@@ -3,9 +3,10 @@ HOMEPAGE= "http://www.pylint.org/"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
-SRC_URI[sha256sum] = "487ce2192eee48211269a0e976421f334cf94de1806ca9d0a99449adcdf0285e"
+SRC_URI += "file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch"
+SRC_URI[sha256sum] = "761907349e699f8afdcd56c4fe02f3021ab5b3a0fc26d19a9bfdc66c7d0d5cd5"
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
${PYTHON_PN}-isort \
--
2.40.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [meta-python][PATCH 5/6] python3-pylint: add ptest
2023-05-02 16:49 [meta-python][PATCH 0/6] Support updated python3-pylint Trevor Gamblin
` (3 preceding siblings ...)
2023-05-02 16:50 ` [meta-python][PATCH 4/6] python3-pylint: upgrade 2.14.5 -> 2.17.3 Trevor Gamblin
@ 2023-05-02 16:50 ` Trevor Gamblin
2023-05-04 23:54 ` [oe] " Khem Raj
2023-05-02 16:50 ` [meta-python][PATCH 6/6] ptest-packagelists-meta-python: Add new tests Trevor Gamblin
5 siblings, 1 reply; 14+ messages in thread
From: Trevor Gamblin @ 2023-05-02 16:50 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
....toml-Remove-hard-coded-dependencies.patch | 10 ++-----
.../python/python3-pylint/run-ptest | 3 ++
.../python/python3-pylint_2.17.3.bb | 30 +++++++++++++++++--
3 files changed, 32 insertions(+), 11 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-pylint/run-ptest
diff --git a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
index 55d42b101..267e4c30d 100644
--- a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
+++ b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
@@ -1,21 +1,15 @@
-From 843d050f1bf889b81fa8fc3e7a1350385c8348ec Mon Sep 17 00:00:00 2001
+From c5c415a240189ac6730ba95de0bb5883dfb53609 Mon Sep 17 00:00:00 2001
From: Trevor Gamblin <tgamblin@baylibre.com>
Date: Mon, 1 May 2023 11:32:24 -0400
Subject: [PATCH] pyproject.toml: Remove hard-coded dependencies
-The upstream pyproject.toml has hard-coded dependencies on specific
-versions of wheel and setuptools. This breaks builds of pylint
-2.17.3, so patch it to remove the pinned versions.
-
-Upstream-Status: Pending
-
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
-index e4b63c660..0ee21e0eb 100644
+index bd542646b..2c0ed9485 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
diff --git a/meta-python/recipes-devtools/python/python3-pylint/run-ptest b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
new file mode 100644
index 000000000..b63c4de0d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
index b85f77503..58f0616fc 100644
--- a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
@@ -3,10 +3,14 @@ HOMEPAGE= "http://www.pylint.org/"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
-SRC_URI += "file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch"
-SRC_URI[sha256sum] = "761907349e699f8afdcd56c4fe02f3021ab5b3a0fc26d19a9bfdc66c7d0d5cd5"
+SRC_URI += " \
+ git://github.com/pylint-dev/pylint;branch=main;protocol=https \
+ file://run-ptest \
+ file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \
+ "
+SRCREV ?= "389e14c36819cb87190fd412d3f366a3283f0078"
-inherit pypi python_setuptools_build_meta
+inherit python_setuptools_build_meta ptest
RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
${PYTHON_PN}-isort \
@@ -17,3 +21,23 @@ RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
${PYTHON_PN}-difflib \
${PYTHON_PN}-netserver \
"
+
+RDEPENDS:${PN}-ptest += " \
+ ${PYTHON_PN}-core \
+ ${PYTHON_PN}-dill \
+ ${PYTHON_PN}-git \
+ ${PYTHON_PN}-platformdirs \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-pytest-benchmark \
+ ${PYTHON_PN}-statistics \
+ ${PYTHON_PN}-tomlkit \
+ ${PYTHON_PN}-tomllib \
+ "
+
+S = "${WORKDIR}/git"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+ sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript
+}
--
2.40.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [meta-python][PATCH 6/6] ptest-packagelists-meta-python: Add new tests
2023-05-02 16:49 [meta-python][PATCH 0/6] Support updated python3-pylint Trevor Gamblin
` (4 preceding siblings ...)
2023-05-02 16:50 ` [meta-python][PATCH 5/6] python3-pylint: add ptest Trevor Gamblin
@ 2023-05-02 16:50 ` Trevor Gamblin
5 siblings, 0 replies; 14+ messages in thread
From: Trevor Gamblin @ 2023-05-02 16:50 UTC (permalink / raw)
To: openembedded-devel
Add ptests for python3-pylint, python3-platformdirs,
python3-pytest-mock, python3-tomlkit.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
meta-python/conf/include/ptest-packagelists-meta-python.inc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index ef5d20bcd..f5935e4a9 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -23,13 +23,16 @@ PTESTS_FAST_META_PYTHON = "\
python3-ipy \
python3-iso3166 \
python3-parse-type \
+ python3-platformdirs \
python3-polyline \
python3-precise-runner \
python3-prettytable \
python3-ptyprocess \
python3-pyasn1-modules \
+ python3-pylint \
python3-pyroute2 \
python3-pyserial \
+ python3-pytest-mock \
python3-pytoml \
python3-requests-file \
python3-requests-toolbelt \
@@ -39,6 +42,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-smpplib \
python3-soupsieve \
python3-sqlparse \
+ python3-tomlkit \
python3-u-msgpack-python \
python3-unidiff \
python3-uritemplate \
--
2.40.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe
2023-05-02 16:50 ` [meta-python][PATCH 1/6] python3-platformdirs: Add recipe Trevor Gamblin
@ 2023-05-02 21:46 ` Khem Raj
2023-05-02 21:57 ` Khem Raj
0 siblings, 1 reply; 14+ messages in thread
From: Khem Raj @ 2023-05-02 21:46 UTC (permalink / raw)
To: Trevor Gamblin; +Cc: openembedded-devel
I think it needs python3-hatchling or native variant of this. It fails to build
| ERROR Missing dependencies:
| hatchling>=1.14
On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin <tgamblin@baylibre.com> wrote:
>
> Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> ---
> .../python/python3-platformdirs/run-ptest | 3 ++
> .../python/python3-platformdirs_3.5.0.bb | 35 +++++++++++++++++++
> 2 files changed, 38 insertions(+)
> create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
>
> diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> new file mode 100644
> index 000000000..b63c4de0d
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> new file mode 100644
> index 000000000..b5ff369d0
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> @@ -0,0 +1,35 @@
> +SUMMARY = "A small Python module for determining appropriate platform-specific dirs"
> +HOMEPAGE = "https://github.com/platformdirs/platformdirs"
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
> +
> +SRC_URI = " \
> + git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
> + file://run-ptest \
> +"
> +
> +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
> +SRC_URI[sha256sum] = "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
> +
> +inherit python_setuptools_build_meta ptest
> +
> +DEPENDS += " \
> + python3-hatch-vcs-native \
> + python3-setuptools-scm-native \
> + python3-toml-native \
> +"
> +
> +S = "${WORKDIR}/git"
> +
> +RDEPENDS:${PN}-ptest += " \
> + ${PYTHON_PN}-appdirs \
> + ${PYTHON_PN}-pytest \
> + ${PYTHON_PN}-pytest-mock \
> +"
> +
> +do_install_ptest() {
> + install -d ${D}${PTEST_PATH}/Tests
> + cp -rf ${S}/tests ${D}${PTEST_PATH}/
> +}
> +
> +BBCLASSEXTEND = "native"
> --
> 2.40.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#102266): https://lists.openembedded.org/g/openembedded-devel/message/102266
> Mute This Topic: https://lists.openembedded.org/mt/98643291/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe
2023-05-02 21:46 ` [oe] " Khem Raj
@ 2023-05-02 21:57 ` Khem Raj
2023-05-02 22:00 ` Khem Raj
0 siblings, 1 reply; 14+ messages in thread
From: Khem Raj @ 2023-05-02 21:57 UTC (permalink / raw)
To: Trevor Gamblin; +Cc: openembedded-devel
ah nm, I needed your patches for oe-core as well which upgrades
hatchling to 1.14.x but it still fails to build let me see what could
be going on.
On Tue, May 2, 2023 at 2:46 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> I think it needs python3-hatchling or native variant of this. It fails to build
>
> | ERROR Missing dependencies:
> | hatchling>=1.14
>
> On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin <tgamblin@baylibre.com> wrote:
> >
> > Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> > ---
> > .../python/python3-platformdirs/run-ptest | 3 ++
> > .../python/python3-platformdirs_3.5.0.bb | 35 +++++++++++++++++++
> > 2 files changed, 38 insertions(+)
> > create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> >
> > diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > new file mode 100644
> > index 000000000..b63c4de0d
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > @@ -0,0 +1,3 @@
> > +#!/bin/sh
> > +
> > +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> > diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > new file mode 100644
> > index 000000000..b5ff369d0
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > @@ -0,0 +1,35 @@
> > +SUMMARY = "A small Python module for determining appropriate platform-specific dirs"
> > +HOMEPAGE = "https://github.com/platformdirs/platformdirs"
> > +LICENSE = "BSD-3-Clause"
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
> > +
> > +SRC_URI = " \
> > + git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
> > + file://run-ptest \
> > +"
> > +
> > +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
> > +SRC_URI[sha256sum] = "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
> > +
> > +inherit python_setuptools_build_meta ptest
> > +
> > +DEPENDS += " \
> > + python3-hatch-vcs-native \
> > + python3-setuptools-scm-native \
> > + python3-toml-native \
> > +"
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +RDEPENDS:${PN}-ptest += " \
> > + ${PYTHON_PN}-appdirs \
> > + ${PYTHON_PN}-pytest \
> > + ${PYTHON_PN}-pytest-mock \
> > +"
> > +
> > +do_install_ptest() {
> > + install -d ${D}${PTEST_PATH}/Tests
> > + cp -rf ${S}/tests ${D}${PTEST_PATH}/
> > +}
> > +
> > +BBCLASSEXTEND = "native"
> > --
> > 2.40.0
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#102266): https://lists.openembedded.org/g/openembedded-devel/message/102266
> > Mute This Topic: https://lists.openembedded.org/mt/98643291/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe
2023-05-02 21:57 ` Khem Raj
@ 2023-05-02 22:00 ` Khem Raj
2023-05-03 3:08 ` Tim Orling
0 siblings, 1 reply; 14+ messages in thread
From: Khem Raj @ 2023-05-02 22:00 UTC (permalink / raw)
To: Trevor Gamblin; +Cc: openembedded-devel
nm cleaned tmpdir it builds and runs ok
On Tue, May 2, 2023 at 2:57 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> ah nm, I needed your patches for oe-core as well which upgrades
> hatchling to 1.14.x but it still fails to build let me see what could
> be going on.
>
> On Tue, May 2, 2023 at 2:46 PM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > I think it needs python3-hatchling or native variant of this. It fails to build
> >
> > | ERROR Missing dependencies:
> > | hatchling>=1.14
> >
> > On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin <tgamblin@baylibre.com> wrote:
> > >
> > > Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> > > ---
> > > .../python/python3-platformdirs/run-ptest | 3 ++
> > > .../python/python3-platformdirs_3.5.0.bb | 35 +++++++++++++++++++
> > > 2 files changed, 38 insertions(+)
> > > create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > create mode 100644 meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > >
> > > diff --git a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > new file mode 100644
> > > index 000000000..b63c4de0d
> > > --- /dev/null
> > > +++ b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > @@ -0,0 +1,3 @@
> > > +#!/bin/sh
> > > +
> > > +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> > > diff --git a/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > > new file mode 100644
> > > index 000000000..b5ff369d0
> > > --- /dev/null
> > > +++ b/meta-python/recipes-devtools/python/python3-platformdirs_3.5.0.bb
> > > @@ -0,0 +1,35 @@
> > > +SUMMARY = "A small Python module for determining appropriate platform-specific dirs"
> > > +HOMEPAGE = "https://github.com/platformdirs/platformdirs"
> > > +LICENSE = "BSD-3-Clause"
> > > +LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
> > > +
> > > +SRC_URI = " \
> > > + git://github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
> > > + file://run-ptest \
> > > +"
> > > +
> > > +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
> > > +SRC_URI[sha256sum] = "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
> > > +
> > > +inherit python_setuptools_build_meta ptest
> > > +
> > > +DEPENDS += " \
> > > + python3-hatch-vcs-native \
> > > + python3-setuptools-scm-native \
> > > + python3-toml-native \
> > > +"
> > > +
> > > +S = "${WORKDIR}/git"
> > > +
> > > +RDEPENDS:${PN}-ptest += " \
> > > + ${PYTHON_PN}-appdirs \
> > > + ${PYTHON_PN}-pytest \
> > > + ${PYTHON_PN}-pytest-mock \
> > > +"
> > > +
> > > +do_install_ptest() {
> > > + install -d ${D}${PTEST_PATH}/Tests
> > > + cp -rf ${S}/tests ${D}${PTEST_PATH}/
> > > +}
> > > +
> > > +BBCLASSEXTEND = "native"
> > > --
> > > 2.40.0
> > >
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > > View/Reply Online (#102266): https://lists.openembedded.org/g/openembedded-devel/message/102266
> > > Mute This Topic: https://lists.openembedded.org/mt/98643291/1997914
> > > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe
2023-05-02 22:00 ` Khem Raj
@ 2023-05-03 3:08 ` Tim Orling
2023-05-03 12:51 ` Trevor Gamblin
0 siblings, 1 reply; 14+ messages in thread
From: Tim Orling @ 2023-05-03 3:08 UTC (permalink / raw)
To: Khem Raj; +Cc: Openembedded-devel, Trevor Gamblin
[-- Attachment #1: Type: text/plain, Size: 4478 bytes --]
On Tue, May 2, 2023 at 3:01 PM Khem Raj <raj.khem@gmail.com> wrote:
> nm cleaned tmpdir it builds and runs ok
>
> On Tue, May 2, 2023 at 2:57 PM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > ah nm, I needed your patches for oe-core as well which upgrades
> > hatchling to 1.14.x but it still fails to build let me see what could
> > be going on.
> >
> > On Tue, May 2, 2023 at 2:46 PM Khem Raj <raj.khem@gmail.com> wrote:
> > >
> > > I think it needs python3-hatchling or native variant of this. It fails
> to build
> > >
> > > | ERROR Missing dependencies:
> > > | hatchling>=1.14
> > >
> > > On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin <tgamblin@baylibre.com>
> wrote:
> > > >
> > > > Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> > > > ---
> > > > .../python/python3-platformdirs/run-ptest | 3 ++
> > > > .../python/python3-platformdirs_3.5.0.bb | 35
> +++++++++++++++++++
> > > > 2 files changed, 38 insertions(+)
> > > > create mode 100644
> meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > > create mode 100644 meta-python/recipes-devtools/python/
> python3-platformdirs_3.5.0.bb
> > > >
> > > > diff --git
> a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > > new file mode 100644
> > > > index 000000000..b63c4de0d
> > > > --- /dev/null
> > > > +++
> b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
> > > > @@ -0,0 +1,3 @@
> > > > +#!/bin/sh
> > > > +
> > > > +pytest -o log_cli=true -o log_cli_level=INFO | sed -e
> 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e
> 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" ||
> $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk
> '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" ||
> $NF=="XPASS") {$NF="";print $0}else{print}}'
> > > > diff --git a/meta-python/recipes-devtools/python/
> python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/
> python3-platformdirs_3.5.0.bb
> > > > new file mode 100644
> > > > index 000000000..b5ff369d0
> > > > --- /dev/null
> > > > +++ b/meta-python/recipes-devtools/python/
> python3-platformdirs_3.5.0.bb
> > > > @@ -0,0 +1,35 @@
> > > > +SUMMARY = "A small Python module for determining appropriate
> platform-specific dirs"
> > > > +HOMEPAGE = "https://github.com/platformdirs/platformdirs"
> > > > +LICENSE = "BSD-3-Clause"
> > > > +LIC_FILES_CHKSUM =
> "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
> > > > +
> > > > +SRC_URI = " \
> > > > + git://
> github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
> > > > + file://run-ptest \
> > > > +"
> > > > +
> > > > +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
> > > > +SRC_URI[sha256sum] =
> "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
> > > > +
> > > > +inherit python_setuptools_build_meta ptest
https://github.com/platformdirs/platformdirs/blob/a57f88b67210f26587d06ee77cbd0aea89e45cf9/pyproject.toml#L2
Seems like this should “inherit python_hatchling” instead of
python_setuptools_build_meta
https://git.yoctoproject.org/poky/tree/meta/classes-recipe/python_hatchling.bbclass
> > > > +
> > > > +DEPENDS += " \
> > > > + python3-hatch-vcs-native \
> > > > + python3-setuptools-scm-native \
> > > > + python3-toml-native \
> > > > +"
> > > > +
> > > > +S = "${WORKDIR}/git"
> > > > +
> > > > +RDEPENDS:${PN}-ptest += " \
> > > > + ${PYTHON_PN}-appdirs \
> > > > + ${PYTHON_PN}-pytest \
> > > > + ${PYTHON_PN}-pytest-mock \
> > > > +"
> > > > +
> > > > +do_install_ptest() {
> > > > + install -d ${D}${PTEST_PATH}/Tests
> > > > + cp -rf ${S}/tests ${D}${PTEST_PATH}/
> > > > +}
> > > > +
> > > > +BBCLASSEXTEND = "native"
> > > > --
> > > > 2.40.0
> > > >
> > > >
> > > >
> > > >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#102282):
> https://lists.openembedded.org/g/openembedded-devel/message/102282
> Mute This Topic: https://lists.openembedded.org/mt/98643291/924729
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> ticotimo@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 7738 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [oe] [meta-python][PATCH 1/6] python3-platformdirs: Add recipe
2023-05-03 3:08 ` Tim Orling
@ 2023-05-03 12:51 ` Trevor Gamblin
0 siblings, 0 replies; 14+ messages in thread
From: Trevor Gamblin @ 2023-05-03 12:51 UTC (permalink / raw)
To: Tim Orling; +Cc: Khem Raj, Openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 4922 bytes --]
On Tue, May 2, 2023 at 11:08 PM Tim Orling <ticotimo@gmail.com> wrote:
>
>
> On Tue, May 2, 2023 at 3:01 PM Khem Raj <raj.khem@gmail.com> wrote:
>
>> nm cleaned tmpdir it builds and runs ok
>>
>> On Tue, May 2, 2023 at 2:57 PM Khem Raj <raj.khem@gmail.com> wrote:
>> >
>> > ah nm, I needed your patches for oe-core as well which upgrades
>> > hatchling to 1.14.x but it still fails to build let me see what could
>> > be going on.
>> >
>> > On Tue, May 2, 2023 at 2:46 PM Khem Raj <raj.khem@gmail.com> wrote:
>> > >
>> > > I think it needs python3-hatchling or native variant of this. It
>> fails to build
>> > >
>> > > | ERROR Missing dependencies:
>> > > | hatchling>=1.14
>> > >
>> > > On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin <tgamblin@baylibre.com>
>> wrote:
>> > > >
>> > > > Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
>> > > > ---
>> > > > .../python/python3-platformdirs/run-ptest | 3 ++
>> > > > .../python/python3-platformdirs_3.5.0.bb | 35
>> +++++++++++++++++++
>> > > > 2 files changed, 38 insertions(+)
>> > > > create mode 100644
>> meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
>> > > > create mode 100644 meta-python/recipes-devtools/python/
>> python3-platformdirs_3.5.0.bb
>> > > >
>> > > > diff --git
>> a/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
>> b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
>> > > > new file mode 100644
>> > > > index 000000000..b63c4de0d
>> > > > --- /dev/null
>> > > > +++
>> b/meta-python/recipes-devtools/python/python3-platformdirs/run-ptest
>> > > > @@ -0,0 +1,3 @@
>> > > > +#!/bin/sh
>> > > > +
>> > > > +pytest -o log_cli=true -o log_cli_level=INFO | sed -e
>> 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e
>> 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" ||
>> $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk
>> '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" ||
>> $NF=="XPASS") {$NF="";print $0}else{print}}'
>> > > > diff --git a/meta-python/recipes-devtools/python/
>> python3-platformdirs_3.5.0.bb b/meta-python/recipes-devtools/python/
>> python3-platformdirs_3.5.0.bb
>> > > > new file mode 100644
>> > > > index 000000000..b5ff369d0
>> > > > --- /dev/null
>> > > > +++ b/meta-python/recipes-devtools/python/
>> python3-platformdirs_3.5.0.bb
>> > > > @@ -0,0 +1,35 @@
>> > > > +SUMMARY = "A small Python module for determining appropriate
>> platform-specific dirs"
>> > > > +HOMEPAGE = "https://github.com/platformdirs/platformdirs"
>> > > > +LICENSE = "BSD-3-Clause"
>> > > > +LIC_FILES_CHKSUM =
>> "file://LICENSE;md5=ea4f5a41454746a9ed111e3d8723d17a"
>> > > > +
>> > > > +SRC_URI = " \
>> > > > + git://
>> github.com/platformdirs/platformdirs.git;branch=main;protocol=https \
>> > > > + file://run-ptest \
>> > > > +"
>> > > > +
>> > > > +SRCREV ?= "dcb56802714f5570236c86d03773ff881be6e39f"
>> > > > +SRC_URI[sha256sum] =
>> "7954a68d0ba23558d753f73437c55f89027cf8f5108c19844d4b82e5af396335"
>> > > > +
>> > > > +inherit python_setuptools_build_meta ptest
>
>
>
> https://github.com/platformdirs/platformdirs/blob/a57f88b67210f26587d06ee77cbd0aea89e45cf9/pyproject.toml#L2
>
> Seems like this should “inherit python_hatchling” instead of
> python_setuptools_build_meta
>
> https://git.yoctoproject.org/poky/tree/meta/classes-recipe/python_hatchling.bbclass
>
I've tested it with both now and no difference seems apparent on the build
side. I'll resend with python_hatchling instead of
python_setuptools_build_meta to make sure hatchling is more explicit in the
dependencies.
>
>
>> > > > +
>> > > > +DEPENDS += " \
>> > > > + python3-hatch-vcs-native \
>> > > > + python3-setuptools-scm-native \
>> > > > + python3-toml-native \
>> > > > +"
>> > > > +
>> > > > +S = "${WORKDIR}/git"
>> > > > +
>> > > > +RDEPENDS:${PN}-ptest += " \
>> > > > + ${PYTHON_PN}-appdirs \
>> > > > + ${PYTHON_PN}-pytest \
>> > > > + ${PYTHON_PN}-pytest-mock \
>> > > > +"
>> > > > +
>> > > > +do_install_ptest() {
>> > > > + install -d ${D}${PTEST_PATH}/Tests
>> > > > + cp -rf ${S}/tests ${D}${PTEST_PATH}/
>> > > > +}
>> > > > +
>> > > > +BBCLASSEXTEND = "native"
>> > > > --
>> > > > 2.40.0
>> > > >
>> > > >
>> > > >
>> > > >
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#102282):
>> https://lists.openembedded.org/g/openembedded-devel/message/102282
>> Mute This Topic: https://lists.openembedded.org/mt/98643291/924729
>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
>> ticotimo@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>>
[-- Attachment #2: Type: text/html, Size: 8532 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [oe] [meta-python][PATCH 5/6] python3-pylint: add ptest
2023-05-02 16:50 ` [meta-python][PATCH 5/6] python3-pylint: add ptest Trevor Gamblin
@ 2023-05-04 23:54 ` Khem Raj
2023-05-05 7:22 ` Khem Raj
0 siblings, 1 reply; 14+ messages in thread
From: Khem Raj @ 2023-05-04 23:54 UTC (permalink / raw)
To: Trevor Gamblin; +Cc: openembedded-devel
The ptests fail on musl/qemux86-64
==============================================================================================================
Failed test cases (sorted by testseries, ID)
==============================================================================================================
--------------------------------------------------------------------------------------------------------------
testseries | result_id : oeqa |
runtime_meta-python-ptest-image-python3-pylint_qemux86-64_20230504233302
ptestresult.python3-pylint.tests/benchmark/test_baseline_benchmarks.py::TestEstablishBaselineBenchmarks::test_baseline_benchmark_j1_all_checks_single_file
ptestresult.python3-pylint.tests/config/pylint_config/test_pylint_config_generate.py::test_format_of_output
ptestresult.python3-pylint.tests/config/pylint_config/test_pylint_config_generate.py::test_generate_interactive_exitcode
ptestresult.python3-pylint.tests/config/pylint_config/test_pylint_config_generate.py::test_writing_minimal_file
ptestresult.python3-pylint.tests/config/pylint_config/test_pylint_config_generate.py::test_writing_to_output_file
ptestresult.python3-pylint.tests/test_check_parallel.py::TestCheckParallelFramework::test_linter_with_unpickleable_plugins_is_pickleable
ptestresult.python3-pylint.tests/test_functional.py::test_functional[mccabe]
ptestresult.python3-pylint.tests/test_functional.py::test_functional[missing_timeout]
ptestresult.python3-pylint.tests/test_functional.py::test_functional[regression_3976]
ptestresult.python3-pylint.tests/test_functional.py::test_functional[super_init_not_called_extensions_py310]
ptestresult.python3-pylint.tests/test_functional.py::test_functional[typevar_naming_style_default]
ptestresult.python3-pylint.tests/test_functional.py::test_functional[typevar_naming_style_rgx]
ptestresult.python3-pylint.tests/test_functional.py::test_functional[typing_broken_noreturn]
ptestresult.python3-pylint.tests/test_functional.py::test_functional[typing_broken_noreturn_future_import]
ptestresult.python3-pylint.tests/test_functional.py::test_functional[typing_broken_noreturn_py372]
ptestresult.python3-pylint.tests/test_functional.py::test_functional[undefined_loop_variable]
ptestresult.python3-pylint.tests/test_self.py::TestCallbackOptions::test_generate_toml_config
ptestresult.python3-pylint.tests/test_self.py::TestCallbackOptions::test_generate_toml_config_disable_symbolic_names
--------------------------------------------------------------------------------------------------------------
On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin <tgamblin@baylibre.com> wrote:
>
> Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> ---
> ....toml-Remove-hard-coded-dependencies.patch | 10 ++-----
> .../python/python3-pylint/run-ptest | 3 ++
> .../python/python3-pylint_2.17.3.bb | 30 +++++++++++++++++--
> 3 files changed, 32 insertions(+), 11 deletions(-)
> create mode 100644 meta-python/recipes-devtools/python/python3-pylint/run-ptest
>
> diff --git a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
> index 55d42b101..267e4c30d 100644
> --- a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
> +++ b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
> @@ -1,21 +1,15 @@
> -From 843d050f1bf889b81fa8fc3e7a1350385c8348ec Mon Sep 17 00:00:00 2001
> +From c5c415a240189ac6730ba95de0bb5883dfb53609 Mon Sep 17 00:00:00 2001
> From: Trevor Gamblin <tgamblin@baylibre.com>
> Date: Mon, 1 May 2023 11:32:24 -0400
> Subject: [PATCH] pyproject.toml: Remove hard-coded dependencies
>
> -The upstream pyproject.toml has hard-coded dependencies on specific
> -versions of wheel and setuptools. This breaks builds of pylint
> -2.17.3, so patch it to remove the pinned versions.
> -
> -Upstream-Status: Pending
> -
> Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> ---
> pyproject.toml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/pyproject.toml b/pyproject.toml
> -index e4b63c660..0ee21e0eb 100644
> +index bd542646b..2c0ed9485 100644
> --- a/pyproject.toml
> +++ b/pyproject.toml
> @@ -1,5 +1,5 @@
> diff --git a/meta-python/recipes-devtools/python/python3-pylint/run-ptest b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
> new file mode 100644
> index 000000000..b63c4de0d
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
> @@ -0,0 +1,3 @@
> +#!/bin/sh
> +
> +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
> index b85f77503..58f0616fc 100644
> --- a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
> +++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
> @@ -3,10 +3,14 @@ HOMEPAGE= "http://www.pylint.org/"
> LICENSE = "GPL-2.0-only"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
>
> -SRC_URI += "file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch"
> -SRC_URI[sha256sum] = "761907349e699f8afdcd56c4fe02f3021ab5b3a0fc26d19a9bfdc66c7d0d5cd5"
> +SRC_URI += " \
> + git://github.com/pylint-dev/pylint;branch=main;protocol=https \
> + file://run-ptest \
> + file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \
> + "
> +SRCREV ?= "389e14c36819cb87190fd412d3f366a3283f0078"
>
> -inherit pypi python_setuptools_build_meta
> +inherit python_setuptools_build_meta ptest
>
> RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
> ${PYTHON_PN}-isort \
> @@ -17,3 +21,23 @@ RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
> ${PYTHON_PN}-difflib \
> ${PYTHON_PN}-netserver \
> "
> +
> +RDEPENDS:${PN}-ptest += " \
> + ${PYTHON_PN}-core \
> + ${PYTHON_PN}-dill \
> + ${PYTHON_PN}-git \
> + ${PYTHON_PN}-platformdirs \
> + ${PYTHON_PN}-pytest \
> + ${PYTHON_PN}-pytest-benchmark \
> + ${PYTHON_PN}-statistics \
> + ${PYTHON_PN}-tomlkit \
> + ${PYTHON_PN}-tomllib \
> + "
> +
> +S = "${WORKDIR}/git"
> +
> +do_install_ptest() {
> + install -d ${D}${PTEST_PATH}/tests
> + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> + sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript
> +}
> --
> 2.40.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#102270): https://lists.openembedded.org/g/openembedded-devel/message/102270
> Mute This Topic: https://lists.openembedded.org/mt/98643295/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [oe] [meta-python][PATCH 5/6] python3-pylint: add ptest
2023-05-04 23:54 ` [oe] " Khem Raj
@ 2023-05-05 7:22 ` Khem Raj
0 siblings, 0 replies; 14+ messages in thread
From: Khem Raj @ 2023-05-05 7:22 UTC (permalink / raw)
To: Trevor Gamblin; +Cc: openembedded-devel
this patch reduces the failure number but these remaining ones need to
be checked and see why they fail - http://sprunge.us/kfu3Ak
Failed ptests:
{'python3-pylint':
['tests/test_check_parallel.py::TestCheckParallelFramework::test_linter_with_unpickleable_plugins_is_pickleable',
'tests/test_self.py::TestCallbackOptions::test_generate_toml_config',
'tests/test_self.py::TestCallbackOptions::test_generate_toml_config_disable_symbolic_names',
'tests/config/pylint_config/test_pylint_config_generate.py::test_generate_interactive_exitcode',
'tests/config/pylint_config/test_pylint_config_generate.py::test_format_of_output',
'tests/config/pylint_config/test_pylint_config_generate.py::test_writing_to_output_file',
'tests/config/pylint_config/test_pylint_config_generate.py::test_writing_minimal_file']}
On Thu, May 4, 2023 at 4:54 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> The ptests fail on musl/qemux86-64
>
> ==============================================================================================================
> Failed test cases (sorted by testseries, ID)
> ==============================================================================================================
> --------------------------------------------------------------------------------------------------------------
> testseries | result_id : oeqa |
> runtime_meta-python-ptest-image-python3-pylint_qemux86-64_20230504233302
> ptestresult.python3-pylint.tests/benchmark/test_baseline_benchmarks.py::TestEstablishBaselineBenchmarks::test_baseline_benchmark_j1_all_checks_single_file
> ptestresult.python3-pylint.tests/config/pylint_config/test_pylint_config_generate.py::test_format_of_output
> ptestresult.python3-pylint.tests/config/pylint_config/test_pylint_config_generate.py::test_generate_interactive_exitcode
> ptestresult.python3-pylint.tests/config/pylint_config/test_pylint_config_generate.py::test_writing_minimal_file
> ptestresult.python3-pylint.tests/config/pylint_config/test_pylint_config_generate.py::test_writing_to_output_file
> ptestresult.python3-pylint.tests/test_check_parallel.py::TestCheckParallelFramework::test_linter_with_unpickleable_plugins_is_pickleable
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[mccabe]
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[missing_timeout]
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[regression_3976]
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[super_init_not_called_extensions_py310]
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[typevar_naming_style_default]
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[typevar_naming_style_rgx]
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[typing_broken_noreturn]
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[typing_broken_noreturn_future_import]
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[typing_broken_noreturn_py372]
> ptestresult.python3-pylint.tests/test_functional.py::test_functional[undefined_loop_variable]
> ptestresult.python3-pylint.tests/test_self.py::TestCallbackOptions::test_generate_toml_config
> ptestresult.python3-pylint.tests/test_self.py::TestCallbackOptions::test_generate_toml_config_disable_symbolic_names
> --------------------------------------------------------------------------------------------------------------
>
> On Tue, May 2, 2023 at 9:50 AM Trevor Gamblin <tgamblin@baylibre.com> wrote:
> >
> > Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> > ---
> > ....toml-Remove-hard-coded-dependencies.patch | 10 ++-----
> > .../python/python3-pylint/run-ptest | 3 ++
> > .../python/python3-pylint_2.17.3.bb | 30 +++++++++++++++++--
> > 3 files changed, 32 insertions(+), 11 deletions(-)
> > create mode 100644 meta-python/recipes-devtools/python/python3-pylint/run-ptest
> >
> > diff --git a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
> > index 55d42b101..267e4c30d 100644
> > --- a/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
> > +++ b/meta-python/recipes-devtools/python/python3-pylint/0001-pyproject.toml-Remove-hard-coded-dependencies.patch
> > @@ -1,21 +1,15 @@
> > -From 843d050f1bf889b81fa8fc3e7a1350385c8348ec Mon Sep 17 00:00:00 2001
> > +From c5c415a240189ac6730ba95de0bb5883dfb53609 Mon Sep 17 00:00:00 2001
> > From: Trevor Gamblin <tgamblin@baylibre.com>
> > Date: Mon, 1 May 2023 11:32:24 -0400
> > Subject: [PATCH] pyproject.toml: Remove hard-coded dependencies
> >
> > -The upstream pyproject.toml has hard-coded dependencies on specific
> > -versions of wheel and setuptools. This breaks builds of pylint
> > -2.17.3, so patch it to remove the pinned versions.
> > -
> > -Upstream-Status: Pending
> > -
> > Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> > ---
> > pyproject.toml | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/pyproject.toml b/pyproject.toml
> > -index e4b63c660..0ee21e0eb 100644
> > +index bd542646b..2c0ed9485 100644
> > --- a/pyproject.toml
> > +++ b/pyproject.toml
> > @@ -1,5 +1,5 @@
> > diff --git a/meta-python/recipes-devtools/python/python3-pylint/run-ptest b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
> > new file mode 100644
> > index 000000000..b63c4de0d
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python3-pylint/run-ptest
> > @@ -0,0 +1,3 @@
> > +#!/bin/sh
> > +
> > +pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
> > diff --git a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
> > index b85f77503..58f0616fc 100644
> > --- a/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
> > +++ b/meta-python/recipes-devtools/python/python3-pylint_2.17.3.bb
> > @@ -3,10 +3,14 @@ HOMEPAGE= "http://www.pylint.org/"
> > LICENSE = "GPL-2.0-only"
> > LIC_FILES_CHKSUM = "file://LICENSE;md5=c107cf754550e65755c42985a5d4e9c9"
> >
> > -SRC_URI += "file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch"
> > -SRC_URI[sha256sum] = "761907349e699f8afdcd56c4fe02f3021ab5b3a0fc26d19a9bfdc66c7d0d5cd5"
> > +SRC_URI += " \
> > + git://github.com/pylint-dev/pylint;branch=main;protocol=https \
> > + file://run-ptest \
> > + file://0001-pyproject.toml-Remove-hard-coded-dependencies.patch \
> > + "
> > +SRCREV ?= "389e14c36819cb87190fd412d3f366a3283f0078"
> >
> > -inherit pypi python_setuptools_build_meta
> > +inherit python_setuptools_build_meta ptest
> >
> > RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
> > ${PYTHON_PN}-isort \
> > @@ -17,3 +21,23 @@ RDEPENDS:${PN} += "${PYTHON_PN}-astroid \
> > ${PYTHON_PN}-difflib \
> > ${PYTHON_PN}-netserver \
> > "
> > +
> > +RDEPENDS:${PN}-ptest += " \
> > + ${PYTHON_PN}-core \
> > + ${PYTHON_PN}-dill \
> > + ${PYTHON_PN}-git \
> > + ${PYTHON_PN}-platformdirs \
> > + ${PYTHON_PN}-pytest \
> > + ${PYTHON_PN}-pytest-benchmark \
> > + ${PYTHON_PN}-statistics \
> > + ${PYTHON_PN}-tomlkit \
> > + ${PYTHON_PN}-tomllib \
> > + "
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +do_install_ptest() {
> > + install -d ${D}${PTEST_PATH}/tests
> > + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
> > + sed -i 's#/usr/bin/python$#/usr/bin/python3#g' ${D}${PTEST_PATH}/tests/data/ascript
> > +}
> > --
> > 2.40.0
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#102270): https://lists.openembedded.org/g/openembedded-devel/message/102270
> > Mute This Topic: https://lists.openembedded.org/mt/98643295/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2023-05-05 7:23 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-02 16:49 [meta-python][PATCH 0/6] Support updated python3-pylint Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 1/6] python3-platformdirs: Add recipe Trevor Gamblin
2023-05-02 21:46 ` [oe] " Khem Raj
2023-05-02 21:57 ` Khem Raj
2023-05-02 22:00 ` Khem Raj
2023-05-03 3:08 ` Tim Orling
2023-05-03 12:51 ` Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 2/6] python3-pytest-mock: " Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 3/6] python3-tomlkit: " Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 4/6] python3-pylint: upgrade 2.14.5 -> 2.17.3 Trevor Gamblin
2023-05-02 16:50 ` [meta-python][PATCH 5/6] python3-pylint: add ptest Trevor Gamblin
2023-05-04 23:54 ` [oe] " Khem Raj
2023-05-05 7:22 ` Khem Raj
2023-05-02 16:50 ` [meta-python][PATCH 6/6] ptest-packagelists-meta-python: Add new tests Trevor Gamblin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.